ReplicantStatic
July 7, 2023 ยท View on GitHub
from tdw.replicant.replicant_static import ReplicantStatic
Static data for the Replicant.
Class Variables
| Variable | Type | Description | Value |
|---|---|---|---|
ARM_JOINTS | Dict[Arm, List[ReplicantBodyPart]] | A dictionary of arms and their constituent joints. | {Arm.left: [__b for __b in ReplicantBodyPart if __b.name.endswith("_l")], |
Fields
-
replicant_idThe ID of the Replicant. -
avatar_idThe ID of the Replicant's avatar (camera). This is used internally for API calls. -
body_partsBody parts by name. Key =ReplicantBodyPart. Value = Object ID. -
segmentation_colorThe Replicant's segmentation color. -
can_walkIf True, this static data for aReplicant. If False, this static data for aWheelchairReplicant. -
handsThe Replicant's hands. Key =Arm. Value = Hand ID. -
body_parts_by_idBody parts by ID. Key = Object ID. Value =ReplicantBodyPart.
Functions
__init__
ReplicantStatic(replicant_id, resp, can_walk)
| Parameter | Type | Default | Description |
|---|---|---|---|
| replicant_id | int | The ID of the Replicant. | |
| resp | List[bytes] | The response from the build. | |
| can_walk | bool | If True, this static data for a Replicant. If False, this static data for a WheelchairReplicant. |