103 wwriter_ = funFactory->getSetPointRequestWriter();
138 if( spr->isActive(t) )
140 auto x_ref = spr->interpolateReference(t,
pvehicle_);
141 double dx =
x_.
getX()-x_ref.getX();
142 double dy =
x_.
getY()-x_ref.getY();
143 if(dx*dx+dy*dy<pTacticalPlanner_->getResetRadius())
145 x_replan.setX(x_ref.getX());
146 x_replan.setY(x_ref.getY());
147 x_replan.setPSI(x_ref.getPSI());
148 x_replan.setvx(x_ref.getvx());
149 x_replan.setvy(x_ref.getvy());
150 x_replan.setOmega(x_ref.getOmega());
151 x_replan.setAx(x_ref.getAx());
152 x_replan.setDelta(x_ref.getDelta());
157 if(reset)std::cout<<
"TestTrajectoryPlanner: Reset initial state.\n";
167 static const int N = 20*5+1;
test bench implementation for minimum risk maneuver planner
Definition: test_mrm_planner.h:36
void plot()
Definition: test_mrm_planner.h:165
adore::fun::VehicleMotionState9d x_
Definition: test_mrm_planner.h:50
adore::fun::LateralOffsetConstraintLF * lateralOffsetConstraintLFUB_
Definition: test_mrm_planner.h:56
adore::mad::AReader< adore::fun::VehicleMotionState9d > * xreader_
Definition: test_mrm_planner.h:48
adore::params::APTacticalPlanner * pTacticalPlanner_
Definition: test_mrm_planner.h:43
adore::fun::LateralJerkReference * lateralJerkReference_
Definition: test_mrm_planner.h:55
adore::env::BorderBased::LaneFollowingView lfv_
Definition: test_mrm_planner.h:47
adore::mad::AWriter< adore::fun::SetPointRequest > * wwriter_
Definition: test_mrm_planner.h:49
adore::env::traffic::TrafficMap trafficMap_
Definition: test_mrm_planner.h:46
DLR_TS::PlotLab::AFigureStub * figure_lat2
Definition: test_mrm_planner.h:67
adore::env::BorderBased::LocalRoadMap roadmap_
Definition: test_mrm_planner.h:45
TestMRMPlanner(adore::env::AFactory *envFactory, adore::fun::AFactory *funFactory, adore::params::AFactory *PARAMS_Factory)
Definition: test_mrm_planner.h:69
adore::params::APLateralPlanner * plat_
Definition: test_mrm_planner.h:44
adore::fun::AFactory * funFactory_
Definition: test_mrm_planner.h:40
adore::fun::FollowPrecedingVehicle * followVehicleConstraint_
Definition: test_mrm_planner.h:61
DLR_TS::PlotLab::AFigureStub * figure_lon1
Definition: test_mrm_planner.h:64
adore::fun::MRMPlanner< 20, 5 > TPlanner
Definition: test_mrm_planner.h:38
void run()
update function of the trajectory planner
Definition: test_mrm_planner.h:126
void init_plot()
Definition: test_mrm_planner.h:183
~TestMRMPlanner()
Definition: test_mrm_planner.h:107
adore::fun::LateralOffsetConstraintLF * lateralOffsetConstraintLFLB_
Definition: test_mrm_planner.h:57
TPlanner * planner_
Definition: test_mrm_planner.h:51
adore::env::AFactory * envFactory_
Definition: test_mrm_planner.h:39
DLR_TS::PlotLab::AFigureStub * figure_lon2
Definition: test_mrm_planner.h:65
adore::fun::HeadingConstraint * headingConstraintUB_
Definition: test_mrm_planner.h:58
adore::fun::HeadingConstraint * headingConstraintLB_
Definition: test_mrm_planner.h:59
adore::params::APVehicle * pvehicle_
Definition: test_mrm_planner.h:42
DLR_TS::PlotLab::AFigureStub * figure_lat1
Definition: test_mrm_planner.h:66
DLR_TS::PlotLab::FigureStubFactory * fig_factory
Definition: test_mrm_planner.h:63
adore::fun::FollowCenterlineReference * followCenterlineReference_
Definition: test_mrm_planner.h:53
adore::fun::LateralAccelerationReference * lateralAccelerationReference_
Definition: test_mrm_planner.h:54
adore::params::AFactory * paramsFactory_
Definition: test_mrm_planner.h:41
abstract factory for adore::env communication
Definition: afactory.h:41
virtual TVehicleMotionStateReader * getVehicleMotionStateReader()=0
LaneFollowingview provides traffic related information for the current lane.
Definition: lanefollowingview.h:42
void update()
update the LaneFollowingView
Definition: lanefollowingview.h:87
Definition: localroadmap.h:38
void update(bool matched_lane_proposal_valid=false, BorderID matched_lane_proposal_id=BorderID())
update the local road map
Definition: localroadmap.h:256
Definition: trafficmap.h:36
void update()
Update the TrafficMap.
Definition: trafficmap.h:126
@ LB
Definition: anominalplanner.h:56
@ UB
Definition: anominalplanner.h:56
Definition: basicconstraintsandreferences.h:650
Definition: basicconstraintsandreferences.h:858
Definition: basicconstraintsandreferences.h:409
Definition: basicconstraintsandreferences.h:547
Definition: basicconstraintsandreferences.h:575
Definition: basicconstraintsandreferences.h:700
Definition: mrmplanner.h:32
virtual const SetPointRequest * getSetPointRequest() const
Definition: mrmplanner.h:273
TPostProcessConstraints::TInformationSet & getInformationSet()
Definition: mrmplanner.h:78
virtual void compute(const VehicleMotionState9d &initial_state)
Definition: mrmplanner.h:175
LateralPlanner< K, P > & getOffsetSolver()
Definition: mrmplanner.h:259
TPartialPlan & getLateralPlan()
Definition: mrmplanner.h:252
virtual bool hasValidPlan() const
Definition: mrmplanner.h:266
TPartialPlan & getLongitudinalPlan()
Definition: mrmplanner.h:248
virtual void getData(T &value)=0
virtual void write(const T &value)=0
adoreMatrix< T, n+1, 0 > & getData()
Definition: llinearpiecewisefunction.h:147
abstract factory for adore::params classes
Definition: afactory.h:54
virtual APLateralPlanner * getLateralPlanner() const =0
virtual APTacticalPlanner * getTacticalPlanner() const =0
virtual APTrajectoryGeneration * getTrajectoryGeneration() const =0
virtual APVehicle * getVehicle() const =0
abstract class containing parameters related to configuring the lateral planner
Definition: ap_lateral_planner.h:26
abstract classs containing parameters to configure aspects and constraints of the tactical planner
Definition: ap_tactical_planner.h:25
abstract class for vehicle configuration related paremeters
Definition: ap_vehicle.h:29
void copyRowToArray(const adoreMatrix< T, nr, nc > &m, T *target, int col)
Definition: adoremath.h:154
Definition: areaofeffectconverter.h:20
This struct holds the motion state of the vehicle in 9d.
Definition: vehiclemotionstate9d.h:39
double getX() const
Get the x-coordinate.
Definition: vehiclemotionstate9d.h:54
double getY() const
Get the y-coordinate.
Definition: vehiclemotionstate9d.h:60
double getTime() const
Get the time.
Definition: vehiclemotionstate9d.h:48