add_fixed_joint¶
- add_fixed_joint(master: RotatingObject, slave: RotatingObject) None¶
It creates a fixed joint between a
masterrotating object and aslaveone. The fixed joint forces the two elements to rotate at the same angular position, speed and acceleration.The
masterrotating object is closest to the powertrain driving motor (or it is actually it) and transfers the whole driving torque to theslaveone.Parameters¶
masterRotatingObjectDriving rotating object, it must be an instance of
RotatingObject.slaveRotatingObjectDriven rotating object, it must be an instance of
RotatingObject, but not an instance ofMotorBase.
Raises
TypeErrorIf
masteris not an instance ofRotatingObject,if
slaveis not an instance ofRotatingObject,if
slaveis an instance ofMotorBase.
ValueErrorIf
masterandslaveare the same rotating object.
See Also