#include <angularmotor.h>
Inheritance diagram for AngularMotor1Axis:
Definition at line 94 of file angularmotor.h.
Public Member Functions | |
AngularMotor1Axis (const OdeHandle &odeHandle, OneAxisJoint *joint, double power) | |
Constuct a motor attached to a OneAxisJoint. | |
virtual | ~AngularMotor1Axis () |
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 | |
Protected Attributes | |
OneAxisJoint * | joint |
|
Constuct a motor attached to a OneAxisJoint. It will its axis of course.
Definition at line 88 of file angularmotor.cpp. |
|
Definition at line 102 of file angularmotor.h. |
|
returns the speed (PositionRate) at the given axis, or zero if the axis is out of range
Implements AngularMotor. Definition at line 109 of file angularmotor.cpp. |
|
returns the number of Axis of this Motor
Implements AngularMotor. Definition at line 105 of file angularmotor.h. |
|
sets the desired speed of the motor at the given axis.
Implements AngularMotor. Definition at line 102 of file angularmotor.cpp. |
|
sets the maximal force the motor has
Implements AngularMotor. Definition at line 115 of file angularmotor.cpp. |
|
Definition at line 122 of file angularmotor.h. |