ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
depth_image = self.bridge.imgmsg_to_cv(data, '32FC1')
you should change the code to
depth_image = self.bridge.imgmsg_to_cv(data, "passthrough")
then, you'll get depth_image as float32.
(no longer transform using np.array is not needed.)