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