ReplicantStatic

July 7, 2023 ยท View on GitHub

from tdw.replicant.replicant_static import ReplicantStatic

Static data for the Replicant.


Class Variables

VariableTypeDescriptionValue
ARM_JOINTSDict[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)

ParameterTypeDefaultDescription
replicant_idintThe ID of the Replicant.
respList[bytes]The response from the build.
can_walkboolIf True, this static data for a Replicant. If False, this static data for a WheelchairReplicant.