Clients
Velocity Client
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.
Arguments
publish_velocity
Publish a velocity message.
Arguments
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.
Returns
get_linear_velocity
Get the current linear velocity.
Returns
Current linear velocity as [x, y, z]
get_angular_velocity
Get the current angular velocity.
Returns
Current angular velocity as [x, y, z]
Was this page helpful?