ros2 / ros1_bridge

ROS 2 package that provides bidirectional communication between ROS 1 and ROS 2
Apache License 2.0
421 stars 274 forks source link

Questions about using ros1_bridge in docker #400

Open jmwang0117 opened 1 year ago

jmwang0117 commented 1 year ago

I installed ros1-noetic and ros2-galactic in two dockers respectively. I want ros1 to subscribe to the topic published by ros2, so I installed ros1_bridge, and I opened all ports of the two dockers, so don’t worry about the network or ports The problem is that the two dockers are on the same host.

Docker 1: ros-noetic Ubuntu 20.04 Docker 2: ros-galactic + ros-noetic Ubuntu 20.04 ROS_MASTER_URI=http://localhost:11311

T1: run roscore in Docker 1, everything is normal; T2: Start ros1_bridge in Docker 2, and everything is normal; the premise is that ros noetic and ros galactic are installed in this Docker at the same time to compile and pass ros1_bridge; T3: run talker and everything is normal; T4: Run the listener and report an error: symbol look up error

Can anyone tell me how to fix this?

image image

quarkytale commented 1 year ago

Can you please share your Dockerfiles and source code to reproduce the issue, or preferably try with the official osrf/docker_images/galactic/ubuntu/focal/ros1-bridge image?