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

ROS autostart with daemontools

asked 2011-11-01 00:52:31 -0500

Chrimo gravatar image

Hello community,

I'd like to start ros directly after ubuntu system start... Is anybody using daemontools ?

Cheers Christian

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2011-11-01 01:57:10 -0500

DimitriProsser gravatar image

I don't know if you're only looking to use daemontools, but here is what I use to start ROS automatically. I've commented the code to explain what I'm doing.

Copy this script to /etc/init.d and then execute the following command:

sudo update-rc.d script-name defaults 99

ROS will now boot on startup into a seperate screen. The only catch is that it boots as the root user. Thus, to access it, you must use the command:

sudo screen -r

and it will bring you to the terminal containing the ROS graph.

edit flag offensive delete link more


I tried your script but it didn't work for me. The source path is definitely right but the output of the console when booting is /etc/rc2.d/S99panda_cam_startup: 45: source: not found Found /etc/rc2.d/S99panda_cam_startup: 45: bc: not found /etc/rc2.d/S99panda_cam_startup: 45: screen: not found

dinamex gravatar image dinamex  ( 2013-01-11 06:40:53 -0500 )edit

answered 2011-11-01 01:57:52 -0500

Prasad gravatar image


We have created bash -> .sh file in which roslaunch command is written.

In Ubuntu System->preference->startup application .. using gnome-terminal +x <name>.sh we executed the command to autostart the ROS when Ubuntu boots.

Hope it helps. Prasad

edit flag offensive delete link more

answered 2011-11-02 01:16:26 -0500

Chrimo gravatar image

ReHi :-) Yes, I've seen this startup scripts, but what about monitoring the running nodes ? Simple scripts or autostart methods fork and forget the started processes. Daemontools are checking the services and restart registered processes after a crash or failure.

Cheers Christian

edit flag offensive delete link more


You could always set respawn="true" in the launch file to make sure all nodes restart after failure
DimitriProsser gravatar image DimitriProsser  ( 2011-11-03 03:45:15 -0500 )edit

Question Tools



Asked: 2011-11-01 00:52:31 -0500

Seen: 2,369 times

Last updated: Nov 02 '11