Creating ROS 2 AI agents
This section will explore a few ROS 2 AI agent projects from the basics to advanced levels and see how to set them up on a local PC.
In Chapter14/docker_llm, you can find the Dockerfile and scripts to build a new image for the ROS 2 AI agent application.
You can use the following command to build the image:
./build_image.sh ros2_llm master_ros2_ws robot
In this command, ros2_llm is the Docker image name, master_ros2_ws is the ROS 2 workspace name, and robot is the username of the Docker container.
After building the image, we can create the container using the following command:
./create_container.sh ros2_llm master_ros2_ws ros2_ai
In this command, we have to provide the image name first, which is ros2_llm, and the second argument is the ROS 2 workspace, which is master_ros2_ws. The third argument is the container name, which is ros2_ai. The container will mount master_ros2_ws from the host machine, so we can build those packages...