# ROS2 on BlueOS?

**URL:** <https://discuss.bluerobotics.com/t/ros2-on-blueos/15480>\
**Category:** Blue Robotics Software\
**Tags:** blueos\
**Created:** [November 11, 2023, 10:25pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480 "2023-11-11T22:25:43Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![g\_b](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@g\_b](https://discuss.bluerobotics.com/u/g_b)\
**Post date:** [November 11, 2023, 10:25pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/1 "2023-11-11T22:25:43Z")

</div>

Dear community,

Anyone has success installing ROS2 on blue OS?

(More generally, I find the promise of the Navigator library super appealing!! My dream is to run ROS2 on the py alongside with ardusub, subscribe to some of the mavlink messages from ros, and have direct control of some of the PWM outputs from ROS. Is that realistic? Are there conflicts to anticipate?)

Thank you!

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [November 13, 2023, 12:16pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/2 "2023-11-13T12:16:14Z")

</div>

Hi @g_b,

That’s totally doable. With [navigator library](https://discuss.bluerobotics.com/t/navigator-library/14838) you’ll have full hardware access.  
To run ROS2, I would recommend taking a look on [blueos ros extension](https://github.com/BlueOS-community/blueos-ros) and used it as a base to create a ros2 version of it. Contributions with BlueOS-community organization are much welcome 🙂

---

<div class="post-metadata">

**Author:** ![g\_b](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@g\_b](https://discuss.bluerobotics.com/u/g_b)\
**Post date:** [November 13, 2023, 8:31pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/3 "2023-11-13T20:31:37Z")

</div>

Hi Patrick,

Thank you for the pointers!

The Dockerfile in the blueos ros extension repo uses arm32v7/ros:noetic-robot but I can’t find a ros2 equivalent.

There’s an ellusive mention of `arm32v7/ros:foxy` [here](https://hub.docker.com/r/arm32v7/ros) (which is ROS2), but the tag doesn’t actually exist 😅

---

<div class="post-metadata">

**Author:** ![patrickelectric](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/patrickelectric/32/2162_2.png) [@patrickelectric](https://discuss.bluerobotics.com/u/patrickelectric)\
**Post date:** [November 14, 2023, 3:23pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/4 "2023-11-14T15:23:37Z")

</div>

I believe that the same docker also provides ros2 server and tools.

---

<div class="post-metadata">

**Author:** ![g\_b](https://avatars.discourse-cdn.com/v4/letter/g/779978/32.png) [@g\_b](https://discuss.bluerobotics.com/u/g_b)\
**Post date:** [November 15, 2023, 8:59pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/5 "2023-11-15T20:59:18Z")

</div>

I didn’t manage with that docker. I did manage compiling from source in the end with quite a bit of hand-tweaking. Happy to share findings.

Thank you!

---

<div class="post-metadata">

**Author:** ![evan-palmer](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@evan-palmer](https://discuss.bluerobotics.com/u/evan-palmer)\
**Post date:** [November 17, 2023, 3:08am UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/6 "2023-11-17T03:08:38Z")

</div>

I have been able to successfully use ROS 2 and the BlueROV2 with [Blue](https://github.com/Robotic-Decision-Making-Lab/blue). Right now it works with Humble, Iron, and Rolling. I have run it both on the Pi (I used a Pi 4) and from a topside computer. It offers support for the features that you mentioned (PWM control for thrusters, receiving mavlink messages, etc). I know of another student group that is also using this project for their research. You might also find the [Orca4](https://github.com/clydemcqueen/orca4) project interesting, though it has not been used on hardware.

---

<div class="post-metadata">

**Author:** ![akaraolanis](https://avatars.discourse-cdn.com/v4/letter/a/dfb087/32.png) [@akaraolanis](https://discuss.bluerobotics.com/u/akaraolanis)\
**Post date:** [June 20, 2024, 10:16am UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/7 "2024-06-20T10:16:56Z")

</div>

Hi Evan,

Did you manage to use the ros2 setup on the actual BlueROV2 or in simulation? Which is the software setup to do this? DO you have to flash a ubuntu 22.04 image on rasberry or the proposed blueos image?

---

<div class="post-metadata">

**Author:** ![evan-palmer](https://avatars.discourse-cdn.com/v4/letter/e/2bfe46/32.png) [@evan-palmer](https://discuss.bluerobotics.com/u/evan-palmer)\
**Post date:** [June 20, 2024, 10:02pm UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/8 "2024-06-20T22:02:13Z")

</div>

@akaraolanis I’ve used it on the actual BlueROV2 and in simulation. [Here](https://discuss.bluerobotics.com/t/mavros-ros-2-in-docker-w-navigator/14855) is another thread that describes the configurations that I used to get things working on hardware. I’ve made an issue in [blue!180](https://github.com/Robotic-Decision-Making-Lab/blue/issues/180) to add documentation regarding the setup process that I used so that there is a more formal write-up showing how to setup ROS 2 on the BlueROV.

---

<div class="post-metadata">

**Author:** ![Karthik\_2](https://avatars.discourse-cdn.com/v4/letter/k/35a633/32.png) [@Karthik\_2](https://discuss.bluerobotics.com/u/Karthik_2)\
**Post date:** [January 22, 2025, 11:49am UTC](https://discuss.bluerobotics.com/t/ros2-on-blueos/15480/9 "2025-01-22T11:49:19Z")

</div>

I am trying to use BlueOS with ROS2. @g_b ,Were you able to do it? Please share the details about the work , if you were able to run it. Also i want to run it on a development pc with x86 processor, are there any docker images to deploy?
