from tdw.robot_data.robot_static import RobotStatic
Static data for a robot that won't change due to physics (such as the joint IDs, segmentation colors, etc.)
-
robot_idThe ID of the robot. -
jointsA dictionary of Static robot joint data for each joint. Key = The ID of the joint. -
joint_ids_by_nameA dictionary of joint names. Key = The name of the joint. Value = The joint ID. -
non_movingA dictionary of Static data for non-moving parts for each non-moving part. Key = The ID of the part. -
body_partsA list of joint IDs and non-moving body part IDs. -
immovableIf True, the robot is immovable. -
robot_indexThe index of the robot inDynamicRobotsoutput data. This is used internally; you almost always want to refer toself.robot_idinstead.
RobotStatic(resp, robot_id)
| Parameter | Type | Default | Description |
|---|---|---|---|
| resp | List[bytes] | The response from the build, which we assume contains Robot output data. |
|
| robot_id | int | The ID of this robot. |