MYSQL_DATABASE=yourdbname # Start MySQL and the Java application 25 f CMD service mysql start && \ sleep 10 && \ mysql -u root -proot yourdbname < /docker-entrypoint-initdb.d/init.sql && \ java -jar /app/your-app.jar
ros2 topic list → show channels ros2 topic echo → receive messages ros2 topic pub → send messages Start Turtlesim 2D before running these commands. You can run these commands in a terminal inside the Docker container. 34 15
→ which programs are running? ros2 topic list → which channels exist? ros2 topic info /turtle1/cmd_vel → who publishes/subscribes, and what message type? Start Turtlesim 2D before running these commands. You can run these commands in a terminal inside the Docker container. 36 16
ProcessBuilder runs “ros2 topic pub ...” ROS CLI must be installed. Python → rclpy creates a ROS 2 node Publish Twist; subscribe to Pose. The command line is one interface; programs can publish/subscribe too. 19 40
Copyright. These slides may be used only as study material for CSC 5100 within the California State University system. They may not be distributed or used for any other purpose.