WrenchClient

Inherits from: ROSClient A ROS client for publishing and receiving wrench messages over ROS topics. A wrench is a combination of force and torque, and is commonly received from contact sensors, and published to end effectors.

WrenchClient

WrenchClient(client_dict, agent_dict)
Initialize the wrench client.
Arguments
client_dict (dict)
required
Configuration dictionary for the client
agent_dict (dict), optional
defaults to None. Dictionary of agent parameters. Defaults to None.

publish_wrench

WrenchClient.publish_wrench(force, torque)
Publish a wrench message.
Arguments
force (array-like)
required
Force as [x, y, z]
torque (array-like)
required
Torque as [x, y, z]

process_latest_msg

WrenchClient.process_latest_msg()

get_force

WrenchClient.get_force()
Get the current force.
Returns
Current force as [x, y, z]

get_torque

WrenchClient.get_torque()
Get the current torque.
Returns
Current torque as [x, y, z]