Fawkes API  Fawkes Development Version
fawkes::ColliFastObstacle Class Reference

This is an implementation of a a fast obstacle. More...

#include <>>

Inheritance diagram for fawkes::ColliFastObstacle:

Public Member Functions

const std::vector< int > get_obstacle ()
 Return the occupied cells with their values. More...
 
int get_key ()
 Get the key. More...
 
void set_key (int key)
 Set key. More...
 

Protected Attributes

std::vector< int > occupied_cells_
 Aligned array of the occ cells, size is dividable through 3, because: [i] = x coord, [i+1] = y coord, [i+2] = costs. More...
 

Detailed Description

This is an implementation of a a fast obstacle.

Definition at line 41 of file obstacle.h.

Member Function Documentation

◆ get_key()

int fawkes::ColliFastObstacle::get_key ( )
inline

Get the key.

Returns
The key

Definition at line 60 of file obstacle.h.

◆ get_obstacle()

const std::vector< int > fawkes::ColliFastObstacle::get_obstacle ( )
inline

Return the occupied cells with their values.

Returns
vector containing the occupied cells (alternating x and y coordinates)

Definition at line 52 of file obstacle.h.

References occupied_cells_.

Referenced by fawkes::ColliObstacleMap::get_obstacle().

◆ set_key()

void fawkes::ColliFastObstacle::set_key ( int  key)
inline

Set key.

Parameters
keythe new key

Definition at line 67 of file obstacle.h.

Referenced by fawkes::ColliObstacleMap::get_obstacle().

Member Data Documentation

◆ occupied_cells_

std::vector< int > fawkes::ColliFastObstacle::occupied_cells_
protected

Aligned array of the occ cells, size is dividable through 3, because: [i] = x coord, [i+1] = y coord, [i+2] = costs.

Definition at line 77 of file obstacle.h.

Referenced by fawkes::ColliFastEllipse::ColliFastEllipse(), fawkes::ColliFastRectangle::ColliFastRectangle(), and get_obstacle().


The documentation for this class was generated from the following file: