MovementSensor class abstract
MovementSensor reports information about the robot's direction, position and speed.
- Inheritance
- Implementers
Constructors
Properties
Methods
-
accuracy(
{Map< String, dynamic> ? extra}) → Future<Accuracy> - Get the accuracy of the various sensors
-
angularVelocity(
{Map< String, dynamic> ? extra}) → Future<Vector3> -
Get the current angular velocity as a
Vector3
with x, y, and z axes represented in radians/sec -
compassHeading(
{Map< String, dynamic> ? extra}) → Future<double> - Get the current compass heading in degrees
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
linearAcceleration(
{Map< String, dynamic> ? extra}) → Future<Vector3> -
Get the current linear acceleration as a
Vector3
with x, y, and z axes represented in mm/sec^2 -
linearVelocity(
{Map< String, dynamic> ? extra}) → Future<Vector3> -
Get the current linear velocity as a
Vector3
with x, y, and z axes represented in mm/sec -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
orientation(
{Map< String, dynamic> ? extra}) → Future<Orientation> -
Get the current orientation as an
Orientation
-
position(
{Map< String, dynamic> ? extra}) → Future<Position> - Get the current GeoPoint (latitude, longitude) and altitude (mm)
-
properties(
{Map< String, dynamic> ? extra}) → Future<Properties> - Get the supported properties of this sensor
-
readings(
{Map< String, dynamic> ? extra}) → Future<Map< String, dynamic> > - Obtain the measurements/data specific to this MovementSensor If a sensor is not configured to have a measurement or fails to read a piece of data, it will not appear in the readings dictionary.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromRobot(
RobotClient robot, String name) → MovementSensor -
Get the MovementSensor named
name
from the provided robot. -
getResourceName(
String name) → ResourceName -
Get the ResourceName for this MovementSensor with the given
name