Skip to main content

ROSClient

Inherits from: ABC Base class for ROS clients that handles communication with ROS topics.
ROS message type for the topic
Most recent message received
ROS client instance
Associated agent instance

ROSClient

Initialize the ROS client.
defaults to ‘localhost’. Hostname of ROS bridge. Defaults to ‘localhost’.
defaults to 8080. Port number. Defaults to 8080.
defaults to None. Dictionary of client configuration parameters. Defaults to None.
defaults to None. Dictionary containing agent instance. Defaults to None.

getLatestMessage

Helper method to get the latest message.
The most recent message received from the ROS topic.

process_latest_msg

msg_cb

run

get_messages

Get all messages from the client.
List of messages received by the client.

stop