libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
SimpleReplanner.hpp
1 /*
2  * SimpleReplanner.hpp
3  * libmove3D-planners
4  *
5  * Created by Benjamin Vadant on 01/02/13.
6  * Based on Jim Mainprice replanningAlgorithms.hpp/cpp
7  * Copyright 2013 LAAS/CNRS. All rights reserved.
8  *
9  */
10 
11 #ifndef SIMPLE_REPLANNER_HPP
12 #define SIMPLE_REPLANNER_HPP
13 
14 #include "Replanner.hpp"
15 #include "API/Trajectory/trajectory.hpp"
16 #include "API/ConfigSpace/configuration.hpp"
17 #include "API/Roadmap/graph.hpp"
18 
19 #include "HRI_costspace/HRICS_Navigation.hpp"
20 
21 #include "utils/ConfGenerator.h"
22 
23 #include "P3d-pkg.h"
24 #include "LightPlanner-pkg.h"
25 
26 #include <string>
27 
28 class SimpleReplanner : public Replanner
29 {
30 public:
32  ~SimpleReplanner();
33 
34  bool init();
35  void run();
36 
37 protected:
38  void setActiveJoints(int set);
39  void initActiveJoints();
40  void initForNavigation();
41  void initForManipulation();
42  void initForMobileManipulation();
44 
45  enum ReplanningType
46  {
47  NAVIGATION = 0,
48  MANIPULATION = 1,
49  MOBILE_MANIP = 2
50  }
51  replanningType;
52 };
53 
54 #endif
This class holds a the robot represented by a kinematic chain.
Definition: robot.hpp:42
bool initCreateStraightline()
Creates a straight line trajectory uses the main robot of the simulator or uses the current robot if ...
Definition: SimpleReplanner.cpp:95
void initForNavigation()
Set the DoFs active/passive of the robot for navigation.
Definition: SimpleReplanner.cpp:130
Definition: SimpleReplanner.hpp:28
Base replanner.
Definition: Replanner.hpp:33
bool init()
Before simple (no softmotion) replanning execution, this function initializes the replanner data...
Definition: SimpleReplanner.cpp:49
void setActiveJoints(int set)
Choose what part of the robot are active in the planning phase Three type of planning to chose from N...
Definition: SimpleReplanner.cpp:189