Ask Your Question

Terminal Freezes after roslaunch event

asked 2015-09-15 12:39:32 -0600

Arpit gravatar image

updated 2015-09-15 14:45:13 -0600

I want to spawn a pioneer3at robot in gazebo through ros so I created a file called p3at.launch and made the corresponding urdf file. When I roslaunch it, it started normally but freezes. Terminal looks like this -


arpit@arpit-SVE15137CNB:/opt/ros/indigo/share/urdf$ roslaunch gazebo_ros p3at.launch

... logging to /home/arpit/.ros/log/ee1fb8ae-5bcf-11e5-97ce-b8763fea9d09/roslaunch-arpit-SVE15137CNB-16521.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://arpit-SVE15137CNB:54185/



 * /robot_description: <?xml version="1....
 * /rosdistro: indigo
 * /rosversion: 1.11.13


    robot_state_publisher (robot_state_publisher/robot_state_publisher)
    spawn_urdf (gazebo_ros/spawn_model)

auto-starting new master

process[master]: started with pid [16536]
setting /run_id to ee1fb8ae-5bcf-11e5-97ce-b8763fea9d09
process[rosout-1]: started with pid [16549]
started core service [/rosout]
process[spawn_urdf-2]: started with pid [16566]
process[robot_state_publisher-3]: started with pid [16567]

And here is the launch file

  <env name="GAZEBO_MODEL_PATH" value="$GAZEBO_MODEL_PATH:~/.gazebo/models" />
  <env name="GAZEBO_RESOURCE_PATH" value="$GAZEBO_RESOURCE_PATH:~/.gazebo/models" />

  <arg name="world" default="worlds/" />

  <arg name="urdf" default="$(find urdf)/pioneer3at.urdf" />
  <arg name="name" default="pioneer3at" />
  <param name="robot_description" command="$(find xacro)/ $(arg urdf)" />
  <node name="spawn_urdf" pkg="gazebo_ros" type="spawn_model" args="-param robot_description -urdf -model $(arg name)" /> 
  <node name="robot_state_publisher" pkg="robot_state_publisher" type="robot_state_publisher" />

edit retag flag offensive close merge delete


That looks normal. What do you expect it to do?

ahendrix gravatar imageahendrix ( 2015-09-15 13:19:32 -0600 )edit

It does not launch the gazebo simulator with the p3at robot. It is not doing anything after this whereas the other launch files are launched in the gazebo simulator.

Arpit gravatar imageArpit ( 2015-09-15 13:42:32 -0600 )edit

May be your processor is slow or less RAM. What is your processor and how much RAM ?

bvbdort gravatar imagebvbdort ( 2015-09-15 15:40:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-09-15 14:21:16 -0600

ahendrix gravatar image

updated 2015-09-15 19:30:07 -0600

It looks like your launch file doesn't include an instance of gazebo; only the spawner, which expects to connect to gazebo.

If you want to solve this on your own, compare your launch file to an existing launch file that behaves the way you expect, with a different robot.

If you want more help, please edit your question to include the launch file that you've written.


Your launch file does not start gazebo.

You can start gazebo by adding the following include to your launch file:

<include file="$(find gazebo_ros)/launch/empty_world.launch">
  <arg name="use_sim_time" value="true"/>
  <arg name="debug" value="false"/>
edit flag offensive delete link more


Yeah! Thanks !! :)

Arpit gravatar imageArpit ( 2015-09-15 23:20:11 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-09-15 12:39:32 -0600

Seen: 209 times

Last updated: Sep 15 '15