ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

[rviz-3] process has died issue

asked 2019-09-08 09:24:09 -0500

TCIII gravatar image

updated 2019-09-08 10:37:31 -0500

gvdhoorn gravatar image

I am running Raspbian Stretch and ROS Kinetic on a Rpi 3B+.

I am using a RPLidar A1M8.

I have successfully built the ROS Desktop option, but I am getting the following message when using the roslaunch rplidar_ros view_rplidar.launch command string"

QXcbConnection: Could not connect to display
[rviz-3] process has died [pid 7994, exit code -6, cmd /opt/ros/kinetic/lib/rviz/rviz -d /home/pi/rplidar_ws/src/rviz/rplidar.rviz __name:=rviz __log:=/home/pi/.ros/log/bf3bc964-d237-11e9-a538-b827ebcb393e/rviz-3.log].
log file: /home/pi/.ros/log/bf3bc964-d237-11e9-a538-b827ebcb393e/rviz-3*.log

Viewing the RPLidar output using the Test application commands works fine:

roslaunch rplidar_ros rplidar.launch
rosrun rplidar_ros rplidarNodeClient

Since I am new to ROS programming, can anyone tell me why I am getting the error with the rplidar.rviz function?

Regards, TCIII

edit retag flag offensive close merge delete

Comments

I don't believe this has anything to do with ROS per se: RViz is a visual program (ie: has a GUI). RPis are typically used without a display attached, nor with an X-server installed.

Do you have a display configured?

gvdhoorn gravatar image gvdhoorn  ( 2019-09-08 10:38:37 -0500 )edit

I setup tightvncserver on my Rpi and installed VNC Viewer. When I launch roslaunch rplidar_ros view_rplidar.launch from the Rpi Desktop on the VNC Viewer I am still getting a similar error.

Also when I tried "rosdep install rviz" to satisfy system dependencies as a test, I received this message:

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: rviz: No definition of [yaml-cpp] for OS version

So it is obvious that rviz is missing the yaml-cpp dependency for the Raspbian Stretch build?

TCIII gravatar image TCIII  ( 2019-09-09 10:52:39 -0500 )edit

I setup tightvncserver on my Rpi and installed VNC Viewer. When I launch roslaunch rplidar_ros view_rplidar.launch from the Rpi Desktop on the VNC Viewer I am still getting a similar error.

does such a setup support (software) OpenGL? If not: that would be a problem.

Also when I tried "rosdep install rviz" to satisfy system dependencies as a test,

I am confused: how can you already be testing RViz, if you don't have it installed?

gvdhoorn gravatar image gvdhoorn  ( 2019-09-09 11:44:06 -0500 )edit

According to the Kinect ROS installation instructions for Raspbian, the ROS full Desktop install includes rviz, therefore it is a mystery to me as to why there are rviz dependencies missing.

TCIII gravatar image TCIII  ( 2019-09-09 12:28:03 -0500 )edit

rosdep checks whether a package (a .deb package in your case) is installed that maps to the yaml-cpp key. But if you already have yaml-cpp installed (say by sudo make install) rosdep will not recognise it, but a build will be successful.

The fact that rosdep install .. can't resolve a dependency on your particular OS doesn't mean that the dependency is actually missing. Just that rosdep can't translate it into a package name for your OS.

If you can start RViz such that it can crash, you have all required dependencies installed (otherwise you wouldn't have been able to build it in the first place).

gvdhoorn gravatar image gvdhoorn  ( 2019-09-09 14:10:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-09-08 19:16:31 -0500

RobotDreams gravatar image

Consensus seems to be "Install rviz on a different computer"

Here is a wiki for doing that https://github.com/PolytechAngersMeca...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-09-08 09:24:09 -0500

Seen: 2,400 times

Last updated: Sep 08 '19