ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Mikisoft's profile - activity

2016-01-27 11:29:31 -0500 commented answer cv_bridge install error on rpi rosindigo

yes, the first solution is dead-end. with second solution is everithing OK.

2016-01-25 16:49:48 -0500 received badge  Editor (source)
2016-01-25 16:48:01 -0500 commented question Help needed cv_bridge vision_opencv ros indigo rpi wheezy
2016-01-25 16:42:20 -0500 answered a question cv_bridge install error on rpi rosindigo

Wheezy has boost libraries 1.49, endian library is from version 1.58.

Working solution

use only if you are interfacing computers with little endian operating systems.

in file ~/ros_catkin_ws/src/vision_opencv/cv_bridge/src/cv_bridge.cpp make follow changes:

comment:

//#include "boost/endian/conversion.hpp"

comment:

//if ((boost::endian::order::native == boost::endian::order::big && source.is_bigendian) ||
//    (boost::endian::order::native == boost::endian::order::little && !source.is_bigendian) ||
//    byte_depth == 1)
    return mat;

change:

ros_image.is_bigendian = 0;//(boost::endian::order::native == boost::endian::order::big);

partially comment and change:

if ((!encoding.empty() && source.encoding != encoding))// || (source.is_bigendian &&
    //(boost::endian::order::native != boost::endian::order::big)))
return toCvCopy(source, encoding);