Skip to content

Latest commit

 

History

History
46 lines (26 loc) · 1.51 KB

replicant_static.md

File metadata and controls

46 lines (26 loc) · 1.51 KB

ReplicantStatic

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_id The ID of the Replicant.

  • avatar_id The ID of the Replicant's avatar (camera). This is used internally for API calls.

  • body_parts Body parts by name. Key = ReplicantBodyPart. Value = Object ID.

  • segmentation_color The Replicant's segmentation color.

  • can_walk If True, this static data for a Replicant. If False, this static data for a WheelchairReplicant.

  • hands The Replicant's hands. Key = Arm. Value = Hand ID.

  • body_parts_by_id Body 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.