108 const int N = longitudinal_plan.nc();
111 const std::string& name= planning_result.
name;
124 const int n_lon_b = longitudinal_lbx.nc();
127 const int nr_lon_b = longitudinal_lbx.nr();
128 double X_lon_b[n_lon_b];
129 double Y_lon_b[n_lon_b];
134 for (
int i = 0; i < n_lon_b; ++i)
139 figure_lon1_->
plot(name+
"/slb", X_lon_b, Y_lon_b, n_lon_b,
"LineColor=1,0,0");
141 for (
int i = 0; i < n_lon_b; ++i)
146 figure_lon1_->
plot(name+
"/sub", X_lon_b, Y_lon_b, n_lon_b,
"LineColor=1,0,0");
151 figure_lon2_->
plot(name+
"/dslb", X_lon_b, Y_lon_b, n_lon_b,
"LineColor=1,0,0");
153 figure_lon2_->
plot(name+
"/dsub", X_lon_b, Y_lon_b, n_lon_b,
"LineColor=1,0,0");
161 const int N = lateral_plan.nc();
164 const std::string& name= planning_result.
name;
171 const int n_lat_b = lateral_lbx.nc();
174 const int nr_lat_b = lateral_lbx.nr();
175 double X_lat_b[n_lat_b];
176 double Y_lat_b[n_lat_b];
181 for (
int i = 0; i < n_lat_b; ++i)
186 figure_lat1_->
plot(name+
"/nlb", X_lat_b, Y_lat_b, n_lat_b,
"LineColor=1,0,0");
188 for (
int i = 0; i < n_lat_b; ++i)
194 figure_lat1_->
plot(name+
"/nub", X_lat_b, Y_lat_b, n_lat_b,
"LineColor=1,0,0");
204 if(!
filter_.empty() &&
filter_.find(latest_planning_result.
name) == std::string::npos)
test bench implementation for minimum risk maneuver planner
Definition: plot_planning_details.h:30
bool plot_longitudinal_
Definition: plot_planning_details.h:32
void run()
Definition: plot_planning_details.h:198
adore::mad::AFeed< adore::fun::PlanningResult > * planning_result_feed_
Definition: plot_planning_details.h:44
~PlanningDetailsPlotter()
Definition: plot_planning_details.h:59
double n_upper_bound_clipped_
Definition: plot_planning_details.h:36
PlanningDetailsPlotter(std::string filter="")
Definition: plot_planning_details.h:47
DLR_TS::PlotLab::AFigureStub * figure_lon1_
Definition: plot_planning_details.h:40
double s_lower_bound_clipped_
Definition: plot_planning_details.h:35
DLR_TS::PlotLab::AFigureStub * figure_lon2_
Definition: plot_planning_details.h:41
DLR_TS::PlotLab::FigureStubFactory * fig_factory_
Definition: plot_planning_details.h:39
double n_lower_bound_clipped_
Definition: plot_planning_details.h:37
void initialize_plot()
Definition: plot_planning_details.h:64
void plot_lateral_planning_information(fun::PlanningResult &planning_result)
Definition: plot_planning_details.h:157
DLR_TS::PlotLab::AFigureStub * figure_lat1_
Definition: plot_planning_details.h:42
double s_upper_bound_clipped_
Definition: plot_planning_details.h:34
bool plot_lateral_
Definition: plot_planning_details.h:33
void plot_longitudinal_planning_information(fun::PlanningResult &planning_result)
Definition: plot_planning_details.h:104
DLR_TS::PlotLab::AFigureStub * figure_lat2_
Definition: plot_planning_details.h:43
std::string filter_
Definition: plot_planning_details.h:38
void terminate_plot()
Definition: plot_planning_details.h:96
static adore::fun::AFactory * get()
Definition: afactory.h:170
virtual void getNext(T &value)=0
virtual bool hasNext() const =0
adoreMatrix< T, n+1, 0 > & getData()
Definition: llinearpiecewisefunction.h:147
void copyRowToArray(const adoreMatrix< T, nr, nc > &m, T *target, int col)
Definition: adoremath.h:154
Definition: areaofeffectconverter.h:20
Definition: planning_result.h:29
adore::mad::LLinearPiecewiseFunctionM< double, 3 > nominal_maneuver_lateral_lbx
Definition: planning_result.h:56
adore::mad::LLinearPiecewiseFunctionM< double, 4 > nominal_maneuver_longitudinal_plan
Definition: planning_result.h:43
std::string name
Definition: planning_result.h:32
adore::mad::LLinearPiecewiseFunctionM< double, 4 > nominal_maneuver_lateral_plan
Definition: planning_result.h:54
adore::mad::LLinearPiecewiseFunctionM< double, 3 > nominal_maneuver_longitudinal_lbx
Definition: planning_result.h:46
adore::mad::LLinearPiecewiseFunctionM< double, 3 > nominal_maneuver_lateral_ubx
Definition: planning_result.h:59
bool nominal_maneuver_valid
Definition: planning_result.h:63
adore::mad::LLinearPiecewiseFunctionM< double, 3 > nominal_maneuver_longitudinal_ubx
Definition: planning_result.h:50