Ros script boot from boot _ubuntu

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.