-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathYourPlanner.cpp
47 lines (39 loc) · 879 Bytes
/
YourPlanner.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#include "YourPlanner.h"
#include <rl/plan/SimpleModel.h>
YourPlanner::YourPlanner() :
RrtConConBase()
{
}
YourPlanner::~YourPlanner()
{
}
::std::string
YourPlanner::getName() const
{
return "Your Planner";
}
void
YourPlanner::choose(::rl::math::Vector& chosen)
{
this->model->getDof();
//your modifications here
RrtConConBase::choose(chosen);
}
RrtConConBase::Vertex
YourPlanner::connect(Tree& tree, const Neighbor& nearest, const ::rl::math::Vector& chosen)
{
//your modifications here
return RrtConConBase::connect(tree, nearest, chosen);
}
RrtConConBase::Vertex
YourPlanner::extend(Tree& tree, const Neighbor& nearest, const ::rl::math::Vector& chosen)
{
//your modifications here
return RrtConConBase::extend(tree, nearest, chosen);
}
bool
YourPlanner::solve()
{
//your modifications here
return RrtConConBase::solve();
}