Class to check if new random state is valid or not.
More...
#include <ompl_planning.hpp>
Class to check if new random state is valid or not.
| ValidityChecker::ValidityChecker |
( |
const ob::SpaceInformationPtr & |
si, |
|
|
std::vector< Polygon > |
obstacle_list |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
| obstacle_list | Obstacle list that is obtained from map |
| bool ValidityChecker::isValid |
( |
const ob::State * |
state | ) |
const |
|
inlineoverride |
to check if state is valid of not
Check if new obatined state is inside the obstacle polygon, convert new state to boost point and also polygon to boost polygon and use boost::within() method to check the validity of state
- Parameters
-
| state | new state that is generated randomly by RRT Star algorithm |
- Returns
- true/false based on the validity of state
| std::vector<Polygon> ValidityChecker::obstacles |
The documentation for this class was generated from the following file: