Is there a way to check if a certain coordinate is within the bounds of the map
Hello everyone. I have a specific map visualized in rviz. In this map a a function generates markers in a x*y grid. I want to check when a marker is either outside of the map or inside a obstacle.
In the picture we can see some markers are outside of the map or in a obstacle/wall.
link to map: https://imgur.com/Cduta5R
Are there a way to check if a marker is inside the light grey area (where the robot can move)?
Asked by jonx0880 on 2019-12-05 15:02:58 UTC
Answers
Whatever is broadcasting the markers, have it subscribe to the map topic itself. Using that information you can determine if its in the bounds knowing the map properties, then only publish the ones in the map boundaries.
Asked by stevemacenski on 2019-12-05 16:20:02 UTC
Comments