Ask Your Question

Automated rosbag on start up

asked 2016-06-16 10:20:30 -0500

My plan is to use a remote computer to create a rosbag. I was wondering what is the best practice to automatically start a rosbag record instance after boot on an Ubuntu 14.04 Odroid system. Any experiences ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2016-06-16 12:42:09 -0500

I have done that using systemd services that launches a roslaunch file from a bash script. You can also do it using the ubuntu's "startup applications" or "sessions" to launch any app at startup.

In any case, be careful with rosbag files because they are really disk space consuming.

edit flag offensive delete link more


Thanks for the pointer. I eventually got it working with Upstart instead of Systemd since it was used on my system.

Sebastian Rockel gravatar image Sebastian Rockel  ( 2016-06-18 05:02:18 -0500 )edit

I just migrated my project to Ubuntu 16.04LTS and need to get Systemd to do exactly what you're describing Pablo, could you possibly post an example bash script here? Cheers

Andre_Preller_3000 gravatar image Andre_Preller_3000  ( 2016-10-03 22:14:40 -0500 )edit

answered 2016-06-16 19:00:33 -0500

You can easily do that with robot_upstart which starts a launch files on boot as a service.

edit flag offensive delete link more


The problem I see with upstart is that is deprecated from 15.04. Ubuntu people tried to introduce upstart to replace SystemV init... but the debian community finally moved to systemd. New versions of ubuntu works now with systemd.

Pablo Iñigo Blasco gravatar image Pablo Iñigo Blasco  ( 2016-06-16 20:33:56 -0500 )edit

I am aware however the target OS is trusty which still uses upstart.

tonybaltovski gravatar image tonybaltovski  ( 2016-06-16 21:56:43 -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

1 follower


Asked: 2016-06-16 10:20:30 -0500

Seen: 539 times

Last updated: Jun 16 '16