1 主要是nano jetpack 默认安装opencv4和ros melodic的cv_bridge冲突
sudo vi /opt/ros/melodic/share/cv_bridge/cmake/cv_bridgeConfig.cmake
找到
set(cv_bridge_FOUND_CATKIN_PROJECT TRUE)
if(NOT "include;/usr/include;/usr/include/opencv " STREQUAL " ")
set(cv_bridge_INCLUDE_DIRS “”)
set(_include_dirs “include;/usr/include;/usr/include/opencv”)
最后的 一行改为
set(_include_dirs “include;/usr/include;/usr/include/opencv4”)