|
| | GridMaze ()=default |
| |
| | GridMaze (const GridMaze &environment) |
| |
| | GridMaze (unsigned int seed, unsigned int width, unsigned int height, double voxelSize=1.) |
| |
| | ~GridMaze () |
| |
| unsigned int | seed () const |
| |
| bool | empty () const |
| |
| double | voxelSize () const |
| |
| bool | occupied (unsigned int index) const |
| |
| bool | occupied (double x, double y) |
| |
| bool | occupiedCell (unsigned int xi, unsigned int yi) const |
| |
| double | distance (double x, double y) override |
| | Computes distances field if necessary, and returns the distance to the nearest obstacle. More...
|
| |
| double | distance (unsigned int index) |
| | Computes distances field if necessary, and returns the distance to the nearest obstacle. More...
|
| |
| double | distance (unsigned int xi, unsigned int yi) |
| | Computes distances field if necessary, and returns the distance to the nearest obstacle. More...
|
| |
| bool | saveSbplConfigFile (const std::string &filename) const |
| | Writes cfg file for planners based on sbpl. More...
|
| |
| void | mapData (unsigned char *data, double resolution=1.) |
| |
| std::string | mapString () const |
| |
| std::vector< double > | mapDistances () |
| |
| std::vector< Rectangle > | obstacles () const |
| |
| std::vector< Rectangle > | obstacles (double x1, double y1, double x2, double y2) const |
| |
| bool | collides (double x, double y) override |
| |
| bool | collides (const Polygon &polygon) override |
| |
| double | obstacleRatio () const |
| |
| std::string | generatorType () const |
| |
| unsigned int | cells () const |
| |
| unsigned int | voxels_x () const |
| |
| unsigned int | voxels_y () const |
| |
| std::string | name () const override |
| |
| std::string & | name () |
| |
| void | computeDistances () |
| | Brute-force, quadratic in the number of cells, algorithm to compute the distance field, i.e. More...
|
| |
| void | to_json (nlohmann::json &j) override |
| |
| | Environment () |
| |
| virtual | ~Environment ()=default |
| |
| void | setStart (const Point &point) |
| |
| const Point & | start () const |
| |
| void | setGoal (const Point &point) |
| |
| const Point & | goal () const |
| |
| virtual bool | collides (double x, double y) |
| |
| virtual bool | collides (const Polygon &polygon) |
| |
| bool | collides (const Point &p) |
| |
| bool | collides (const ompl::geometric::PathGeometric &trajectory) |
| |
| bool | collides (const ob::State *state) |
| |
| bool | checkValidity (const ob::State *state) |
| | Used by planners to determine if the state is valid or not. More...
|
| |
| const ob::RealVectorBounds & | bounds () const |
| |
| double | width () const |
| |
| double | height () const |
| |
| virtual double | distance (double x, double y) |
| | Compute distance from xy-coordinate to the closest obstacle if possible. More...
|
| |
| double | distance (const ob::State *state) |
| | Compute distance of a state to the closest obstacle if possible. More...
|
| |
| double | bilinearDistance (double x, double y, double cellSize=1) |
| | Bilinear filtering of distance. More...
|
| |
| double | bilinearDistance (const Point &point, double cellSize=1) |
| |
| double | bilinearDistance (const ob::State *state, double cellSize=1) |
| |
| bool | distanceGradient (double x, double y, double &dx, double &dy, double p=0.1, double cellSize=1) |
| | Computes negative gradient of distance field at position x, y. More...
|
| |
| virtual std::string | name () const |
| |
| void | estimateStartGoalOrientations () |
| | Estimates potentially suitable theta values for the start and goal state by running a simple line search from start to goal. More...
|
| |
| bool | thetasDefined () const |
| |
| void | setThetas (double start, double goal) |
| |
| ompl::base::State * | startState () const |
| |
| ompl::base::State * | goalState () const |
| |
| ompl::base::ScopedState< ob::SE2StateSpace > | startScopedState () const |
| |
| ompl::base::ScopedState< ob::SE2StateSpace > | goalScopedState () const |
| |
| ob::RealVectorBounds | getBounds () const |
| |
| double | startTheta () const |
| |
| double | goalTheta () const |
| |
| virtual void | to_json (nlohmann::json &j) |
| |
| virtual double | unit () const |
| | Unit, e.g. More...
|
| |
| void | resetCollisionTimer () |
| |
| double | elapsedCollisionTime () const |
| |
|
| static std::shared_ptr< GridMaze > | createRandom (unsigned int width=DefaultWidth, unsigned int height=DefaultHeight, double obsRatio=0.3, unsigned int seed=(unsigned int) time(nullptr), int borderSize=1) |
| |
| static std::shared_ptr< GridMaze > | createRandomCorridor (unsigned int width=DefaultWidth, unsigned int height=DefaultHeight, double radius=2, int branches=30, unsigned int seed=(unsigned int) time(nullptr), int borderSize=1) |
| |
| static std::shared_ptr< GridMaze > | createFromObstacles (const std::vector< Rectangle > &obstacles, unsigned int width=DefaultWidth, unsigned int height=DefaultHeight, int borderSize=1) |
| |
| static std::shared_ptr< GridMaze > | createSimple () |
| |
| static std::shared_ptr< GridMaze > | createFromMovingAiScenario (Scenario &scenario) |
| |
| static std::shared_ptr< GridMaze > | createFromImage (const std::string &filename, double occupancy_threshold=0.5, int width=0, int height=0) |
| | Creates a map from a grayscale image where tones below the occupancy threshold are considered obstacles. More...
|
| |