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

Build with ROS2 Jazzy and ROS noetic #436

Open Hunk86 opened 2 weeks ago

Hunk86 commented 2 weeks ago

Required Info:

I want to build the ROS1 bridge by myself and I've read the documentation. But for the most important part I didn't find anything on the documentation, it only mentioned that you should define your ROS1 and ROS2 install space

Now my question: ROS 1 noetic is official supported till Ubuntu 20.04 and ROS2 jazzy with Ubuntu 24.04

How i could install both?

I tried two different solution for me

1. Setup everything in Ubuntu 20.04 with binary install of ros2

At the moment I tried to build it with a ubuntu 20.04 installed ROS noetic and with the binary Release of ROS2

But when i build it I got linking problem because of traecetools which I can't disable

I tried :

colcon build --symlink-install --packages-select ros1_bridge --cmake-force-configure --cmake-args -DBUILD_TESTING=OFF -DTRACETOOLS_DISABLED=ON 

I always get

Package 'tracetools' exports library 'lttng-ust-common' which couldn't be

/usr/bin/ld: cannot find -llttng-ust-common
/usr/bin/ld/usr/bin/ld: cannot find : cannot find -llttng-ust-common-llttng-ust-common

2. Build inside docker container

I just copied /opt/noetic from my host system

But still then I've problems with e.g. the correct boost version for noetic

Are my thoughts correct to build it like that ? I dont understand why I can't disable the tracetool, or what is the best way to build ros bridge by yourself?