Package com.viam.sdk.core.resource
Interface ResourceRPCService<ResourceT>
- All Superinterfaces:
io.grpc.BindableService
- All Known Implementing Classes:
CameraRPCService,GenericRPCService,GripperRPCService,MLModelRPCService,MovementSensorRPCService,PoseTrackerRPCService,PowerSensorRPCService,SensorRPCService,ServoRPCService
public interface ResourceRPCService<ResourceT>
extends io.grpc.BindableService
-
Method Summary
Modifier and TypeMethodDescriptiondefault ResourceTReturn the resource with the given name if it exists in the registry.Methods inherited from interface io.grpc.BindableService
bindService
-
Method Details
-
getResourceClass
-
getManager
ResourceManager getManager() -
getResource
Return the resource with the given name if it exists in the registry. If the resource does not exist in the registry, this function will throw an exception- Parameters:
name- Name of the resource- Returns:
- The resource
-