# ROS Nodes Hanging

**URL:** <https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683>\
**Category:** General Questions\
**Created:** [December 8, 2020, 7:16pm UTC](https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683 "2020-12-08T19:16:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blorp](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@blorp](https://forum.ubiquityrobotics.com/u/blorp)\
**Post date:** [December 8, 2020, 7:16pm UTC](https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683/1 "2020-12-08T19:16:42Z")

</div>

Hi all, I’m using the ubiquity image to publish commands over serial port to my robot to control it. However I’ve noticed that sometimes the publishing node will hang for 100s of ms or sometimes even as much as 1s.

Is this a common issue and is there a way of alleviating it? Perhaps increasing the priority of the node/core? The PI is only running at 30% capacity so there’s plenty of compute left, but I’m guessing some higher priority task takes over and blocks ROS

---

<div class="post-metadata">

**Author:** ![MoffKalast](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/moffkalast/32/214_2.png) [@MoffKalast](https://forum.ubiquityrobotics.com/u/MoffKalast)\
**Post date:** [December 9, 2020, 8:42pm UTC](https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683/2 "2020-12-09T20:42:24Z")

</div>

Hmm not sure what could be the cause. Btw are you using a magni robot or a communicating with a custom microcontroller for another robot? If so you might want to recheck if all the magni related nodes and services are disabled and removed so there aren’t any conflicts.

---

<div class="post-metadata">

**Author:** ![mjstn2011](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/mjstn2011/32/30_2.png) [@mjstn2011](https://forum.ubiquityrobotics.com/u/mjstn2011)\
**Post date:** [December 10, 2020, 1:44am UTC](https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683/3 "2020-12-10T01:44:57Z")

</div>

If you are using wifi try a direct lan connection to see if this is a wifi issue.  
If you are not using the magni robot itself see this page to offer tips on turning off magni specific code and nodes.

- [https://learn.ubiquityrobotics.com/image\_no\_magni](https://learn.ubiquityrobotics.com/image_no_magni)

- This may also be of value for usage of GPIO lines on a non Magni product  
[https://learn.ubiquityrobotics.com/GPIO\_lines](https://learn.ubiquityrobotics.com/GPIO_lines)

Both of the above pages were made to help people who are not running the Magni robot itself. The image is enabled to support the Magni product thus you should review and use the info on above pages if there is no Magni product.

Good luck,  
Mark

---

<div class="post-metadata">

**Author:** ![blorp](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/b/ed655f/32.png) [@blorp](https://forum.ubiquityrobotics.com/u/blorp)\
**Post date:** [December 11, 2020, 6:45pm UTC](https://forum.ubiquityrobotics.com/t/ros-nodes-hanging/683/4 "2020-12-11T18:45:56Z")

</div>

It’s communicated with a custom microcontroller. I have disabled all the magni related items as best I can tell, so it sounds like it’s something else but I’ll take another look through to make sure
