PoseClient

Inherits from: ROSClient

A ROS client for handling pose messages.

This class inherits from ROSClient and provides functionality for publishing and receiving pose messages over ROS topics.

PoseClient

PoseClient(client_dict, agent_dict)

Initialize the pose 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_pose

PoseClient.publish_pose(position, orientation)

Publish a pose message.

Arguments
position (array-like)
required

Position as [x, y, z]

orientation (array-like)
required

Orientation as quaternion [x, y, z, w]

process_latest_msg

PoseClient.process_latest_msg()

publish_agent_pose

PoseClient.publish_agent_pose()

get_position

PoseClient.get_position()

get_orientation

PoseClient.get_orientation()

Get the current orientation.

Returns

Current orientation as quaternion [x, y, z, w]

Was this page helpful?