[Build ROS1-ROS2 bridge]
# Go to ROS2 workspace
$ cd ros2_ws/src
# Clone ros1_bridge github
$ git clone https://github.com/ros2/ros1_bridge.git
# Change branch fit your ROS2 distribution
$ cd ros1_bridge
$ git checkout ${ROS2_DISTRO}
$ cd ../../
# Build ros1_bridge
$ colcon build --symlink-install --packages-select ros1_bridge
[Step 1] ROS1 only
# Terminal 1
$ source /opt/ros/${ROS1_DISTRO}/setup.bash
# ${ROS1_DISTRO} example is noetic
$ roslaunch realsense2_camera rs_camera.launch
[Step 2] ROS2 only
# Terminal 2
$ source /opt/ros/${ROS2_DISTRO}/setup.bash
# ${ROS2_DISTRO} example is foxy
$ ros2 run sub_ros1_cam subscriber
[Step 3] ROS1-ROS2 bridge
# Terminal 3
$ source /opt/ros/${ROS1_DISTRO}/setup.bash
$ source /opt/ros/${ROS2_DISTRO}/setup.bash
$ ros2 run ros1_bridge dynamic_bridge