CPSSD / robots

CA224 robotics project
4 stars 0 forks source link

Simulator Scanning doesn't work at certain angles #140

Closed RyanConnell closed 8 years ago

RyanConnell commented 8 years ago

Simulator returns a huge value (65530.0) for scans in the ranges of:

Caused by 65530.0 being the default value here, when no line intersection is found: https://github.com/CPSSD/robots/blob/master/source/mega/simulator/libs/calc/calc.cpp#L42

This should be fixed so only proper data is sent and not some arbitrary value as it messes with mapping.

The problem seems to be a result of Line Intersections although I haven't pinpointed the exact location of the problem. (Reasoning: In the test case currently on the simulator (square room) it is impossible to have no intersection with a line, so the problem must be with intersections)