ROS1 Bridge

Installation

Install ROS and ROS2. Ensure both are installed on the machine.

http://wiki.ros.org/melodic/Installation/Ubuntu

https://github.com/ros2/ros1_bridge/blob/master/README.md#example-1a-ros-1-talker-and-ros-2-listener

Run Bridge

Source the ROS1 then the ROS2 workspaces. Make sure you do it in this order. At the very least, source the ROS workspace. Then set the master URI for ROS. Then start the bridge

1
2
3
 . /opt/ros/melodic/setup.bash
export ROS_MASTER_URI=http://10.42.0.1:11311
ros2 run ros1_bridge dynamic_bridge

View ROS Topics as a test

1
2
3
4
export ROS_MASTER_URI=http://10.42.0.1:11311
rostopic list
rosnode list
rosmsg list

Get the ROS Topic Message Types

1
2
3
ros2 topic list
rostopic list
rostopic type /camera/person/detection_image | rosmsg show
comments powered by Disqus