Add a-star based global planner
This commit is contained in:
8
mg_planner/src/obstacleManager.cpp
Normal file
8
mg_planner/src/obstacleManager.cpp
Normal file
@ -0,0 +1,8 @@
|
||||
#include "mg_planner/obstacleManager.hpp"
|
||||
#include "mg_planner/config.hpp"
|
||||
|
||||
namespace mg {
|
||||
bool ObstacleManager::check_collision(glm::ivec2 pos, float size) {
|
||||
return (pos.x >= MIN_X && pos.x < MAX_X) && (pos.y >= MIN_Y && pos.y < MAX_Y);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user