ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please don't shout.
The problem is you're compiling the trunk (or perhaps Electric) version of cv_bridge
against your Diamondback install of sensor_msgs
. Mixing packages from different ROS distros will almost always get you into trouble. In this case, in Electric we added support for some 16-bit encodings (BGR16
, RGB16
, etc.). So the Electric cv_bridge
references those, but they aren't defined in the Diamondback sensor_msgs
.
You're on Ubuntu, so you shouldn't need to compile cv_bridge
at all. Just use the prebuilt debian package:
sudo apt-get install ros-diamondback-vision-opencv
If there's some ROS stack that you need to modify (and therefore install from source), make sure to check out the maintenance branch for whatever distro you're using. In this case that would be:
https://code.ros.org/svn/ros-pkg/stacks/vision_opencv/branches/vision_opencv-1.4
1.4 = Diamondback, 1.6 = Electric, and trunk is for active development (currently leading to Fuerte).