intrinsic.solutions.perception.Cameras
![]() View source on GitHub |
Convenience wrapper for camera access.
intrinsic.solutions.perception.Cameras(
resource_registry: resource_registry_client.ResourceRegistryClient,
grpc_channel: grpc.Channel,
executive: intrinsic.solutions.execution.Executive,
is_simulated: bool
)
Args | |
|---|---|
Resource registry to fetch camera resources from. | |
Channel to the camera grpc service. | |
The executive for checking the state. | |
Whether or not the world is being simulated. | |
Raises | |
|---|---|
If the grpc request failed (propagates grpc error). | |
Methods
for_solution
View source
@classmethodfor_solution( solution:intrinsic.solutions.deployments.Solution) -> 'Cameras'
Creates a Cameras instance for the given Solution.
| Args | |
|---|---|
| The deployed solution. |
| Returns | |
|---|---|
The new Cameras instance. |
getitem
View source
getitem(
camera_name: str
) -> intrinsic.solutions.perception.Camera
Returns camera wrapper for the specified identifier.
| Args | |
|---|---|
| Unique identifier of the camera. |
| Returns | |
|---|---|
A camera wrapper object that contains a handle to the camera. |
| Raises | |
|---|---|
| if there is no camera with available with the given name. |
len
View source
len() -> int
Returns the number of cameras.
