A sensor to detect acceleration and force More...
Public Member Functions | |
void | GetAcceleration (int numFrames, out double x, out double y, out double z) |
Gets the acceleration that has occurred over the last X frames, relative to the robot's orientation More... | |
void | GetAngularVelocity (out double x, out double y, out double z) |
Gets the angular velocity of the robot in degrees per second, relative to the robot's orientation More... | |
void | GetGravity (out double x, out double y, out double z) |
Gets the direction and magnitude of detected gravity, relative to the robot's orientation More... | |
Additional Inherited Members | |
Properties inherited from IRobotSensor | |
IRobotExplorer | Robot [get] |
The robot this sensor is attached to More... | |
int | SensorIndex [get] |
The index of this sensor in the robot's list of sensors More... | |
A sensor to detect acceleration and force
void IAccelerometerSensor.GetAcceleration | ( | int | numFrames, |
out double | x, | ||
out double | y, | ||
out double | z | ||
) |
Gets the acceleration that has occurred over the last X frames, relative to the robot's orientation
numFrames | The number of frames to get acceleration for (from 1 to 10) |
x | The local acceleration from left (-) to right (+) |
y | The local acceleration from down (-) to up (+) |
z | The local acceleration from back (-) to forward (+) |
void IAccelerometerSensor.GetAngularVelocity | ( | out double | x, |
out double | y, | ||
out double | z | ||
) |
Gets the angular velocity of the robot in degrees per second, relative to the robot's orientation
x | The pitch velocity from nose down (-) to nose up (+) in degrees per second |
y | The yaw velocity from nose left (-) to nose right (+) in degrees per second |
z | The roll velocity from counter-clockwise (-) to clockwise (+) in degrees per second |
void IAccelerometerSensor.GetGravity | ( | out double | x, |
out double | y, | ||
out double | z | ||
) |
Gets the direction and magnitude of detected gravity, relative to the robot's orientation
x | The local gravity vector from left (-) to right (+) |
y | The local gravity vector from down (-) to up (+) |
z | The local gravity vector from back (-) to forward (+) |