# Visualize with rviz

**URL:** <https://forum.ubiquityrobotics.com/t/visualize-with-rviz/76>\
**Category:** General Questions\
**Created:** [July 23, 2018, 10:36pm UTC](https://forum.ubiquityrobotics.com/t/visualize-with-rviz/76 "2018-07-23T22:36:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cfengli](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@cfengli](https://forum.ubiquityrobotics.com/u/cfengli)\
**Post date:** [July 23, 2018, 10:36pm UTC](https://forum.ubiquityrobotics.com/t/visualize-with-rviz/76/1 "2018-07-23T22:36:49Z")

</div>

I am currently trying to use rviz, I have already rosrun rviz on my workstation.  
and then when I input “roslaunch fiducial\_slam fiducial\_rviz.launch” on magni, there is following error message:

QXcbConnection: Could not connect to display  
[rviz\_RAISE\_2000\_1149265778-1] process has died [pid 2026, exit code -6, cmd /opt/ros/kinetic/lib/rviz/rviz -d /opt/ros/kinetic/share/fiducial\_slam/fiducials.rviz \_\_name:=rviz\_RAISE\_2000\_1149265778 \_\_log:=/home/ubuntu/.ros/log/0a71a9ba-df79-11d4-9d2d-0520345572d3/rviz\_RAISE\_2000\_1149265778-1.log].  
log file: /home/ubuntu/.ros/log/0a71a9ba-df79-11d4-9d2d-0520345572d3/rviz\_RAISE\_2000\_1149265778-1\*.log  
all processes on machine have died, roslaunch will exit  
shutting down processing monitor…  
… shutting down processing monitor complete  
done  
Unhandled exception in thread started by  
sys.excepthook is missing  
lost sys.stderr

Thanks.

---

<div class="post-metadata">

**Author:** ![davecrawley](https://forum.ubiquityrobotics.com/user_avatar/forum.ubiquityrobotics.com/davecrawley/32/24_2.png) [@davecrawley](https://forum.ubiquityrobotics.com/u/davecrawley)\
**Post date:** [August 13, 2018, 4:17pm UTC](https://forum.ubiquityrobotics.com/t/visualize-with-rviz/76/2 "2018-08-13T16:17:32Z")

</div>

Whoa, are you trying to run Rviz on the Magni?? I really wouldn’t do it that way. I’d connect a laptop share topics between them and try to run Rviz on the laptop while you leave the robot computer to publish topics. If you are sharing topics between the robot and a laptop, rviz on the laptop should be able to visualize all the topics that the robot is publishing.

Rviz is very resource hungry, I’d be surprised if you’d be able to get it to run nicely on a raspberry pi.

For more on how to connect a workstation go to:

> **[How to set up a ROS workstation](https://learn.ubiquityrobotics.com/workstation_setup)**
>
> Tutorials for Magni

---

<div class="post-metadata">

**Author:** ![cfengli](https://forum.ubiquityrobotics.com/letter_avatar_proxy/v4/letter/c/b5ac83/32.png) [@cfengli](https://forum.ubiquityrobotics.com/u/cfengli)\
**Post date:** [August 15, 2018, 9:41pm UTC](https://forum.ubiquityrobotics.com/t/visualize-with-rviz/76/3 "2018-08-15T21:41:01Z")

</div>

Yes, my Rviz works. What’s wrong with your Rviz?
