进入python3.6的虚拟空间
mkdir catkin_ws
cd catkin_ws
mkdir src
cd src
git clone https://github.com/ros/geometry
git clone https://github.com/ros/geometry2
cd ..
pip install catkin_pkg pyyaml empy rospkg numpy
catkin_make_isolatedsource devel
_isolated/setup.bash
可能出现的问题,还是使用ros的Python2.7:
-- Found PythonInterp: /usr/bin/python2 (found suitable version "2.7.12", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python2
解决:catkin_make_isolated -DPYTHON_EXECUTABLE:FILEPATH=/home/XXXXXX/.conda/envs/XXX/bin/python3.6