树莓派Ubuntu20.04安装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://keyserver.ubuntu.com:80’ --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- 更新软件
sudo apt-get update
- 安装桌面版所有内容
sudo apt install ros-noetic-desktop-full
- 设置环境变量
source /opt/ros/noetic/setup.bash
echo “source /opt/ros/noetic/setup.bash” >> ~/.bashrc source ~/.bashrc
source ~/.bashrc
- 安装测试,三个命令要分别在三个终端里,乌龟能动应该就没问题了
roscore
rosrun turtlesim turtlesim_node
rosrun turtlesim turtle_teleop_key
`
标签:Ubuntu20.04,树莓,sudo,apt,source,key,turtlesim,ros 来源: https://blog.csdn.net/qq_39669243/article/details/120765585