# Workstation error launching magni\_viz

**URL:** <https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426>\
**Category:** General Questions\
**Created:** [December 17, 2019, 6:10pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426 "2019-12-17T18:10:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [December 17, 2019, 6:10pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/1 "2019-12-17T18:10:29Z")

</div>

I have recently received my first magni silver, and am having issues with magni\_viz, I am getting an error on my workstaion computer as I run:  
`roslaunch magni_viz view_nav.launch`  
or  
`roslaunch magni_viz view_robot.launch`  
it says its a network error on varrious ports and says it is probably not able to ping itself.  
I have followed the tutorials up to visualize with RViz.  
I get the same error using the magni hotspot or running over the company wifi, and set up with host names or ip addresses. rostopic list show the expected pile of nodes (same on robot through ssh as on workstation).

---

<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 17, 2019, 11:04pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/2 "2019-12-17T23:04:51Z")

</div>

Have you looked at the page on our learn site yet: [https://learn.ubiquityrobotics.com/workstation\_setup](https://learn.ubiquityrobotics.com/workstation_setup)

Pay attention to the discussion of the ROS variables of ROS\_MASTER\_URI and ROS\_HOSTNAME.  
When you make changes to those environment variables they must be properly exported so I suggest if you change them in your .bashrc you re ‘source’ the file or better yet do a reboot.  
The error you report is often due to setup of these environment variables.

ROS1 must be setup on our Magni (which of course it would be) and also be setup on the workstation or laptop. Both computers must be on the same network and able to ping each other as well.

Be sure that the network names you use for those variables are able to be used with success in a linux ping command as well.

A word on versions of Ubiquity Linux and ROS. We ship using Ubuntu 16.04 on our current images and we do our makes for production code on ROS Kinetic (matches to Ubuntu 16.04).

A couple of us here are using Ubuntu Linix 18.04 (Melodic) on our laptops with great success for running Rviz and other ssh python scrips so I will not go so far as to say it is supported but it ‘seems ok’ and I use that combination with daily success.

The use of ROS2 has been ‘played with’ but that is a fast moving area in a lot of ‘flux’ and I cannot recommend that path at this time due to the flux in ROS2 and the ROS1 to ROS2 bridge but I don’t think you are asking that level of support.

Let us know if your issue is still not resolved after looking at that page of ours.

Mark

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [December 19, 2019, 2:09pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/3 "2019-12-19T14:09:03Z")

</div>

Yes I was following the learn.ubiquity tutorials.  
I have exported ROS\_MASTER\_URI and ROS\_HOSTNAME. and I know that works because rostopic list works. I am running ubuntu 16.04 and ros kinetic on the workstation.

---

<div class="post-metadata">

**Author:** ![rohbotics](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/rohbotics/32/222_2.png) [@rohbotics](https://forum.ubiquityrobotics.com/u/rohbotics)\
**Post date:** [December 19, 2019, 2:21pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/4 "2019-12-19T14:21:16Z")

</div>

Can you please post the output of `env | grep ROS` and `ifconfig` and `hostname`? Also the output of `roswtf`.

Thanks,  
Rohan

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [December 19, 2019, 7:03pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/5 "2019-12-19T19:03:52Z")

</div>

> [@rohbotics](#):
>
> `env | grep ROS`

on workstation:  
`env | grep ROS`  
ROS\_ROOT=/opt/ros/kinetic/share/ros  
ROS\_PACKAGE\_PATH=/home/lorne/catkin\_ws/src:/opt/ros/kinetic/share  
ROS\_MASTER\_URI=[http://ubiquityrobot.local:11311](http://ubiquityrobot.local:11311)  
ROS\_PYTHON\_VERSION=2  
ROS\_VERSION=1  
ROS\_HOSTNAME=.local  
ROSLISP\_PACKAGE\_DIRECTORIES=/home/lorne/catkin\_ws/devel/share/common-lisp  
ROS\_DISTRO=kinetic  
ROS\_ETC\_DIR=/opt/ros/kinetic/etc/ros

on robot:

ROS\_ROOT=/opt/ros/kinetic/share/ros  
ROS\_PACKAGE\_PATH=/home/ubuntu/catkin\_ws/src:/opt/ros/kinetic/share  
ROS\_MASTER\_URI=[http://ubiquityrobot.local:11311](http://ubiquityrobot.local:11311)  
ROS\_VERSION=1  
ROS\_PARALLEL\_JOBS=-j2  
ROS\_HOSTNAME=ubiquityrobot.local  
ROSLISP\_PACKAGE\_DIRECTORIES=/home/ubuntu/catkin\_ws/devel/share/common-lisp  
ROS\_DISTRO=kinetic  
ROS\_ETC\_DIR=/opt/ros/kinetic/etc/ros

workstation ifconfig  
enp2s0 Link encap:Ethernet HWaddr b8:ae:ed:99:7c:2a  
inet addr:10.105.11.123 Bcast:10.105.11.255 Mask:255.255.255.0  
inet6 addr: fe80::9bbc:ab81:a1e8:1da6/64 Scope:Link  
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1  
RX packets:2110010 errors:0 dropped:0 overruns:0 frame:0  
TX packets:35155 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:1000  
RX bytes:207204806 (207.2 MB) TX bytes:2907020 (2.9 MB)

lo Link encap:Local Loopback  
inet addr:127.0.0.1 Mask:255.0.0.0  
inet6 addr: ::1/128 Scope:Host  
UP LOOPBACK RUNNING MTU:65536 Metric:1  
RX packets:7558 errors:0 dropped:0 overruns:0 frame:0  
TX packets:7558 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:1000  
RX bytes:655938 (655.9 KB) TX bytes:655938 (655.9 KB)

wlp3s0 Link encap:Ethernet HWaddr c4:8e:8f:7a:7b:39  
inet addr:10.42.0.86 Bcast:10.42.0.255 Mask:255.255.255.0  
inet6 addr: fe80::d315:70e2:7b7b:d2bb/64 Scope:Link  
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1  
RX packets:73021 errors:0 dropped:0 overruns:0 frame:0  
TX packets:73131 errors:0 dropped:0 overruns:0 carrier:0  
collisions:0 txqueuelen:1000  
RX bytes:17475112 (17.4 MB) TX bytes:6435947 (6.4 MB)

the top connection is a hardline to company network, I’ve tried with it unplugged as well.

lorne@rosmaster:/$ hostname  
rosmaster

lorne@rosmaster:/$ roswtf  
Loaded plugin tf.tfwtf

No package or stack in context

================================================================================  
Static checks summary:

Found 1 warning(s).  
Warnings are things that may be just fine, but are sometimes at fault

WARNING ROS\_HOSTNAME may be incorrect: ROS\_HOSTNAME [.local] cannot be resolved to an IP address

================================================================================  
Beginning tests of your ROS graph. These may take awhile…  
analyzing graph…  
… done analyzing graph  
running graph rules…  
… done running graph rules  
running tf checks, this will take a second…  
… tf checks complete

Online checks summary:

Found 1 warning(s).  
Warnings are things that may be just fine, but are sometimes at fault

WARNING The following node subscriptions are unconnected:

- /tf2\_web\_republisher:
  - /tf2\_web\_republisher/cancel
  - /tf2\_web\_republisher/goal

---

<div class="post-metadata">

**Author:** ![lorne](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@lorne](https://forum.ubiquityrobotics.com/u/lorne)\
**Post date:** [December 19, 2019, 7:19pm UTC](https://forum.ubiquityrobotics.com/t/workstation-error-launching-magni-viz/426/6 "2019-12-19T19:19:53Z")

</div>

OK thanks. I had a $ by the hostname (host was $rosmaster) fixed that and its working. thanks
