robotsasfurniture / passive-sound-localization

Other
1 stars 2 forks source link

feat: Offset the center of the grid by the radius of the robot and extended max radius of grid #22

Closed nicolasperez19 closed 5 days ago

nicolasperez19 commented 5 days ago

Context: Currently I've been generating the circular grid naïvely starting at the origin:

Naïve circular generation at origin

This becomes a problem because the center of the robot is at the origin. Since the robot has a diameter of roughly 0.45m, then there's a lot of unnecessary grid points that are being generating inside the robot:

Demonstration of unnecessary grid points being generated inside robot

What I did: I offset the generation of the circular grid so that it starts off the circumference of the robot. In addition, I offset the maximum radius of the grid by the radius of the robot. As a result, there's no unnecessary grid points being generated inside the robot and the grid now has more range.

New circular grid generation offset by robot size