Learn how to integrate GRID with ROS
ros2 run rosbridge_server rosbridge_websocket port:=8080
in the terminal.ROSAgent
ROSAgent
class. This is designed to create any publishers/subscribers that you need easily. There are a few clients that we have created in advance, but we also offer a generic option in the circumstance that you need additional functionality.
msg_type
: “sensor_msgs/Image”msg_type
: “geometry_msgs/Twist”topic_name
: “/cmd_vel”msg_type
: “geometry_msgs/Pose”topic_name
: “/robot_pose”agent_dict
parameter is used to connect ROS clients with real robot agents. Here’s how it’s used in each client:
publish_agent_image()
)getImage()
methodmoveToPose()
)getPosition()
, getOrientation()
)moveByVelocity()
)agent_dict
is passed to each client during creation when the real
flag is set to True in the client configuration. This allows the clients to directly control the physical robot through the agent interface.
/cmd_vel
topic. This can be used to control any agent, including the phsyical robots, as long as the respective agent has the required methods implemented.