跟着古月居大佬的视频学习ros
- 配置软件库
- 添加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://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
- 安装ros
sudo apt-get update
sudo apt-get install ros-kinetic-desktop-full
- 初始化rosdep
sudo rosdep init
rosdep update
- 设置环境变量
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
- 安装rosinstall
sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential
- 安装完成
- 启动ros master
roscore
- 启动小海龟仿真器
rosrun turtlesim turtlesim_node
- 启动海龟控制节点
rosrun turtlesim turtle_teleop_key