-
-
Save jediofgever/87fc16eacd40683366940c32a5dffd79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 1. Run ROS Nodes with Python3 | |
This will need a seperate ros workspace which is built againist python3. In following steps there is instructions on how to create and build workspace against python3 | |
### 1.0 install necessery tools for python3 | |
```bash | |
sudo apt-get install python3-pip python3-yaml | |
sudo pip3 install rospkg catkin_pkg | |
sudo apt-get install python-catkin-tools python3-dev python3-numpy | |
``` | |
### 1.1 clone ros source code and cv_bridge | |
```bash | |
cd ~/catkin_ws | |
mkdir -p ws_py3_nn/src | |
cd ws_py3_nn/src | |
git clone https://github.com/ros/ros.git | |
git clone -b melodic https://github.com/ros-perception/vision_opencv.git | |
``` | |
### 1.2 build ROS and cv_bridge againist python3 | |
```bash | |
cd ~/catkin_ws/ws_py3_nn | |
catkin_make_isolated -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment