Note: In the control of the robot card computer, industrial computer, seconds, etc. above, often to achieve the start of ROS node. Take my system as an example: Ubuntu 14.04 + Ros Indigo, through the seconds to achieve M100 control of the camera node.
Preparing the Execution node
First you want to write yourself into the executable shell script, for example:
#! /bin/bash
source/opt/ros/indigo/setup.sh
(Note: The second line of the program is to turn on the declaration of ROS environment variables, the third line is the node name you want to perform)
Change Script enforceability
Change the above script property to executable:
sudo chmod +x/path/to/script.sh
Add boot Run
Open system–>preferences–> Startup Application, click Add, increase the boot run script. Set the following three items:
Name–> Rosnome
Command–> Gnome-terminal-x/path/to/script.sh
Comment–> rosscripts
Terminal often set
Open the terminal and check hold the terminal open in Edit–>profile preferences–>title and Command tab.
Reboot the computer to check for boot execution.
Main reference: http://ros-users.122217.n3.nabble.com/auto-start-ROS-launch-script-on-boot-up-td1687093.html
by Dr. Sword.