# ROS Extension on BlueOS

**URL:** <https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451>\
**Category:** Blue Robotics Software\
**Created:** [July 16, 2024, 7:20pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451 "2024-07-16T19:20:53Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 16, 2024, 7:20pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/1 "2024-07-16T19:20:53Z")

</div>

Hello,  
I set up the ros extension on blueos. The terminal that is running ros\_bridge websocket and server keep having error messages that say: Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 106 bytes were received. Please check sender for additional details, as well as occasionally saying: dropping connection to peer tcp4:127.0.0.1:(varying port #) with abort=False: None. I’m having a relatively high success rate with echoing topics but occasionally an echoed message will repeat the error above. I’m also getting the TCP/IP error when I try to do rostopic pub. I tried to echo the camera topic which opens another webpage that says it can’t be found and then brings me back to the ros terminals and displays the TCP/IP error message. I assume this is because of the lack of graphical interface. I tried to set up rqt with no success and upon restarting the ros extension it seems to have been wiped. Is there anyway to 1.) troubleshoot the sporadic connection issue and 2.) get the ability to view the camera in this ROS environment without having to setup and connect a topside computer? My topside computer is running windows right now so I would like to try to avoid having to switch to Linux to set up ROS. Thank you

---

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 19, 2024, 4:07pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/2 "2024-07-19T16:07:14Z")

</div>

Any updates on this?

---

<div class="post-metadata">

**Author:** ![JorgeBes](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jorgebes/32/13673_2.png) [@JorgeBes](https://discuss.bluerobotics.com/u/JorgeBes)\
**Post date:** [July 22, 2024, 7:30am UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/3 "2024-07-22T07:30:11Z")

</div>

Can you give more details about your setup and how do you access to the terminals in the blueos?

---

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 22, 2024, 4:14pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/4 "2024-07-22T16:14:40Z")

</div>

It’s a BlueROV2 r4. I’ve tried both a windows 10, windows 11, and Ubuntu 22.04 laptop. I open BlueOS on the web browser and I installed the ros extension from the extension page in BlueOS. When that is running a ros tab appears on the side bar of BlueOS. When I click on it it opens another browser tab with 4 terminals as described in the docker file of the BlueOS extension. In the terminal that is not running any ros services I export the ros master uri, ros up, and ros host name environment variables and set them all the blueos.local and blueos.local:11311 as the extension GitHub page specifies. I am able to then do rostopic list and echo some topics. However I get the tcp/ip error in the top right terminal that is running the ros bridge for the websocket. I also get that error when I try to rostopic pub any topic and occasionally an echoed message from a topic with get replaced with that error as well.  
I also just double checked and the environment variables won’t display ros topic list unless I change all the blueos.local to localhost. When I use blueos.local I get an unable to communicate to master error  
Here is a ss of what I see:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/bluerobotics/original/2X/b/b06857b972a9bd86011363053781406248e1be90.png)

---

<div class="post-metadata">

**Author:** ![JorgeBes](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/jorgebes/32/13673_2.png) [@JorgeBes](https://discuss.bluerobotics.com/u/JorgeBes)\
**Post date:** [July 23, 2024, 11:52am UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/5 "2024-07-23T11:52:04Z")

</div>

I think that you could try opening a terminal in your PC and connect via SSH with the boat:

ssh -X [root@192.168.2.2](mailto:root@192.168.2.2)

In this new terminal try to do the same that you were doing in the one that was not running any ros services

---

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 30, 2024, 4:44pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/6 "2024-07-30T16:44:54Z")

</div>

I tried this and ros isn’t there in the ssh terminal. Only in the ros extension environment in the docker container.

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/18385_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [July 30, 2024, 4:57pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/7 "2024-07-30T16:57:07Z")

</div>

Hi @ssicari -  
You’re likely accessing the core OS when reaching via SSH, not the environment that exists in the Docker container…  
This visual studio extension can make that easier, by letting you get into those docker containers quickly!

> **[Visual Studio Code Remote Development](https://code.visualstudio.com/docs/remote/remote-overview)**
>
> Visual Studio Code Remote Development

---

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 30, 2024, 5:51pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/8 "2024-07-30T17:51:05Z")

</div>

How would this be different than using the ros extension from blueos? Would this allow me to get pass the tcp/ip errors?

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/18385_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [July 30, 2024, 6:10pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/9 "2024-07-30T18:10:28Z")

</div>

This would simply give you a terminal prompt within the BlueOS docker container for the ROS extension, which should be the same as connecting to the container from the terminal in BlueOS.  
I’m not familiar enough with ROS to know if this will fix your issue!

---

<div class="post-metadata">

**Author:** ![ssicari](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@ssicari](https://discuss.bluerobotics.com/u/ssicari)\
**Post date:** [July 30, 2024, 6:13pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/10 "2024-07-30T18:13:37Z")

</div>

Given it will be the same environment it shouldn’t fix the tcp issue. Do you or anyone on your team know what could be causing this problem? Has anyone had success with using the ros extension?

---

<div class="post-metadata">

**Author:** ![williangalvani](https://avatars.discourse-cdn.com/v4/letter/w/6f9a4e/32.png) [@williangalvani](https://discuss.bluerobotics.com/u/williangalvani)\
**Post date:** [July 31, 2024, 4:00am UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/11 "2024-07-31T04:00:21Z")

</div>

> [@ssicari](#):
>
> Inbound TCP/IP connection failed: connection from sender terminated before handshake header received. 106 bytes were received. Please check sender for additional details, as well as occasionally saying: dropping connection to peer tcp4:127.0.0.1:(varying port #) with abort=False: None.

These are likely due to our helper service noticing the http ports open and checking if they can talk http. That _should_ not be an issue. In case it is, we need to add these ports to our helper’s blacklist.

I’m afraid I can’t help with the camera/graphical environment issues.

---

<div class="post-metadata">

**Author:** ![SirJansen](https://avatars.discourse-cdn.com/v4/letter/s/f08c70/32.png) [@SirJansen](https://discuss.bluerobotics.com/u/SirJansen)\
**Post date:** [August 15, 2024, 1:05pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/12 "2024-08-15T13:05:16Z")

</div>

First try using the IP address for the `ROS_MASTER_URI` variable. It’s a little cranky sometimes. By the way, you’re using `blueos` for the hostname in the picture not `blueos*.local`, not sure if that was intentional or not. Could you also dump the rest of the ROS env variables from with a screenshot or something please? Along with all the ports you currently have exposed on the container.

---

<div class="post-metadata">

**Author:** ![noahmurrs](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@noahmurrs](https://discuss.bluerobotics.com/u/noahmurrs)\
**Post date:** [January 24, 2025, 6:14pm UTC](https://discuss.bluerobotics.com/t/ros-extension-on-blueos/17451/13 "2025-01-24T18:14:58Z")

</div>

Hi, I am getting a similar issue that just sprung up. I have had successful link for mavros but now I cant seem to see it. I can see the topics on the graph, and when I do rostopic list in both the extension and base computer, but nothing when i echo to it. Did anything resolve the port issue?
