我正在研究 ROS groovy,我想编写一个简单的图像发布器 (C++),如http://wiki.ros.org/image_transport/Tutorials/PublishingImages中所述。当我想制作包时,我遇到如下错误。我该如何解决这个问题?
... [100%] 构建 CXX 对象 CMakeFiles/my_publisher.dir/src/my_publisher.cpp.o /home/fatima/learning_image_transport/src/my_publisher.cpp:在函数'int main(int,char**)'中: /home/fatima/learning_image_transport/src/my_publisher.cpp:17:44: 错误: 'sensor_msgs::CvBridge' 尚未声明 make[3]: * [CMakeFiles/my_publisher.dir/src/my_publisher.cpp.o]错误 1 make[3]: 离开目录/home/fatima/learning_image_transport/build'
make[2]: *** [CMakeFiles/my_publisher.dir/all] Error 2
make[2]: Leaving directory
/home/fatima/learning_image_transport/build' make[1]: * [all] 错误 2 make[1]: 离开目录 `/home/fatima/learning_image_transport/build' make: * [全部]错误2
谢谢,萨米拉