Skip to content

Commit 1eb29b3

Browse files
committed
ROS CV BRIDGE for python 3
1 parent 2aacdd0 commit 1eb29b3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: ROS/cv_bridge-py3.sh

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Compiling ROS cv_bridge with python3
2+
3+
# Main Starts from here
4+
# Install dep
5+
sudo apt-get install python3-pip python-catkin-tools python3-dev python3-numpy
6+
7+
# Install python dep
8+
sudo pip3 install rospkg catkin_pkg
9+
10+
# Create a workspace
11+
mkdir -p ~/cvbridge_build_ws/src
12+
cd ~/cvbridge_build_ws/src
13+
14+
# Clone vision opencv repo
15+
git clone -b noetic https://github.com/ros-perception/vision_opencv.git
16+
17+
# Configure and compile
18+
cd ~/cvbridge_build_ws
19+
20+
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/aarch64-linux-gnu/libpython3.6m.so
21+
22+
catkin config --install
23+
24+
catkin build cv_bridge && source install/setup.bash --extend
25+

0 commit comments

Comments
 (0)