mkdir cvbridge_ws && cd cvbridge_ws
sudo apt-get install python3-catkin-tools
catkin init
catkin config -DPYTHON_EXECUTABLE=/usr/bin/python3 -DPYTHON_INCLUDE_DIR=/usr/include/python3.6m -DPYTHON_LIBRARY=/usr/lib/x86_64-linux-gnu/libpython3.6m.so
catkin config --install
cd src
git clone -b melodic https://github.com/ros-perception/vision_opencv.git
apt-cache show ros-melodic-cv-bridge | grep Version
version
cd vision_opencv/
git checkout 1.13.0
cd ../../
catkin build cv_bridge
source install/setup.bash --extend -> bashrc에 추가
출처 https://stackoverflow.com/questions/49221565/unable-to-use-cv-bridge-with-ros-kinetic-and-python3