Visualize with rviz

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.

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:

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