RosAgent
Inherits from: Robot
A class to represent a ROS-based robot agent.
This class inherits from Robot and implements ROS-specific functionality for
communicating with and controlling a robot through ROS topics.
RosAgent
Initialize a ROS agent with the given client configuration.
Configuration dictionary specifying ROS clients and their parameters
agent_dict (dict | None), optional
defaults to None.
Optional dictionary of agent-specific parameters. Defaults to None.
create_clients
Create ROS clients based on configuration.
Dictionary of client configurations
agent_config (dict | None) Optional dictionary of agent parameters
getImage
Get image from named image client.
image_type (str), optional
Unused
getPosition
Get position from named pose client.
Position | list: Position object or raw position data
getOrientation
Get orientation from named pose client.
sendVelocity
Send velocity command to named velocity client.
sendPose
Send pose command to named pose client.
orientation (Orientation | None) Target orientation (defaults to [0,0,0,1] if None)
publishMsg
Publish a message to a named generic client.
Name of the generic client
getMsg
Get a message from a named generic client.
Name of the generic client
run
stop