igvcsearchproblem.h
Go to the documentation of this file.
1 #ifndef IGVCSEARCHPROBLEM_H
2 #define IGVCSEARCHPROBLEM_H
3 
4 #include "searchlocation.h"
5 #include "searchmove.h"
6 #include "GraphSearch.hpp"
7 #include <vector>
8 #include <pcl/kdtree/kdtree_flann.h>
9 
10 class IGVCSearchProblem : public SearchProblem<SearchLocation, SearchMove>
11 {
12 public:
13 
14  pcl::PointCloud<pcl::PointXYZ>::Ptr Map;
17  double Threshold;
18  double Speed;
19  double TurningSpeed;
20  double DeltaT;
21  double Baseline;
22  double GoalThreshold;
24 
26  {
27  return Start;
28  }
29  std::list<SearchMove> getActions(SearchLocation state);
30 
32 
34  {
35  return state.distTo(Goal) < GoalThreshold;
36  }
37 
39  {
40  double R = abs(action.V) / abs(action.W);
41  double theta = abs(action.W) * DeltaT;
42  return R*theta;
43  }
44 
46  {
47  return state.distTo(Goal);
48  }
49 };
50 
51 #endif // IGVCSEARCHPROBLEM_H
pcl::PointCloud< pcl::PointXYZ >::Ptr Map
float distTo(SearchLocation other)
double V
Definition: searchmove.h:9
bool isGoal(SearchLocation state)
SearchLocation Goal
std::list< SearchMove > getActions(SearchLocation state)
SearchLocation Start
SearchLocation getResult(SearchLocation state, SearchMove action)
double getStepCost(SearchLocation, SearchMove action)
double getHeuristicCost(SearchLocation state)
igvc_msgs::lights state
SearchLocation getStartState()
double W
Definition: searchmove.h:9


igvc
Author(s): Matthew Barulic , Al Chaussee
autogenerated on Sun May 10 2015 16:18:45