MovementSensor class abstract Components

MovementSensor reports information about the robot's direction, position and speed.

For more information, see Movement Sensor component.

Inheritance
Implementers

Constructors

MovementSensor()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accuracy({Map<String, dynamic>? extra}) Future<Accuracy>
Get the reliability metrics of the movement sensor, including various parameters to assess the sensor’s accuracy and precision in different dimensions.
angularVelocity({Map<String, dynamic>? extra}) Future<Vector3>
Get the current angular velocity as a Vector3 with x, y, and z axes represented in radians per second.
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

Constants

subtype → const Subtype