How to import Quickshift++ clustering algorithm module into ROS-Python from Anaconda environment?

asked 2018-10-12 08:42:03 -0500

fhfonsecaa gravatar image

Hey Guys,

I recently have a problem with ROS-Python configuration:

I use this clustering algorithm QuickShift++ from here, it works perfect in Anaconda and Python 3, but I want to merge it into a ROS node and it shows me always the same error:

ImportError: No module named QuickshiftPP

My hypothesis is that ROS is working with Python 2.7 and use different libraries than Anaconda, so I tried uninstalling Anaconda and installing the QuickShift++ algorithm again, this time was placed in ROS path but now i get this error during the installation:

ImportError: No module named Cython.Distutils

My programming in ROS is mostly done in C++, I have some notions in Python and I managed to configure a working file but It does not solve my problem.

Anyone has any idea how to import modules from Anaconda into ROS? Or how to install this algorithm into ROS-Python in order to make this work together.

FYI: I am using Ubuntu 16.04 LTS, Anaconda3 and ROS Kinetic

Thank you very muchs guys.

edit retag flag offensive close merge delete