Why would a LaserScan topic produce different results inside code?
I'm running a turtlebot simulation, and when I use rostopic echo /scan I get a huge array of ranges, but when my subscriber gets it, I only find 24 elements. I've verified that the subscriber is set to /scan, and it seems to reliably get the first 24 every time, but I'd estimate that there are supposed to be about 500 points. What could cause this?
can you post the code you are using in your subscriber ?