ROS2 examples for deployment
C:\> docker run -p 8080:80 -it --name ros2 tiryoh/ros2-desktop-vnc:humble
connect to localhost:8008 in the browser (Edge is better)
- update packages
$ sudo apt update && sudo apt upgrade
- git clone
$ git clone https://github.com/bosornd/ros2_examples.git
$ cd ros2_examples
- install dependencies
$ rosdep install --from-paths src --ignore-src --rosdistro humble -y
- build
$ colcon build
$ source install/setup.bash
- case 1, each node is deployed on each process (default).
$ ros2 launch ros2_examples single_node_process.py
- case 2, multiple nodes are deployed on a single process using a single-threaded executor.
$ ros2 launch ros2_examples multi_node_single_threaded_process.py
- case 3, multiple nodes are deployed on a single process using a multi-threaded executor.
$ ros2 launch ros2_examples multi_node_multi_threaded_process.py