Skip to main content

GenericClient

Inherits from: ROSClient A generic ROS client that can handle arbitrary message types and processing functions. This class inherits from ROSClient and provides functionality for publishing and processing generic ROS messages with optional custom processing functions.
The most recently published/received message

GenericClient

Initialize the generic client.
For generic client, you also need to include the following keys:
  • “msg_type”: The ROS message type
  • “fn”: The function to process the message
required
Configuration dictionary for the client
defaults to None. Dictionary of agent parameters. Defaults to None.

publish_msg

Publish a message to the configured topic. If a processing function is defined, it will be called before publishing.
required
The message to publish

get_msg

Get the most recent message.
The most recently published/received message