Skip to main content

VelocityClient

Inherits from: ROSClient A ROS client for handling velocity messages. This class inherits from ROSClient and provides functionality for publishing and receiving velocity messages over ROS topics.

VelocityClient

Initialize the velocity client.
required
Configuration dictionary for the client
defaults to None. Dictionary of agent parameters. Defaults to None.

publish_velocity

Publish a velocity message.
required
Linear velocity as [x, y, z]
required
Angular velocity as [x, y, z]

process_latest_msg

Process the latest received velocity message. Gets the latest message and updates the stored velocities. If an agent is connected, calls moveByVelocity with the new velocities.

get_linear_velocity

Get the current linear velocity.
Current linear velocity as [x, y, z]

get_angular_velocity

Get the current angular velocity.
Current angular velocity as [x, y, z]