Mentions légales du service

Skip to content
Snippets Groups Projects

Resolve "Comment lq2D stuff and add temporary solution"

Merged NICAS MIQUEL Alicia requested to merge 28-comment-lq2d-temporary-solution into master
Files
2
+ 13
3
@@ -31,7 +31,7 @@
#include "core/obstacle.h"
#include "tools/vector2D.h"
#include "tools/lq2D.h"
//#include "tools/lq2D.h"
/**
* Contains the state of the world (agents and obstacles).
@@ -45,10 +45,20 @@ class World
std::vector<Obstacle*> obstacles_;
float time_;
lqInternalDB2D *lqDB;
std::vector<lqClientProxy2D*> lqProxies;
/*lqInternalDB2D *lqDB;
std::vector<lqClientProxy2D*> lqProxies;*/
static void perNeighborCallBackFunction (void* clientObject, float /*distanceSquared*/, void* clientQueryState);
/**
* Finds the nearest neighbor of an agent
* @param agent_id the id of the agent
* @param agentPosition the center of the neighborhood search
* @param search_radius
* @returns a pointer to the nearest neighbor of the agent, or a null pointer if none exists
*/
Agent * findNearestNeighborWithinRadius(size_t agent_id, const Vector2D & agentPosition, float search_radius);
public :
World();
Loading