pagoda.physics.AMotor¶
-
class
pagoda.physics.AMotor(*args, **kwargs)[source]¶ An angular motor applies torques to change an angle in the physics world.
AMotors can be created in “user” mode—in which case the user must supply all axis and angle values—or, for 3-DOF motors, in “euler” mode—in which case the first and last axes must be specified, and ODE computes the middle axis automatically.
Methods
__init__(*args, **kwargs)add_torques(torques)Add the given torques along this motor’s axes. disable_feedback()Disable feedback on this ODE object. enable_feedback()Enable feedback on this ODE object. Attributes
ADOFNumber of angular degrees of freedom for this motor. LDOFMOTOR_FACTORYangle_ratesList of angle rates for rotational degrees of freedom. anglesList of angles for rotational degrees of freedom. axesList of axes for this object’s degrees of freedom. cfmsList of CFM values for this object’s degrees of freedom. erpsList of ERP values for this object’s degrees of freedom. feedbackFeedback buffer (list of 3-tuples) for this ODE motor/joint. hi_stopsList of hi stop values for this object’s degrees of freedom. lo_stopsList of lo stop values for this object’s degrees of freedom. max_forcesList of max force values for rotational degrees of freedom. position_ratesList of position rates for linear degrees of freedom. positionsList of positions for linear degrees of freedom. stop_cfmsList of lo/hi stop CFM values. stop_erpsList of lo/hi stop ERP values. velocitiesList of target velocity values for rotational degrees of freedom. -
ADOF¶ Number of angular degrees of freedom for this motor.
-
add_torques(torques)[source]¶ Add the given torques along this motor’s axes.
Parameters: torques : sequence of float
A sequence of torque values to apply to this motor’s axes.
-
axes¶ List of axes for this object’s degrees of freedom.
-