ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

trouble creating launch file

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

metal gravatar image

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

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/
SUMMARY
========
PARAMETERS
 * /rosversion
 * /rosdistro
NODES
  /
    ardrone_driver (ardrone_brown/ardrone_driver)
ROS_MASTER_URI=http://localhost:11311
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
done

please give your prespective on this

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

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

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.:

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

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

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

Comments

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 -0600 )edit

Question Tools

Stats

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

Seen: 405 times

Last updated: Apr 12 '12