from tdw.robot_data.robot_dynamic import RobotDynamic
Dynamic data for a robot that can change per frame (such as the position of the robot, the angle of a joint, etc.)
| Variable | Type | Description | Value |
|---|---|---|---|
NON_MOVING |
float | If the joint moved by less than this angle or distance since the previous frame, it's considered to be non-moving. | 0.001 |
-
transformTheTransformdata for this robot. -
jointsA dictionary ofJointDynamic. Key = The ID of the joint. -
immovableIf True, this robot is immovable. -
collisions_with_objectsA dictionary of collisions between one of this robot's body parts (joints or non-moving) and another object. Key = A tuple where the first element is the body part ID and the second element is the object ID. Value = A list of collision data. -
collisions_with_selfA dictionary of collisions between two of this robot's body parts. Key = An unordered tuple of two body part IDs. Value = A list of collision data. -
collisions_with_environmentA dictionary of collisions between one of this robot's body parts and the environment (floors, walls, etc.). Key = The ID of the body part. Value = A list of environment collision data.
RobotDynamic(static, resp)
| Parameter | Type | Default | Description |
|---|---|---|---|
| static | RobotStatic | RobotStatic data for this robot. |
|
| resp | List[bytes] | The response from the build. |