Reference:
http://blog.csdn.net/flywiththejet/article/details/55258030 1. Write multiple Ros node to be started into the same launch file: my_robot_name_2dnav/ Launch/nav_patrol.launch 2. The Roslaunch command to be started is added to the ~/.BASHRC file: Add the following at the end of the ~/.BASHRC file: ... source/opt/ros/indigo/ Setup.bashsource ~/catkin_ws/devel/setup.bashexport Ros_master_uri=http://192.168.192.166:11311export ROS_ hostname=192.168.192.166 #robot auto startif rostopic list; Then echo "Roscore and Robot_auto_start started!" else date >> ~/start_log.txt echo ": Nav_patrol Running" >> ~/start_log.txt nohup roslaunch my_robot_name_2d Nav Nav_patrol.launch & >> ~/start_log.txt sleep 30fi ... 3. Implement the system boot automatic login function sudo apt-get install lightdmvim/etc/lightdm/lightdm.conf #autologin-user= to Autologin-user=ubuntu 4. sudo reboot is OK.
Booting from the Raspberry Pi ubuntu-mate roslaunch