Ask Your Question

trouble creating launch file

asked 2012-04-12 09:43:44 -0500

metal gravatar image

updated 2012-04-12 11:12:24 -0500

tfoote gravatar image

hello Guys , I am trying to create a launch file which would execute the command:

rosrun ardrone_brown ardrone_driver

so here is the launch file: <launch> <node name="ardrone_driver" pkg="ardrone_brown" type="ardrone_driver"/> </launch>

roslaunch ardrone_brown ardronematlab.launch

and here is the corresponding output when I execute the launch file::

... logging to /home/karthik/.ros/log/88e084e4-84d4-11e1-a4e9-f04da263aca7/roslaunch-karthik-laptop-6444.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://karthik-laptop:47029/
 * /rosversion
 * /rosdistro
    ardrone_driver (ardrone_brown/ardrone_driver)
core service [/rosout] found
process[ardrone_driver-1]: started with pid [6462]
[ardrone_driver-1] process has died [pid 6462, exit code 255].
log files: /home/karthik/.ros/log/88e084e4-84d4-11e1-a4e9-f04da263aca7/ardrone_driver-1*.log
all processes on machine have died, roslaunch will exit
shutting down processing monitor...
... shutting down processing monitor complete

please give your prespective on this

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-12 10:04:33 -0500

Lorenz gravatar image

It seems like your node exits immediately. To find out why, a few hints:

Check the log file printed at the end of roslaunch for any output related to the shutdown. You can also add output="screen" to see console output, i.e.:

  <node name="ardrone_driver" pkg="ardrone_brown" type="ardrone_driver"
        output="screen" /> 
edit flag offensive delete link more

answered 2012-04-12 11:24:40 -0500

Mac gravatar image

Your launch file looks fine; something looks to be wrong with your node (because it's dying right away).

What happens if you run the node manually (i.e. with rosrun?) Is that different?

edit flag offensive delete link more


I am also having the same problem and running my node separately, "rosrun snd_control navigate" works just fine. The problem is when I put it into a launch file, " <node name="navigate" pkg="snd_control" type="navigate" respawn="false" /> " process[navigate-3]: started with pid [11739] terminate...

paresh471 gravatar image paresh471  ( 2012-07-11 05:21:16 -0500 )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


Asked: 2012-04-12 09:43:44 -0500

Seen: 335 times

Last updated: Apr 12 '12