VIPRA Documentation
|
Map modules hold the geometry of the environment and handle map/pedestrian collision detection.
In addition to the Base Module requirements Goals
require the following:
obstacles
: std::vector<VIPRA::Polygon> - vector containing the VIPRA::Polygons for each obstacletypes
: std::vector<std::string> - vector containing a list of the types of objects in the mapobjects
: std::map<std::string, VIPRA::f3dVec> - map containing each object type and the positions of each of the objects of those typesThe Map is ready for the first timestep of the simulation
NONE
The list of object types in the map
NONE
type
- the type of object to get the positions ofvector containing the positions of the objects of the provided type
NONE
point
- the point to check for collision with an obstacletrue
if the point is within an obstaclefalse
if notNONE
area
- the circle to check for collision with an obstacletrue
if any point inside the circle is also within an obstaclefalse
if notNONE
start
- the start of the line segmentend
- the end of the line segmentstart
to the collision point, if the ray collides with an obstacleNONE
NONE
The X, Y, and Z dimensions of the map
NONE