ROS -build environment

ROS 教程

http://wiki.ros.org/ROS/Tutorials

http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment

Install ROS

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
sudo apt-get install libgl1-mesa-dev-lts-utopic
sudo apt-get install ros-jade-desktop-full
sudo rosdep init

Managing Your Environment

export | grep ROS
看看有没有设置环境变量

echo "source /opt/ros/jade/setup.bash" >> ~/.bashrc
source ~/.bashrc

Create a ROS Workspace

 mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
创建build he devl目录及相应的.sh
cd ~/catkin_ws/
catkin_make
source devel/setup.bash
echo $ROS_PACKAGE_PATH
发现前面多了src的目录
/home/ubuntu/catkin_ws/src:/opt/ros/jade/share:/opt/ros/jade/stacks

posted @ 2015-06-14 20:39  fastwave2004  阅读(357)  评论(0编辑  收藏  举报