Ubuntu22Clion配置ROS2环境

Ubuntu22Clion配置ROS2环境_第1张图片

文件->设置->构建、执行、部署->CMake ,配置环境,添加如下用户环境变量:

AMENT_PREFIX_PATH=/opt/ros/humble
LD_LIBRARY_PATH=/opt/ros/humble/opt/rviz_ogre_vendor/lib:/opt/ros/humble/lib/x86_64-linux-gnu:/opt/ros/humble/lib
PYTHONPATH=/opt/ros/humble/lib/python3.10/site-packages:/opt/ros/humble/local/lib/python3.10/dist-packages
ROS_DISTRO=humble
ROS_LOCALHOST_ONLY=0
ROS_PYTHON_VERSION=3
ROS_VERSION=2

你可能感兴趣的:(ROS2,ide)