ROS: indigo Ubuntu: 14.04 OpenCV: OpenCV2 imgmsg_to_cv2 returns ndim=3 ndarray even when desired_encoding='mono8' with OpenCV2. I looked and tried to fix this issue. In this line https://github.com/ros-perception/vision_opencv/blob/indig...
cv_image = CvBridge().imgmsg_to_cv2(image_data, "bgr8") File "/home/yixiangw/gym-gazebo/gym_gazebo/envs/installation/catkin_ws/src/vision_opencv/cv_bridge/python/cv_bridge/core.py", line 163, in imgmsg_to_cv2 dtype, n_channels = self.encoding_to_dtype_with_channels(img_msg.encodin...