Pop_os使用ros2和webots学习机器人仿真

博主在Pop_OS 20.04上安装了与Ubuntu相同版本的ROS2 Foxy和Webots 2019a,过程中未遇到问题。系统壁纸具有B站风格。详细记录了从更新系统、添加源、安装软件到运行案例的全部指令,包括安装ros2、webots、相关扩展和依赖,并成功运行了几个ros2相关演示。

所使用的Pop_os版本与ubuntu一致为20.04,使用感受不如ubuntu,可能是个人习惯吧。

安装ros2和webots,没有遇到问题。

成功

失败

壁纸很有B站风格……

系统简要信息:

安装ros2-foxy和webots2019a。

案例使用参考博客webots+ros2笔记系列。

一共输入了如下指令(包括重复的):

    1  sudo apt update 
    2  sudo apt upgrade 
    3  sudo apt update && sudo apt install curl gnupg2 lsb-release
    4  sudo gedit /etc/apt/sources.list.d/ros2-latest.list
    5  sudo apt update
    6  sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
    7  sudo apt update
    8  sudo apt install ros-foxy-desktop
    9  gedit /etc/apt/sources.list
   10  sudo gedit /etc/apt/sources.list
   11  sudo apt update 
   12  sudo apt install ros-foxy-desktop
   13  sudo apt update 
   14  sudo apt upgrade 
   15  sudo apt install python3-argcomplete
   16  sudo apt install python3-colcon-ros 
   17  ls
   18  cd 下载
   19  ls
   20  sudo dpkg -i webots_2021a_amd64.deb 
   21  sudo apt install -f
   22  sudo apt update 
   23  sudo apt upgrade 
   24  sudo dpkg -i webots_2021a_amd64.deb 
   25  sudo apt install python3-colcon-common-extensions
   26  ls
   27  cd Robtools/
   28  ls
   29  cd webots_ws/
   30  source /opt/ros/foxy/local_setup.bash 
   31  colcon build
   32  sudo apt install ros-foxy-gazebo-ros
   33  colcon build
   34  sudo apt install ros-foxy-gazebo-ros
   35  sudo apt install ros-foxy-gazebo-ros ros-foxy-gazebo-ros-pkgs 
   36  colcon build
   37  source install/local_setup.bash 
   38  ros2 launch webots_ros2_epuck robot_launch.py
   39  ros2 launch webots_ros2_epuck robot_with_tools_launch.py rviz:=true
   40  ros2 launch webots_ros2_demos armed_robots.launch.py
   41  sudo apt install ros-foxy-control-msgs
   42  ros2 launch webots_ros2_demos armed_robots.launch.py
   43  history



 

评论 4
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

zhangrelay

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值