I created a gpu_ray sensor, with 4 beams, why am I only getting 2 different numbers?

asked 2020-03-31 13:57:33 -0600

LakeWorthB gravatar image

So I am trying to construct a sensor that has 4 beams that are outward from vehicle. So I created a sensor with 2 horizontal samples, and 2 vertical samples. The problem is when I loop through the ranges, even if I have the beams tilted against the ground, so I should get 4 very different ranges, I get the first 2 that are very close, and the second 2 are very close. Am I misunderstand something with regards?


 for (int i = 0; i < this->parentSensor->RangeCount() * this->parentSensor->VerticalRangeCount(); i++)
    ss << "," << this->parentSensor->Range(i);
edit retag flag offensive close merge delete