在anaconda创建的Python3.6的环境下使用tf2

进入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_isolated
source 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

你可能感兴趣的:(ROS,python,anaconda)