Laserscan ray and angle
I am trying to do obstacle avoidance with 2d laserscan from scratch. So I use urg_node for a laserscan sensor. In the float32[] ranges array in the laserscan.msg, it contains distance information. I am wondering how does it determine the size of the array. Also for each ray what angle would it be?
I found that if I set max and minx angle to + and - 2.09234976768, the size would be 683 (I did it by just printing ranges[i] until I get a ranges[i] = 0 because for some reason when I tried sizeof(msg->range), it gave 24 which is definitely not the size).
I don't get how in rviz they are able to figure the angle and the where the laser dot would be. Anyone know?
Edit: I found answer: #q198843.
Asked by Usui on 2021-01-14 20:06:42 UTC
Comments