Class Sensor
java.lang.Object
com.viam.sdk.core.resource.Resource
com.viam.sdk.core.component.Component
com.viam.sdk.core.component.sensor.Sensor
- Direct Known Subclasses:
SensorRPCClient
Sensor represents a physical sensing device that can provide measurement readings
-
Nested Class Summary
Nested classes/interfaces inherited from class com.viam.sdk.core.resource.Resource
Resource.Reconfigurable, Resource.Stoppable
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Sensor
fromRobot
(RobotClient robot, String name) Get the component with the provided name from the provided robot.abstract Common.GetReadingsResponse
getReadings
(Optional<com.google.protobuf.Struct> extra) static Common.ResourceName
Get the ResourceName of the componentMethods inherited from class com.viam.sdk.core.component.Component
getGeometries
Methods inherited from class com.viam.sdk.core.resource.Resource
close, createStatus, doCommand, getName, getSubtype, named
-
Field Details
-
SUBTYPE
-
-
Constructor Details
-
Sensor
-
-
Method Details
-
named
Get the ResourceName of the component- Parameters:
name
- the name of the component- Returns:
- the component's ResourceName
-
fromRobot
Get the component with the provided name from the provided robot.- Parameters:
robot
- the RobotClientname
- the name of the component- Returns:
- the component
-
getReadings
-