Can not launch a robot in gazebo using roslaunch command.

asked 2019-06-29 14:01:30 -0600

microbot gravatar image

Hello,

I am a beginner to ros and gazebo. I have been trying to roslaunch a world with a robot in it using world.launch using a command i.e.

roslaunch spider_gazebo spider_world.launch

When I do this I am having following error :[gazebo-2] process has died [pid 16791, exit code 127, cmd /home/microbot/catkin_ws/src/gazebo_ros/scripts/gzserver -e ode /home/microbot/catkin_ws/src/spider/spider_gazebo/worlds/spider.world __name:=gazebo __log:=/home/microbot/.ros/log/bc4edad2-9a9e-11e9-8cf3-2c6e85b13edd/gazebo-2.log].

I believe the error is because roslaunch secretly creates two extra hidden arguments :_name and :_log when trying to launch a node that is executable. If we are trying to call such with roslaunch that is not ROS interoperable then gazebo crashes because it has no idea about what to do with these :_name and :_log arguments. I have tried to separately load the world using "gazebo spider.world" command and it perfectly loaded the world. So i am not sure what exactly is causing this error My launch file is as follows ,

<launch>

<arg name="paused" default="false"/> <arg name="use_sim_time" default="true"/> <arg name="gui" default="true"/> <arg name="headless" default="false"/> <arg name="debug" default="false"/>

<include file="$(find gazebo_ros)/launch/empty_world.launch"> <arg name="world_name" value="$(find spider_gazebo)/worlds/spider.world"/> <arg name="debug" value="$(arg debug)"/> <arg name="gui" value="$(arg gui)"/> <arg name="paused" value="$(arg paused)"/> <arg name="use_sim_time" value="$(arg use_sim_time)"/> <arg name="headless" value="$(arg headless)"/> </include>

<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="true" output="screen" args="-urdf -model spider -param robot_description"/>

<include file="$(find spider_control)/launch/spider_control.launch"/>

</launch>

Does anyone think this error is caused due to my urdf file ? although I have tried to run this couple of months before and it perfectly spawned urdf file. I am not sure what exactly is going on now. can anyone please help me by pointing me in the right direction. Thank you.

edit retag flag offensive close merge delete