Ask Your Question

Autostart ROS [closed]

asked 2014-03-18 10:44:02 -0500

updated 2016-10-24 08:35:29 -0500

ngrennan gravatar image

I need to autostart roscore and some nodes and also some other programs at the system startup. I'm trying since several hours but don't get it working, I'm using groovy on raspbian:

1. (all following done as root) I tryed to add "roscore" in the /etc/rc.local before exit 0. If I start /etc/rc.local, I get the error "roscore: not found". But if I just enter "roscore" in terminal it starts without problems. I also added "source /opt/ros/groovy/setup.bash" and "source /home/pi/ros/devel/setup.bash" in the /etc/rc.local before roscore, but it just says "source: not found".

2. So I wrote an own script and added it to the default runlevels. I can start the script manually and roscore starts, I can also stop it manually. I added it with "sudo update-rc.d <myscript> defaults" which showed no error. In the folder rc2.d I have for example the link S04<myscript> (I'm working in runlevel 2). But the script is not starting at system startup... I have "Required-Start: $all" might that be a problem?

Can anyone help me with that, I'm not getting forward here...

Kind regards! Jonny

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Ryan
close date 2014-03-18 14:53:07


Ryan gravatar image Ryan  ( 2014-03-18 14:53:13 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-03-18 11:30:05 -0500

AlphaSierra gravatar image

I hear this library is somewhat handy for automatically starting up ROS:

edit flag offensive delete link more


Topic was closed by the admin, however it might be helpful for people still searching for this how I solved it on Raspbian: Just copied the scripts that need to be sourced (see above) directly into the /etc/rc.local.

Johannes Jaegers gravatar image Johannes Jaegers  ( 2016-08-22 22:51:46 -0500 )edit

Question Tools

1 follower


Asked: 2014-03-18 10:44:02 -0500

Seen: 1,217 times

Last updated: Mar 18 '14