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

Revision history [back]

click to hide/show revision 1
initial version

I start my roscore on boot simply by adding this line in "/etc/rc.local" before "exit0":

su pi -c "source /home/pi/housieWS/devel/setup.sh ; roscore  > /dev/null 2>&1 &"

the "> /dev/null" means its logs dont get stored anywhere and "&" at the end means it starts in the background. You cant start roscore in root mode, that's why "su pi -c" is at the start of the command

I start my roscore on boot simply by adding this line in "/etc/rc.local" before "exit0":

su pi -c "source /home/pi/housieWS/devel/setup.sh /home/pi/YOURWS/devel/setup.sh ; roscore  > /dev/null 2>&1 &"

the "> /dev/null" means its logs dont get stored anywhere and "&" at the end means it starts in the background. You cant start roscore in root mode, that's why "su pi -c" is at the start of the commandcommand. Replace "/home/pi/YOURWS" with your workspace name and destination.