from tdw.robot_data.joint_static import JointStatic
Static robot joint data.
-
joint_idThe ID of this joint. -
nameThe name of the joint. -
joint_typeThe type of joint. -
segmentation_colorThe segmentation color of this joint as an[r, g, b]numpy array. -
massThe mass of this joint. -
immovableIf True, this joint is immovable. -
rootIf True, this is the root joint. -
parent_idThe ID of this joint's parent joint. Ignore ifself.root == True. -
drivesA dictionary of Drive data for each of the robot's joints. Key = The drive axis ("x","y", or"z"). -
num_dofThe number of degrees of freedom. This is equivalent to len(self.drives). -
dynamic_indexThe index in the overall list of joints inDynamicRobotsoutput data. This is used internally; you almost always wantself.joint_id.
JointStatic(static_robot, static_index, dynamic_index)
| Parameter | Type | Default | Description |
|---|---|---|---|
| static_robot | StaticRobot | Static robot output data from the build. | |
| static_index | int | The index of this joint in the list of joints. | |
| dynamic_index | int | The index in the overall list of joints in DynamicRobots output data. |