piston.asmt file is running correctly
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "ASMTTranslationalMotion.h"
|
||||
#include "ASMTAssembly.h"
|
||||
|
||||
using namespace MbD;
|
||||
|
||||
@@ -19,3 +20,35 @@ void MbD::ASMTTranslationalMotion::parseASMT(std::vector<std::string>& lines)
|
||||
translationZ = lines[0];
|
||||
lines.erase(lines.begin());
|
||||
}
|
||||
|
||||
void MbD::ASMTTranslationalMotion::initMarkers()
|
||||
{
|
||||
auto jt = root()->jointAt(motionJoint);
|
||||
markerI = jt->markerI;
|
||||
markerJ = jt->markerJ;
|
||||
}
|
||||
|
||||
void MbD::ASMTTranslationalMotion::createMbD(std::shared_ptr<System> mbdSys, std::shared_ptr<Units> mbdUnits)
|
||||
{
|
||||
//ASMTMotion::createMbD(mbdSys, mbdUnits);
|
||||
// zFunc : = zIJ isNil
|
||||
// ifTrue : [StMConstant with : 0]
|
||||
// ifFalse : [zIJ isUserFunction
|
||||
// ifTrue :
|
||||
//[parser:= self functionParser.
|
||||
// stack : = parser
|
||||
// parseUserFunction : zIJ
|
||||
// notifying : nil
|
||||
// ifFail : nil.
|
||||
// func : = stack last.
|
||||
// func]
|
||||
//ifFalse: [zIJ] ] .
|
||||
// zFunc : = (zFunc / self mbdUnits length) createMbD simplified.
|
||||
// mbdZTranslation : = self mbdObject.
|
||||
// mbdZTranslation zBlk : zFunc
|
||||
}
|
||||
|
||||
std::shared_ptr<Joint> MbD::ASMTTranslationalMotion::mbdClassNew()
|
||||
{
|
||||
return CREATE<ZTranslation>::With();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user