JointDynamic

June 1, 2023 ยท View on GitHub

from tdw.robot_data.joint_dynamic import JointDynamic

Dynamic info for a joint that can change per-frame, such as its current position.


Fields

  • joint_id The ID of this joint.

  • position The worldspace position of this joint as an [x, y, z] numpy array.

  • angles The angles of each axis of the joint in degrees. For prismatic joints, you need to convert this from degrees to radians in order to get the correct distance in meters.

  • moving If True, this joint is currently moving.


Functions

__init__

JointDynamic(joint_id, position, angles, moving)

ParameterTypeDefaultDescription
joint_idintThe ID of this joint.
positionnp.ndarrayThe worldspace position of this joint as an [x, y, z] numpy array.
anglesnp.ndarrayThe angles of each axis of the joint in degrees as a numpy array. For prismatic joints, you need to convert this from degrees to radians in order to get the correct distance in meters.
movingboolIf True, this joint is currently moving.