FAQs
Question 1
Cause: The reason for this warning is that there are both ROS1 and ROS2 in the environment variable.
Solution: Modify the environment variable to avoid the conflict between the two versions.
vim /opt/ros/foxy/share/ros_environment/environment/1.ros_distro.sh
# generated from ros_environment/env-hooks/1.ros_distro.sh.in
#export ROS_DISTRO=foxy
Comment out everything inside.
Bug Catching