Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create a ros bridge image for ros2 humble / ubuntu 22 #635

Closed
ljburtz opened this issue Aug 15, 2022 · 4 comments
Closed

create a ros bridge image for ros2 humble / ubuntu 22 #635

ljburtz opened this issue Aug 15, 2022 · 4 comments

Comments

@ljburtz
Copy link

ljburtz commented Aug 15, 2022

Hello,
Would it be possible to create a docker image that includes the ros2-ros1 bridge for noetic / humble?
The same way it is done for foxy and galactic would be great!
https://github.com/osrf/docker_images/blob/master/ros/foxy/ubuntu/focal/ros1-bridge/Dockerfile

@mikaelarguedas
Copy link
Contributor

Unfortunately, there is no version of ROS1 officially upporting Ubuntu 22.04, so we would need to have all ROS Noetic ported and funtionnal on that version of Ubuntu (ideally with deb packages available) to have the raw material to craft a docker image supporting the association Ubuntu 22.04, ROS Noetic, ROS 2 Humble and the bridge

@ljburtz
Copy link
Author

ljburtz commented Aug 16, 2022

thank you for the prompt reply!
I understand and thought the same but became optimistic from this guide. https://docs.ros.org/en/humble/How-To-Guides/Using-ros1_bridge-Jammy-upstream.html
Unfortunately I was not successful trying to make a docker by following it (still had a catkin dependency mismatch)

@mikaelarguedas
Copy link
Contributor

mikaelarguedas commented Aug 17, 2022

I was not aware of that tutorial, if I read correctly it looks like you need to start from a scratch ubuntu image, build ROS2 from source, then remove the ros2 apt repo and catkin-pkg-modules before installing ros1 from ubuntu and build the bridge.
Maybe the easiest would be for you to build and use osrf/ros2:source as a base and then use a Dockerfile like the following:

FROM osrf/ros2:source

RUN rm /etc/apt/sources.list.d/ros2-latest.list

RUN apt-get update \
    && apt remove -y python3-catkin-pkg-modules \
    && apt-get install -q -y --no-install-recommends ros-core-dev \
    && rm -rf /var/lib/apt/lists/*

RUN mkdir -p $HOME/ros1_bridge/src
WORKDIR $HOME/ros1_bridge/src
RUN git clone https://github.com/ros2/ros1_bridge
RUN . /opt/ros2_ws/install/local_setup.sh \
  && MAKEFLAGS=-j1 colcon build

@mikaelarguedas
Copy link
Contributor

Without further response I'll close those considering an answer has been provided. Feel free to comment here if that's not the case and we can reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants