ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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
2 | No.2 Revision |
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.