|
Robot Planning and its Applications Project
|
RRTStar Class. More...
#include <rrtstar.h>

Public Member Functions | |
| RRTSTAR () | |
| Constructor. More... | |
| void | initialize () |
| Initialize root node of RRTSTAR. More... | |
| Node * | getRandomNode () |
| Generate a random node in the field. More... | |
| Node * | nearest (Vector2f point) |
| Get nearest node from a given configuration/position. More... | |
| void | near (Vector2f point, float radius, vector< Node * > &out_nodes) |
| Get neighborhood nodes of a given configuration/position. More... | |
| double | distance (Vector2f &p, Vector2f &q) |
| Helper method to find distance between two positions. More... | |
| double | Cost (Node *q) |
| Return trajectory cost. More... | |
| double | PathCost (Node *qFrom, Node *qTo) |
| Compute path cost. More... | |
| Vector3f | newConfig (Node *q, Node *qNearest) |
| Find a configuration at a distance step_size from nearest node to random node. More... | |
| void | add (Node *qNearest, Node *qNew) |
| Add a node to the tree. More... | |
| bool | reached () |
| Check if the last node is close to the end position. More... | |
| void | setStepSize (double step) |
| void | setMaxIterations (int iter) |
| void | deleteNodes (Node *root) |
| Delete all nodes using DFS technique. More... | |
| void | setStartPose (double x, double y, double theta) |
| Set the Start position of robot. More... | |
| void | setGoalPose (double x, double y) |
| Set the Destination position. More... | |
| void | setWorldInfo (double width, double height) |
| Set the World information. More... | |
| void | set_max_iter (int x) |
| void | set_step_size (double x) |
| void | set_bot_radius (double x) |
| void | set_goalBias (double x) |
| void | set_turn_radius (double x) |
| void | set_rrt_star_neighbour_factor (double x) |
| void | set_bot_follow_dubin (bool x) |
Public Attributes | |
| RRTObstacles * | obstacles |
| vector< Node * > | nodes |
| vector< Node * > | path |
| Node * | root |
| Node * | lastNode |
| Vector2f | startPos |
| Vector2f | endPos |
| double | start_orient |
| int | max_iter |
| double | step_size |
| double | world_width |
| double | world_height |
| double | bot_radius |
| double | goalBias |
| double | turn_radius |
| bool | bot_follow_dubin |
| double | rrt_star_neighbour_factor |
RRTStar Class.
| RRTSTAR::RRTSTAR | ( | ) |
Constructor.
| double RRTSTAR::Cost | ( | Node * | q | ) |
Return trajectory cost.
| q | cost of node be computed |
| void RRTSTAR::deleteNodes | ( | Node * | root | ) |
Delete all nodes using DFS technique.
| root | root node or the first node |
| double RRTSTAR::distance | ( | Vector2f & | p, |
| Vector2f & | q | ||
| ) |
| void RRTSTAR::initialize | ( | ) |
Initialize root node of RRTSTAR.
| void RRTSTAR::near | ( | Vector2f | point, |
| float | radius, | ||
| vector< Node * > & | out_nodes | ||
| ) |
Get neighborhood nodes of a given configuration/position.
| point | point in the world |
| radius | radius to check for neighbors |
| out_nodes | list of nodes in that radius |
| Node * RRTSTAR::nearest | ( | Vector2f | point | ) |
Get nearest node from a given configuration/position.
| point | given point in world |
Find a configuration at a distance step_size from nearest node to random node.
| q | given node |
| qNearest | nearest node in list |
| bool RRTSTAR::reached | ( | ) |
Check if the last node is close to the end position.
| void RRTSTAR::set_bot_follow_dubin | ( | bool | x | ) |
| void RRTSTAR::set_bot_radius | ( | double | x | ) |
| void RRTSTAR::set_goalBias | ( | double | x | ) |
| void RRTSTAR::set_max_iter | ( | int | x | ) |
| void RRTSTAR::set_rrt_star_neighbour_factor | ( | double | x | ) |
| void RRTSTAR::set_step_size | ( | double | x | ) |
| void RRTSTAR::set_turn_radius | ( | double | x | ) |
| void RRTSTAR::setGoalPose | ( | double | x, |
| double | y | ||
| ) |
Set the Destination position.
| x | |
| y |
| void RRTSTAR::setMaxIterations | ( | int | iter | ) |
| void RRTSTAR::setStartPose | ( | double | x, |
| double | y, | ||
| double | theta | ||
| ) |
Set the Start position of robot.
| x | |
| y | |
| theta |
| void RRTSTAR::setStepSize | ( | double | step | ) |
| void RRTSTAR::setWorldInfo | ( | double | width, |
| double | height | ||
| ) |
Set the World information.
| x | |
| y |
| bool RRTSTAR::bot_follow_dubin |
Robot turn radius
| double RRTSTAR::bot_radius |
World height
| Vector2f RRTSTAR::endPos |
Start pose
| double RRTSTAR::goalBias |
bot radius
| Node* RRTSTAR::lastNode |
root node (initial pose)
| int RRTSTAR::max_iter |
Start orientation
| vector<Node *> RRTSTAR::nodes |
obstacle information
| RRTObstacles* RRTSTAR::obstacles |
| vector<Node *> RRTSTAR::path |
List of nodes in explored database
| Node* RRTSTAR::root |
path with tracing the nodes
| double RRTSTAR::rrt_star_neighbour_factor |
| double RRTSTAR::start_orient |
end pose
| Vector2f RRTSTAR::startPos |
last Node of the rrt* exploration
| double RRTSTAR::step_size |
maximum iterations
| double RRTSTAR::turn_radius |
goal Bias
| double RRTSTAR::world_height |
World width
| double RRTSTAR::world_width |
Step size(distance between points)
1.8.11