SyrianSpock / realsense_gazebo_plugin

Intel RealSense R200 Gazebo ROS plugin and model
93 stars 78 forks source link

depthimage_to_laser ' Cannot call rectifyPoint when distortion is unknown.' #51

Open q8wwe opened 4 years ago

q8wwe commented 4 years ago

plugin worked for me but I cant use it with depthimage to laser :

Could not convert depth image to laserscan: Cannot call rectifyPoint when distortion is unknown.

please advice how to solve the problem

SyrianSpock commented 4 years ago

Which ROS/Gazebo do you use?

q8wwe commented 4 years ago

I used Ros Kinetic with Gazebo 7

drjsmith commented 4 years ago

@q8wwe @SyrianSpock I encountered the same problem some time ago. The source of the error is that rectifyPoint requires a distortion model and no distortion model is being specified in the CameraInfo message. The fix-distortion-model branch of this repo contains my fix. This diff shows how the distortion model (which in this case indicates no distortion) can be set.