Jetbot-AI机器人教程-ROS-安装jetbot_ros
Jetbot-AI机器人教程-ROS-环境搭建
说明:
- 介绍如何在jetbot上安装ros环境
步骤:
安装ROS melodic,参考教程
安装Adafruit库
# pip should be installed
$ sudo apt-get install python-pip
# install Adafruit libraries
$ pip install Adafruit-MotorHAT
$ pip install Adafruit-SSD1306
- 分配权限
$ sudo usermod -aG i2c $USER
- 创建工作空间
# create the catkin workspace
$ mkdir -p ~/workspace/catkin_ws/src
$ cd ~/workspace/catkin_ws
$ catkin_make
# add catkin_ws path to bashrc
$ sudo sh -c 'echo "source ~/workspace/catkin_ws/devel/setup.bash" >> ~/.bashrc'
- 确认安装成功,执行命令显示:
$ echo $ROS_PACKAGE_PATH
/home/nvidia/workspace/catkin_ws/src:/opt/ros/melodic/share
# clone the repo
$ cd ~/workspace/catkin_ws/src
$ git clone https://github.com/dusty-nv/jetbot_ros
# build the package
$ cd ../ # cd ~/workspace/catkin_ws
$ catkin_make
# confirm that jetbot_ros package can be found
$ rospack find jetbot_ros
/home/nvidia/workspace/catkin_ws/src/jetbot_ros
参考:
- https://github.com/dusty-nv/jetbot_ros
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号