Update ROS CONDA PyCharm authored by Julen Urain De Jesus's avatar Julen Urain De Jesus
......@@ -9,3 +9,33 @@ It is also relevant to have ros path initialized. So, in a terminal:
`pycharm-community`
**Python 2.7 problems:**
If we are running Python 3.7 in Conda, we may find problem when running TF2. Therefore, it is relevant to install the TF2 version for python 3. Following this tutorial : [LINK](https://answers.ros.org/question/326226/importerror-dynamic-module-does-not-define-module-export-function-pyinit__tf2/)
`sudo apt update`
`sudo apt install python3-catkin-pkg-modules python3-rospkg-modules python3-empy`
Prepare Catking Workspace
`mkdir -p ~/catkin_ws/src; cd ~/catkin_ws`
`catkin_make`
`source devel/setup.bash`
`wstool init`
`wstool set -y src/geometry2 --git https://github.com/ros/geometry2 -v 0.6.5`
`wstool up`
`rosdep install --from-paths src --ignore-src -y -r`
`catkin_make --cmake-args \
-DCMAKE_BUILD_TYPE=Release \
-DPYTHON_EXECUTABLE=/usr/bin/python3 \
-DPYTHON_INCLUDE_DIR=/usr/include/python3.6m \
-DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so`
Then, we should add similarly to the photo, the link to the packages.
Add the following path : /home/nash/catkin_ws/devel/lib/python3/dist-packages