gmapping+depthimage_to_laser, Scan must contain angles from -x to x
Hello All,
Problem with depthimage_to_laserscan and gmapping:
I got my Asus Xtion Pro (no RGB) up and running on ROS Indigo and Ubuntu 14.04. Now, I try to create LaserScan messages from the depthimage and use it for Gmapping. What i do is: I launch the openni2.launch
and then depthimage_to_laserscan
node. I can see the visualization of the LaserScan under the /scan topic in Rviz perfectly. But when i modify and launch my gmapping launch file (which works fine with an actual lidar), i start getting tons of repeating errors:
[ERROR] [1446110574.405766241]: Scan message must contain angles from -x to x, i.e. angle_min = -angle_max
and of course gmapping does not work. Topics and everything are correct. It must be directly related to how depthimage_to_laserscan
works. Could not figure it out myself,
Please help!