Sensor class abstract Components
Sensor represents a physical sensing device that can provide measurement readings.
For more information, see Sensor component.
- Inheritance
- Implementers
Constructors
- Sensor()
Properties
Methods
-
doCommand(
Map< String, dynamic> command) → Future<Map< String, dynamic> > -
Send/Receive arbitrary commands to the Resource
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readings(
{Map< String, dynamic> ? extra}) → Future<Map< String, dynamic> > - Get the measurements or readings from this Sensor.
-
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) → Sensor -
Get the Sensor named
name
from the provided robot. -
getResourceName(
String name) → ResourceName -
Get the ResourceName for this Sensor with the given
name
.