ROS1 和 ROS2 在同一个系统中使用
一、环境变量设置
echo "ros noetic(1) or ros2 foxy(2)?"
read edition
if [ "$edition" -eq "1" ]; thensource /opt/ros/noetic/setup.bash
elsesource /opt/ros/foxy/setup.bash
fi
二、针对不同的ROS版本创建不同的工作空间work space
一、环境变量设置
echo "ros noetic(1) or ros2 foxy(2)?"
read edition
if [ "$edition" -eq "1" ]; thensource /opt/ros/noetic/setup.bash
elsesource /opt/ros/foxy/setup.bash
fi
二、针对不同的ROS版本创建不同的工作空间work space