#include <angularmotor.h>
Inheritance diagram for AngularMotor:
This is a wrapper for ODE's AMotor.
Definition at line 53 of file angularmotor.h.
Public Member Functions | |
AngularMotor (const OdeHandle &odeHandle, Joint *joint) | |
creates a AMotor attached to the same bodies as the given joint. | |
virtual | ~AngularMotor () |
virtual int | getNumberOfAxes ()=0 |
returns the number of Axis of this Motor | |
virtual void | set (int axisNumber, double velocity)=0 |
sets the desired speed of the motor at the given axis. | |
virtual double | get (int axisNumber)=0 |
returns the speed (PositionRate) at the given axis, or zero if the axis is out of range | |
virtual void | setPower (double power)=0 |
sets the maximal force the motor has | |
virtual int | set (const double *velocities, int len) |
sets the desired speed of all motor. | |
virtual int | get (double *velocities, int len) |
returns the speed (PositionRate) of all axis | |
Protected Attributes | |
dJointID | motor |
|
creates a AMotor attached to the same bodies as the given joint.
Definition at line 48 of file angularmotor.cpp. |
|
Definition at line 58 of file angularmotor.h. |
|
returns the speed (PositionRate) of all axis
Definition at line 73 of file angularmotor.cpp. |
|
returns the speed (PositionRate) at the given axis, or zero if the axis is out of range
Implemented in AngularMotor1Axis, AngularMotor2Axis, AngularMotor3AxisEuler, and AngularMotorNAxis. |
|
returns the number of Axis of this Motor
Implemented in AngularMotor1Axis, AngularMotor2Axis, AngularMotor3AxisEuler, and AngularMotorNAxis. |
|
sets the desired speed of all motor.
Definition at line 60 of file angularmotor.cpp. |
|
sets the desired speed of the motor at the given axis.
Implemented in AngularMotor1Axis, AngularMotor2Axis, AngularMotor3AxisEuler, and AngularMotorNAxis. |
|
sets the maximal force the motor has
Implemented in AngularMotor1Axis, AngularMotor2Axis, AngularMotor3AxisEuler, and AngularMotorNAxis. |
|
Definition at line 89 of file angularmotor.h. |