#include <GearedMotor.h>
Inheritance diagram for opal::GearedMotor:

Public Member Functions | |
| GearedMotor () | |
| virtual | ~GearedMotor () |
| virtual void OPAL_CALL | init (const GearedMotorData &data) |
| virtual const GearedMotorData &OPAL_CALL | getData () const |
| virtual MotorType OPAL_CALL | getType () const |
| virtual void OPAL_CALL | setName (const std::string &name) |
| virtual const std::string &OPAL_CALL | getName () const |
| virtual bool OPAL_CALL | isEnabled () const |
| virtual void OPAL_CALL | setEnabled (bool e) |
| virtual void OPAL_CALL | setMaxTorque (real max) |
| virtual real OPAL_CALL | getMaxTorque () const |
| virtual void OPAL_CALL | setMaxVelocity (real max) |
| virtual real OPAL_CALL | getMaxVelocity () const |
| virtual void OPAL_CALL | setThrottle (real t) |
| virtual real OPAL_CALL | getThrottle () const |
| virtual void OPAL_CALL | internal_update () |
| virtual bool OPAL_CALL | internal_dependsOnJoint (Joint *j) |
Protected Attributes | |
| GearedMotorData | mData |
Definition at line 46 of file GearedMotor.h.
|
|
Definition at line 33 of file GearedMotor.cpp. |
|
|
Definition at line 39 of file GearedMotor.cpp. |
|
|
Returns all data describing the Motor.
Definition at line 59 of file GearedMotor.cpp. References mData. |
|
|
Returns the max torque parameter.
Definition at line 118 of file GearedMotor.cpp. References opal::GearedMotorData::maxTorque, and mData. |
|
|
Returns the max velocity parameter.
Definition at line 129 of file GearedMotor.cpp. References opal::GearedMotorData::maxVelocity, and mData. |
|
|
Returns the Motor's name.
Implements opal::Motor. Definition at line 74 of file GearedMotor.cpp. References mData, and opal::MotorData::name. |
|
|
Returns the throttle parameter.
Definition at line 140 of file GearedMotor.cpp. References mData, and opal::GearedMotorData::throttle. |
|
|
Returns the Motor type.
Implements opal::Motor. Definition at line 64 of file GearedMotor.cpp. References opal::MotorData::getType(), and mData. |
|
|
Initializes the Motor with the given data structure. Joint pointer in the data must be valid. Definition at line 51 of file GearedMotor.cpp. References opal::Motor::init(), opal::Joint::isRotational(), opal::GearedMotorData::joint, opal::GearedMotorData::jointAxisNum, and mData. |
|
|
Returns true if this Motor depends on the given Joint.
Reimplemented from opal::Motor. Definition at line 145 of file GearedMotor.cpp. References opal::GearedMotorData::joint, and mData. |
|
|
Called regularly to update the Motor. This does nothing if the Motor is disabled. Implements opal::Motor. Definition at line 94 of file GearedMotor.cpp. References opal::Joint::addTorque(), opal::MotorData::enabled, opal::Joint::getVelocity(), opal::GearedMotorData::joint, opal::GearedMotorData::jointAxisNum, opal::GearedMotorData::maxTorque, opal::GearedMotorData::maxVelocity, mData, and opal::GearedMotorData::throttle. |
|
|
Returns true if the Motor is enabled.
Implements opal::Motor. Definition at line 79 of file GearedMotor.cpp. References opal::MotorData::enabled, and mData. |
|
|
Sets whether the Motor has any effect.
Implements opal::Motor. Definition at line 84 of file GearedMotor.cpp. References opal::MotorData::enabled, and mData. |
|
|
Sets the max torque parameter.
Definition at line 113 of file GearedMotor.cpp. References opal::GearedMotorData::maxTorque, and mData. |
|
|
Sets the max velocity parameter. The maximum cannot be set to zero. Definition at line 123 of file GearedMotor.cpp. References opal::GearedMotorData::maxVelocity, and mData. |
|
|
Sets the Motor's name.
Implements opal::Motor. Definition at line 69 of file GearedMotor.cpp. References mData, and opal::MotorData::name. |
|
|
Sets the throttle parameter.
Definition at line 134 of file GearedMotor.cpp. References mData, and opal::GearedMotorData::throttle. |
|
|
Stores data describing the Motor.
Definition at line 102 of file GearedMotor.h. Referenced by getData(), getMaxTorque(), getMaxVelocity(), getName(), getThrottle(), getType(), init(), internal_dependsOnJoint(), internal_update(), isEnabled(), setEnabled(), setMaxTorque(), setMaxVelocity(), setName(), and setThrottle(). |
1.4.6-NO