Ask Your Question

Automated rosbag on start up

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

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

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 imageSebastian Rockel ( 2016-06-18 05:02:18 -0600 )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 imageAndre_Preller_3000 ( 2016-10-03 22:14:40 -0600 )edit

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

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 imagePablo Iñigo Blasco ( 2016-06-16 20:33:56 -0600 )edit

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

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

Seen: 313 times

Last updated: Jun 16 '16