#include <angularmotor.h>
Inherits AngularMotor.
Inheritance diagram for AngularMotorNAxis:
Public Member Functions | |
AngularMotorNAxis (const OdeHandle &odeHandle, Joint *joint, std::list< std::pair< double, Axis > > axis) | |
Constuct a motor attached to any Joint (not Sliders!). | |
virtual | ~AngularMotorNAxis () |
virtual int | getNumberOfAxes () |
returns the number of Axis of this Motor | |
virtual void | set (int axisNumber, double velocity) |
sets the desired speed of the motor at the given axis. | |
virtual double | get (int axisNumber) |
returns the speed (PositionRate) at the given axis, or zero if the axis is out of range | |
virtual void | setPower (double power) |
sets the maximal force the motor has | |
virtual Joint * | getJoint () |
returns the joint to which this motor is attached | |
Protected Attributes | |
Joint * | joint |
|
Constuct a motor attached to any Joint (not Sliders!). The axis have to be provided by the user.
|
|
|
|
returns the speed (PositionRate) at the given axis, or zero if the axis is out of range So we return the last set position!. Implements AngularMotor.
|
|
returns the joint to which this motor is attached
Implements AngularMotor.
|
|
returns the number of Axis of this Motor
Implements AngularMotor.
|
|
sets the desired speed of the motor at the given axis.
Implements AngularMotor.
|
|
sets the maximal force the motor has
Implements AngularMotor.
|
|
|