Get the accuracy of various sensors.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const accuracy = await movementSensor.getAccuracy();
For more information, see Movement Sensor API.
Get the angular velocity across x/y/z axes.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const angularVelocity = await movementSensor.getAngularVelocity();
For more information, see Movement Sensor API.
Get the compass heading, which is a number from 0-359 where 0 is North, 90 is East, 180 is South, and 270 is West.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const compassHeading = await movementSensor.getCompassHeading();
For more information, see Movement Sensor API.
Get linear acceleration across x/y/z axes.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const linearAcceleration =
await movementSensor.getLinearAcceleration();
For more information, see Movement Sensor API.
Get linear velocity across x/y/z axes.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const linearVelocity = await movementSensor.getLinearVelocity();
For more information, see Movement Sensor API.
Get the current orientation of the sensor.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const orientation = await movementSensor.getOrientation();
For more information, see Movement Sensor API.
Get the current position latitude, longitude, and altitude.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const position = await movementSensor.getPosition();
For more information, see Movement Sensor API.
Get the properties of this movement sensor.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const properties = await movementSensor.getProperties();
For more information, see Movement Sensor API.
Return the readings of a sensor.
Optional
extra: Structconst movementSensor = new VIAM.MovementSensorClient(
machine,
'my_movement_sensor'
);
const readings = await movementSensor.getReadings();
For more information, see Movement Sensor API.
Represents any sensor that reports information about the robot's direction, position, and/or speed.