|
MIRA
|
Hybrid metric-topological planner for 2D costmaps. More...
#include <planner/MetricCostmapTopoMapPlanner.h>
Classes | |
| class | IEventListener |
| struct | NextSubGoal |
| struct | NodePosition |
| struct | PlannerContext |
Public Types | |
| typedef PlannerContext * | PlannerContextPtr |
| typedef std::list< NodePosition > | NodePositionList |
| typedef boost::function< void(mira::pilot::AbstractMetricPlannerPtr, bool)> | UpdateGoalFn |
Public Member Functions | |
| MetricCostmapTopoMapPlanner () | |
| template<typename Reflector > | |
| void | reflect (Reflector &r) |
| bool | isInFinalApproach () const |
| Returns true, if the robot is within the goal node and driving directly to the goal. More... | |
| bool | isActive () const |
| double | getValue (const Point2f &worldPos) const |
| double | getValueFiltered (const Point2f &worldPos) const |
| mira::pilot::AbstractMetricPlanner::Carrot | getCarrot (const Point2f &pos, int count, float length=1e10f) const |
| void | resetCostMaps () |
| Reset all cost maps to the inital values. More... | |
| void | setEventListener (IEventListener *listener) |
| PlannerContextPtr | getCurrentPlanner () |
| PlannerContextPtr | getNextPlanner () |
| mira::maps::GridMap< double > | getNavFunction (bool ignoreDoubleBuffer=false) |
| mira::maps::GridMap< uint8, 3 > | dumpNavStatus (bool actualMap=false, bool costsInGoalRegion=true) |
| void | initialize (TopoMapPtr map, Authority *authority) |
| initializes the planner with the given topo map More... | |
| void | setGoal (const NodePositionList &goalNodes, UpdateGoalFn updateGoalFn) |
| void | update (const maps::CostMap &map) |
| update the planning context with the current costmap (entire area) More... | |
| void | update (const maps::CostMap &map, const maps::DirtyRegions &dirty) |
| update the planning context with the current costmap (dirty regions only) More... | |
| bool | havePlan () const |
| Returns true if we have or have had a valid to the set goal. More... | |
| void | plan (const mira::maps::CostMap &curCostmap, const Point2f &robotPos, const NodePositionList &localizedNodes, Duration plantime) |
| void | clearGoal () |
| void | setAdditionalLinkCosts (const std::string &fromGWName, const std::string &toGWName, double costs) |
| void | resetAllAdditionalLinkCosts () |
| void | setDebugMarkerChannel (Channel< mira::model::Marker > c) |
| void | setDebugNextSubGoalChannel (Channel< NextSubGoal > c) |
Static Public Member Functions | |
| static void | printNextSubGoal (const NextSubGoal &nsg, const std::string &name) |
Friends | |
| struct | ResetCostMapsVisitor |
Hybrid metric-topological planner for 2D costmaps.
| typedef PlannerContext* PlannerContextPtr |
| typedef std::list<NodePosition> NodePositionList |
| typedef boost::function<void(mira::pilot::AbstractMetricPlannerPtr, bool)> UpdateGoalFn |
|
inline |
|
static |
|
inline |
Returns true, if the robot is within the goal node and driving directly to the goal.
| bool isActive | ( | ) | const |
| double getValue | ( | const Point2f & | worldPos | ) | const |
| double getValueFiltered | ( | const Point2f & | worldPos | ) | const |
| mira::pilot::AbstractMetricPlanner::Carrot getCarrot | ( | const Point2f & | pos, |
| int | count, | ||
| float | length = 1e10f |
||
| ) | const |
| void resetCostMaps | ( | ) |
Reset all cost maps to the inital values.
All cost maps, which were updated due to a replanning, will be discarded.
|
inline |
|
inline |
|
inline |
| mira::maps::GridMap<double> getNavFunction | ( | bool | ignoreDoubleBuffer = false | ) |
| mira::maps::GridMap<uint8,3> dumpNavStatus | ( | bool | actualMap = false, |
| bool | costsInGoalRegion = true |
||
| ) |
| void initialize | ( | TopoMapPtr | map, |
| Authority * | authority | ||
| ) |
initializes the planner with the given topo map
| void setGoal | ( | const NodePositionList & | goalNodes, |
| UpdateGoalFn | updateGoalFn | ||
| ) |
| void update | ( | const maps::CostMap & | map | ) |
update the planning context with the current costmap (entire area)
| void update | ( | const maps::CostMap & | map, |
| const maps::DirtyRegions & | dirty | ||
| ) |
update the planning context with the current costmap (dirty regions only)
| bool havePlan | ( | ) | const |
Returns true if we have or have had a valid to the set goal.
| void plan | ( | const mira::maps::CostMap & | curCostmap, |
| const Point2f & | robotPos, | ||
| const NodePositionList & | localizedNodes, | ||
| Duration | plantime | ||
| ) |
| void clearGoal | ( | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |
1.8.14