Ask Your Question
2

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 ?

http://cr.yp.to/daemontools/faq/create.html#why

Cheers Christian

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

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

Comments

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
0

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

Prasad gravatar image

Hi,

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
0

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

Comments

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

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

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

Seen: 2,210 times

Last updated: Nov 02 '11