Mb dyn half sine and cosine (#42)

* (int) added

* size_t count

* add files

* MBDyn new joints, sine, cosine

* CompoundJoints debugged
This commit is contained in:
aiksiongkoh
2023-12-13 07:52:16 -07:00
committed by GitHub
parent 87ed8700e2
commit de8759384c
101 changed files with 7993 additions and 625 deletions

View File

@@ -12,25 +12,7 @@ void MbD::MBDynReference::initialize()
void MbD::MBDynReference::parseMBDyn(std::string line)
{
refString = line;
size_t previousPos = 0;
auto pos = line.find(":");
auto front = line.substr(previousPos, pos - previousPos);
assert(front.find("reference") != std::string::npos);
auto arguments = std::vector<std::string>();
std::string argument;
while (true) {
previousPos = pos;
pos = line.find(",", pos + 1);
if (pos != std::string::npos) {
argument = line.substr(previousPos + 1, pos - previousPos - 1);
arguments.push_back(argument);
}
else {
argument = line.substr(previousPos + 1);
arguments.push_back(argument);
break;
}
}
arguments = collectArgumentsFor("reference", line);
std::istringstream iss(arguments.at(0));
iss >> name;
arguments.erase(arguments.begin());