MyCobot320Pi2022默认启动ROS1,如何换成ROS2
- Unset the ROS 1 Environment
unset ROS_DISTRO
unset ROS_ROOT
unset ROS_PACKAGE_PATH
unset ROS_MASTER_URI
unset ROS_PYTHON_VERSION
- Source ROS 2
source /opt/ros/galactic/setup.bash
- 修改.bashrc文件
修改最后一行,将其中的neotic换成galactic
(neotic是ROS1中的,galactic是ROS2中的)