intrinsic.solutions.deployments.Solution
![]() View source on GitHub |
Wraps a connection to a deployed solution.
intrinsic.solutions.deployments.Solution(
grpc_channel: grpc.Channel,
is_simulated: bool,
executive: intrinsic.solutions.execution.Executive,
skill_registry: skill_registry_client.SkillRegistryClient,
resource_registry: resource_registry_client.ResourceRegistryClient,
object_world: intrinsic.solutions.worlds.ObjectWorld,
simulator: Optional[intrinsic.solutions.simulation.Simulation],
errors: error_processing.ErrorsLoader,
pose_estimators: Optional[pose_estimation.PoseEstimators],
installer: installer_pb2_grpc.InstallerServiceStub,
pbt_registry: Optional[pbt_registration.BehaviorTreeRegistry] = None,
proto_builder: Optional[proto_building.ProtoBuilder] = None
)
Attributes | |
|---|---|
gRPC channel to the cluster which hosts the deployed solution. | |
Whether the solution is deployed on a simulated workcell rather than on a physical workcell. | |
Executive instance to communicate with executive. | |
Wrapper to easily access skills. | |
Provides access to resources. | |
Simulator instance for controlling simulation. | |
Exposes error reports from executions. | |
Optional. Wrapper to access pose estimators. | |
default world in world service. | |
gRPC wrapper to sideload PBTs | |
service to build proto FileDescriptorSets from proto schemas | |
Child Classes
Methods
for_channel
View source
@classmethodfor_channel( grpc_channel: grpc.Channel, *, options: Optional[Dict[str, Any]] = None ) -> 'Solution'
Creates a Solution for the given channel and options.
| Args | |
|---|---|
| gRPC channel to the cluster which hosts the deployed solution. |
| An optional Dict[str, Any] containing additional options. See 'deployments.connect()' for available values. |
| Returns | |
|---|---|
A fully initialized Workcell instance. |
get_health_status
View source
get_health_status() -> 'HealthStatus'
Returns the health status of the solution backend.
Can be called before or after connecting to the deployed solution.
| Returns | |
|---|---|
Health status of solution backend |
skills_overview
View source
skills_overview(
with_signatures: bool = False,
with_type_annotations: bool = False,
with_doc: bool = False
) -> None
Prints an overview of the registered skills.
| Args | |
|---|---|
| Include signatures for skill construction. |
| Include type annotations and not just the parameter name. |
| Also print out docstring for each skill. |
update_skills
View source
update_skills() -> None