JointAngleClient
Inherits from:ZenohClient
A Zenoh client for handling joint state messages.
This class inherits from ZenohClient and provides functionality for publishing and
receiving joint state messages over Zenoh topics using sensor_msgs/JointState.
Attributes:
joint_names (list): Names of the joints
joint_positions (numpy.ndarray): Current joint positions (angles)
joint_velocities (numpy.ndarray): Current joint velocities
joint_efforts (numpy.ndarray): Current joint efforts/torques
Inherited methods
- From
ZenohClient:getLatestMessage,msg_cb,run,publish,stop
init
Arguments
publish_joint_state
Arguments
Names of the joints
Joint positions/angles
Joint velocities. Defaults to None.
Joint efforts/torques. Defaults to None.
get_joint_state
Returns
(joint_names, joint_positions, joint_velocities, joint_efforts) or None