Class Generic
java.lang.Object
com.viam.sdk.core.resource.Resource
com.viam.sdk.core.component.Component
com.viam.sdk.core.component.generic.Generic
- Direct Known Subclasses:
GenericRPCClient
Generic component, which represents any type of component that can execute arbitrary commands.
-
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 Generic
fromRobot
(RobotClient robot, String name) Get the component with the provided name from the provided robot.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
-
Generic
-
-
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
-