Robotics StackExchange | Archived questions

Can not launch a robot in gazebo using roslaunch command.

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 spidergazebo spiderworld.launch

When I do this I am having following error :[gazebo-2] process has died [pid 16791, exit code 127, cmd /home/microbot/catkinws/src/gazeboros/scripts/gzserver -e ode /home/microbot/catkinws/src/spider/spidergazebo/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 ,

<!-- these are the arguments you can pass this launch file, for example paused:=true -->

<!-- We resume the logic in emptyworld.launch, changing only the name of the world to be launched --> <include file="$(find gazeboros)/launch/emptyworld.launch"> <arg name="worldname" value="$(find spidergazebo)/worlds/spider.world"/> <arg name="usesimtime" value="$(arg usesim_time)"/>

<!-- Load the URDF into the ROS Parameter Server -->

<!-- Run a python script to the send a service call to gazeboros to spawn a URDF robot --> <node name="urdfspawner" pkg="gazeboros" type="spawnmodel" respawn="true" output="screen" args="-urdf -model spider -param robot_description"/>

<!-- roscontrol spider launch file --> <include file="$(find spidercontrol)/launch/spider_control.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.

Asked by microbot on 2019-06-29 14:01:30 UTC

Comments

Answers