trajectory_sim_grade.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Software License Agreement (BSD License) *
3  * Copyright (C) 2016 by Horatiu George Todoran <todorangrg@gmail.com> *
4  * *
5  * Redistribution and use in source and binary forms, with or without *
6  * modification, are permitted provided that the following conditions *
7  * are met: *
8  * *
9  * 1. Redistributions of source code must retain the above copyright *
10  * notice, this list of conditions and the following disclaimer. *
11  * 2. Redistributions in binary form must reproduce the above copyright *
12  * notice, this list of conditions and the following disclaimer in *
13  * the documentation and/or other materials provided with the *
14  * distribution. *
15  * 3. Neither the name of the copyright holder nor the names of its *
16  * contributors may be used to endorse or promote products derived *
17  * from this software without specific prior written permission. *
18  * *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS *
20  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT *
21  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS *
22  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE *
23  * COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, *
24  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, *
25  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; *
26  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER *
27  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT *
28  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY *
29  * WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE *
30  * POSSIBILITY OF SUCH DAMAGE. *
31  ***************************************************************************/
32 
33 #ifndef TRAJECTORY_SIM_GRADE_H
34 #define TRAJECTORY_SIM_GRADE_H
35 
38 
40 
41 #include <functional>
42 #include <memory>
43 
44 namespace tuw
45 {
46 class TrajectorySimGrade;
47 using TrajectorySimGradeSPtr = std::shared_ptr<TrajectorySimGrade>;
48 using TrajectorySimGradeConstSPtr = std::shared_ptr<TrajectorySimGrade const>;
49 using TrajectorySimGradeUPtr = std::unique_ptr<TrajectorySimGrade>;
50 using TrajectorySimGradeConstUPtr = std::unique_ptr<TrajectorySimGrade const>;
51 
53 {
54  // special class member functions
55 public:
56  TrajectorySimGrade(StateSimPtr& _stateSim);
57 
58 public:
59  TrajectorySimGrade(StateSimPtr& _stateSim, std::unique_ptr<TrajectorySimulator::CostsEvaluatorClass> _costsEvaluator);
60 
61 public:
62  ~TrajectorySimGrade() = default;
63 
64 public:
65  TrajectorySimGrade(const TrajectorySimGrade&) = default;
66 
67 public:
69 
70 public:
72 
73 public:
75 
76 public:
77  void initCostsEvaluator();
78 
79 public:
80  void evaluateTrajectory(const double& _arcBegin = 0);
81 
82 public:
83  void setSimMode(const TrajectorySimulator::SimMode& _simMode);
84 
85 public:
87 
88 public:
90 
91 private:
92  void modifyTrajSimMode();
93 
94 private:
96 
97 private:
99 
100 private:
102 
103 private:
104  std::vector<std::vector<double*> > userPartLattices_;
105 
106  // public : std::unique_ptr<CostsEvaluatorClass> costsEvaluator_;
107 };
108 }
109 
110 #endif // TRAJECTORY_SIM_GRADE_H
void setSimMode(const TrajectorySimulator::SimMode &_simMode)
void evaluateTrajectory(const double &_arcBegin=0)
TrajectorySimGrade & operator=(const TrajectorySimGrade &)=default
TrajectorySimGrade(StateSimPtr &_stateSim)
const TrajectorySimulator::SimMode & simMode() const
std::unique_ptr< TrajectorySimGrade > TrajectorySimGradeUPtr
TrajectorySimulatorSPtr & trajSim()
std::unique_ptr< TrajectorySimGrade const > TrajectorySimGradeConstUPtr
std::shared_ptr< TrajectorySimGrade > TrajectorySimGradeSPtr
SimMode
Mode of the simulation.
std::shared_ptr< TrajectorySimulator > TrajectorySimulatorSPtr
std::shared_ptr< TrajectorySimGrade const > TrajectorySimGradeConstSPtr
std::shared_ptr< StateSim > StateSimPtr
std::vector< std::vector< double * > > userPartLattices_
TrajectorySimulatorSPtr trajSim_
TrajectorySimulator::SimMode simMode_


tuw_control
Author(s): George Todoran
autogenerated on Mon Jun 10 2019 15:27:22