rviz process has died.
I run the rviz and it is wrong. I use ubuntu 14.04 indigo.
[rviz-5] process has died [pid 10735, exit code 1, cmd /opt/ros/indigo/lib/rviz/rviz -d /home/andy/catkin_ws/src/ceshi/launch/display.vcg __name:=rviz __log:=/home/andy/.ros/log/c45a8ee0-02af-11e6-9049-e09467d421dc/rviz-5.log].
log file: /home/andy/.ros/log/c45a8ee0-02af-11e6-9049-e09467d421dc/rviz-5*.log
the launch file is
<?xml version="1.0"?>
<launch>
<arg name="model" />
<arg name="gui" default="False" />
<param name="robot_description" command="$(find xacro)/xacro.py $(arg model)" />
<param name="use_gui" value="$(arg gui)"/>
<node name="joint_state_publisher" pkg="joint_state_publisher" type="joint_state_publisher" ></node>
<node name="robot_state_publisher" pkg="robot_state_publisher" type="state_publisher" />
<node name="odometry" pkg="ceshi" type="odometry" />
<node name="rviz" pkg="rviz" type="rviz" args="-d $(find ceshi)/launch/display.vcg" />
</launch>
and the display.vcg
Background\ ColorB=0
Background\ ColorG=0
Background\ ColorR=0
Fixed\ Frame=/odom
Grid.Alpha=0.5
Grid.Cell\ Size=1
Grid.ColorB=0.5
Grid.ColorG=0.5
Grid.ColorR=0.5
Grid.Enabled=1
Grid.Line\ Style=0
Grid.Line\ Width=0.03
Grid.Normal\ Cell\ Count=0
Grid.OffsetX=0
Grid.OffsetY=0
Grid.OffsetZ=0
Grid.Plane=0
Grid.Plane\ Cell\ Count=10
Grid.Reference\ Frame=<Fixed Frame>
Odometry.Angle\ Tolerance=0.1
Odometry.ColorB=0
Odometry.ColorG=0.1
Odometry.ColorR=1
Odometry.Enabled=1
Odometry.Keep=100
Odometry.Length=1
Odometry.Position\ Tolerance=0.1
Odometry.Topic=/odom
Property\ Grid\ Splitter=294,78
Property\ Grid\ State=expanded=.Global Options,Odometry.Enabled;splitterratio=0.5
QMainWindow=000000ff00000000fd00000003000000000000011d000001c6fc0200000001fb000000100044006900730070006c0061007900730100000036000001c6000000ee00ffffff0000000100000131000001c6fc0200000003fb0000001e0054006f006f006c002000500072006f00700065007200740069006500730100000036000000730000006700fffffffb0000000a0056006900650077007301000000af000000d4000000bb00fffffffb0000001200530065006c0065006300740069006f006e0100000189000000730000006700ffffff00000003000003bf0000003efc0100000001fb0000000800540069006d00650100000000000003bf000002bf00ffffff00000165000001c600000004000000040000000800000008fc0000000100000002000000010000000a0054006f006f006c00730100000000ffffffff0000000000000000
Robot\ Model.Alpha=1
Robot\ Model.Collision\ Enabled=0
Robot\ Model.Enabled=1
Robot\ Model.Robot\ Description=robot_description
Robot\ Model.TF\ Prefix=
Robot\ Model.Update\ Interval=0
Robot\ Model.Visual\ Enabled=1
Robot\:\ Robot\ Model\ Link\ base_footprintAlpha=1
Robot\:\ Robot\ Model\ Link\ base_footprintEnabled=1
Robot\:\ Robot\ Model\ Link\ base_footprintShow\ Axes=0
Robot\:\ Robot\ Model\ Link\ base_footprintShow\ Trail=0
Robot\:\ Robot\ Model\ Link\ base_linkAlpha=1
Robot\:\ Robot\ Model\ Link\ base_linkEnabled=1
Robot\:\ Robot\ Model\ Link\ base_linkShow\ Axes=0
Robot\:\ Robot\ Model\ Link\ base_linkShow\ Trail=0
Robot\:\ Robot\ Model\ Link\ base_scan_linkAlpha=1
Robot\:\ Robot\ Model\ Link\ base_scan_linkEnabled=1
Robot\:\ Robot\ Model\ Link\ base_scan_linkShow\ Axes=0
Robot\:\ Robot\ Model\ Link\ base_scan_linkShow\ Trail=0
Robot\:\ Robot\ Model\ Link\ laser_base_linkAlpha=1
Robot\:\ Robot\ Model\ Link\ laser_base_linkEnabled=1
Robot\:\ Robot\ Model\ Link\ laser_base_linkShow\ Axes=0
Robot\:\ Robot\ Model\ Link\ laser_base_linkShow\ Trail=0
Robot\:\ Robot\ Model\ Link\ wheel_1Alpha=1
Robot\:\ Robot\ Model\ Link\ wheel_1Enabled=1
Robot\:\ Robot\ Model\ Link\ wheel_1Show\ Axes=0
Robot\:\ Robot\ Model\ Link\ wheel_1Show\ Trail=0
Robot\:\ Robot\ Model\ Link\ wheel_2Alpha=1
Robot\:\ Robot\ Model\ Link\ wheel_2Enabled=1
Robot\:\ Robot\ Model\ Link\ wheel_2Show\ Axes=0
Robot\:\ Robot\ Model\ Link\ wheel_2Show\ Trail=0
Robot\:\ Robot\ Model\ Link\ wheel_3Alpha=1
Robot\:\ Robot\ Model\ Link\ wheel_3Enabled=1
Robot\:\ Robot\ Model\ Link\ wheel_3Show\ Axes=0
Robot\:\ Robot\ Model\ Link\ wheel_3Show\ Trail=0
Robot\:\ Robot\ Model\ Link\ wheel_4Alpha=1
Robot\:\ Robot\ Model\ Link\ wheel_4Enabled=1
Robot\:\ Robot\ Model\ Link\ wheel_4Show\ Axes=0
Robot\:\ Robot\ Model\ Link\ wheel_4Show\ Trail=0
Target\ Frame=/base_footprint
Tool\ 2D\ Nav\ GoalTopic=goal
Tool\ 2D\ Pose\ EstimateTopic=initialpose
[Display0]
ClassName=rviz::RobotModelDisplay
Name=Robot Model
[Display1]
ClassName=rviz::GridDisplay
Name=Grid
[Display2]
ClassName=rviz::OdometryDisplay
Name=Odometry
[Window]
Height=576
Width=959
X=-16
Y=-56
Somebody can tell me how to do?
Asked by littlestar on 2016-04-14 21:21:58 UTC
Comments
It looks like you're using a vcg file, which is the older rviz config format. Which version of ROS are you using?
Asked by ahendrix on 2016-04-14 21:43:05 UTC
In addition to what @ahendrix asked: this is most likely not all output that RViz produced. Did it print any warnings or errors before it exited?
Asked by gvdhoorn on 2016-04-15 02:49:17 UTC
indigo. The vcg file is the older rviz config format,and I do not know how to change it to the rviz file. I just started learning ROS, and I can not find the tutorial that how to write the rviz file. Can you tell some website that about rviz tutorial?
Asked by littlestar on 2016-04-16 00:19:22 UTC
There is not other warinings or errors before it exited.
Asked by littlestar on 2016-04-16 00:20:30 UTC
See if it starts if you remove the
args
attribute on therviz
node in your launch file. If it does, it's most likely the old version config file that is causing this.Asked by gvdhoorn on 2016-04-16 01:36:10 UTC
I remove the rviz node and it is ok. And I do not know how to write a .rviz file because the .vcg file is a example. Do you know where can I learn how to write a .rviz file?
Asked by littlestar on 2016-04-16 01:58:31 UTC
No, you shouldn't remove the rviz node, just remove the
args
attribute, so it doesn't try to load the.vcg
file. And you don't need to write a.rviz
by hand, it's automatically generated by RViz if you save the window configuration.Asked by gvdhoorn on 2016-04-16 02:37:43 UTC