second good build. Joints

This commit is contained in:
Aik-Siong Koh
2023-05-05 19:01:53 -06:00
parent 697aad4db9
commit d5ac041906
84 changed files with 1616 additions and 174 deletions

View File

@@ -0,0 +1,19 @@
#include <memory>
#include <typeinfo>
#include <assert.h>
#include "PrescribedMotion.h"
#include "EndFrameqct.h"
using namespace MbD;
void PrescribedMotion::connectsItoJ(std::shared_ptr<EndFramec> frmi, std::shared_ptr<EndFramec> frmj)
{
Joint::connectsItoJ(frmi, frmj);
if (typeid(frmI).name() != "EndFrameqct") {
std::shared_ptr<EndFramec> newFrmI;
newFrmI = std::make_shared<EndFrameqct>();
std::swap(frmI, newFrmI);
assert(typeid(frmI).name() != "EndFrameqct");
}
}