Skip to main content

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.
required
Configuration dictionary specifying ROS clients and their parameters
defaults to None. Optional dictionary of agent-specific parameters. Defaults to None.

create_clients

Create ROS clients based on configuration.
required
Dictionary of client configurations
required
Optional dictionary of agent parameters

getImage

Get image from named image client.
Name of image client
Unused
ImageImage object

getPosition

Get position from named pose client.
Name of pose client
Position | list: Position object or raw position data

getOrientation

Get orientation from named pose client.
Name of pose client
OrientationOrientation of agent as a quaternion

sendVelocity

Send velocity command to named velocity client.
required
VelocityLinear velocity components
required
VelocityAngular velocity components
Name of velocity client

sendPose

Send pose command to named pose client.
required
PositionTarget position
required
Target orientation (defaults to [0,0,0,1] if None)
Name of pose client

publishMsg

Publish a message to a named generic client.
required
Message to publish
Name of the generic client

getMsg

Get a message from a named generic client.
Name of the generic client

run

stop