coral edge tpu with python 3
I want to use my Coral Edge TPU with my standard ros melodic installation.
The package I want to use (edgetpu_ros) needs to be run in a ROS environment with Python 3, because the Edge TPU API doesn't work with Python 2.
I have a running standard ROS installation, which uses Python 2 as default, and I does not want to change my running system.
The solution of the author is to use catkin config to create a new workspace with python 3:
catkin config -DPYTHON_EXECUTABLE=/home/josh/miniconda3/envs/ros-py3/bin/python \
-DPYTHON_INCLUDE_DIR=/home/josh/miniconda3/envs/ros-py3/include/python3.5m \
-DPYTHON_LIBRARY=/home/josh/miniconda3/envs/ros-py3/lib/libpython3.5m.so \
-DSETUPTOOLS_DEB_LAYOUT=OFF
Will the suggested workflow and the new workspace activated with "catkin config" (never used catkin config before) have an impact on the already existing workspaces / ros installation? Or do I have to switch completely to python3 ?
Then, clone the cv_bridge repository in your source folder. If you have OpenCV 3 built and in your path, then in theory everything is fine. The only issue you may come up against is that Numpy will shout at you. If it does, locate the offending file and check the #ifdef statement - just delete the bit that isn't for Python3.
Never change a running system!