67 wwriter_ = funFactory->getSetPointRequestWriter();
85 if( spr->isActive(t) )
87 auto x_ref = spr->interpolateReference(t,
pvehicle_);
88 double dx =
x_.
getX()-x_ref.getX();
89 double dy =
x_.
getY()-x_ref.getY();
90 if(dx*dx+dy*dy<pTacticalPlanner_->getResetRadius())
92 x_replan.setX(x_ref.getX());
93 x_replan.setY(x_ref.getY());
94 x_replan.setPSI(x_ref.getPSI());
95 x_replan.setvx(x_ref.getvx());
96 x_replan.setvy(x_ref.getvy());
97 x_replan.setOmega(x_ref.getOmega());
98 x_replan.setAx(x_ref.getAx());
99 x_replan.setDelta(x_ref.getDelta());
104 if(reset)std::cout<<
"TestTrajectoryPlanner: Reset initial state.\n";
test implementation of a lane following trajectory planner
Definition: test_trajectory_planner.h:35
TPlanner * planner_
Definition: test_trajectory_planner.h:49
adore::params::APVehicle * pvehicle_
Definition: test_trajectory_planner.h:41
adore::fun::VehicleMotionState9d x_
Definition: test_trajectory_planner.h:48
adore::fun::DecoupledLFLCPlanner< 20, 5 >::TProgressSolver & getProgressSolver()
Definition: test_trajectory_planner.h:112
adore::mad::AWriter< adore::fun::SetPointRequest > * wwriter_
Definition: test_trajectory_planner.h:47
TestTrajectoryPlanner(adore::env::AFactory *envFactory, adore::fun::AFactory *funFactory, adore::params::AFactory *PARAMS_Factory)
Definition: test_trajectory_planner.h:51
const adore::fun::SetPointRequest * getSetPointRequest()
Definition: test_trajectory_planner.h:120
adore::env::BorderBased::LocalRoadMap roadmap_
Definition: test_trajectory_planner.h:43
void run()
update function of the trajectory planner
Definition: test_trajectory_planner.h:73
adore::env::traffic::TrafficMap trafficMap_
Definition: test_trajectory_planner.h:44
adore::params::AFactory * paramsFactory_
Definition: test_trajectory_planner.h:40
adore::params::APTacticalPlanner * pTacticalPlanner_
Definition: test_trajectory_planner.h:42
adore::env::BorderBased::LaneFollowingView lfv_
Definition: test_trajectory_planner.h:45
adore::fun::RoadCoordinateConverter & getRoadCoordinateConverter()
Definition: test_trajectory_planner.h:124
adore::fun::DecoupledLFLCPlanner< 20, 5 >::TOffsetSolver & getOffsetSolver()
Definition: test_trajectory_planner.h:116
bool hasValidPlan()
Definition: test_trajectory_planner.h:108
adore::mad::AReader< adore::fun::VehicleMotionState9d > * xreader_
Definition: test_trajectory_planner.h:46
adore::fun::BasicLaneFollowingPlanner< 20, 5 > TPlanner
Definition: test_trajectory_planner.h:37
adore::fun::AFactory * funFactory_
Definition: test_trajectory_planner.h:39
adore::env::AFactory * envFactory_
Definition: test_trajectory_planner.h:38
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
Definition: basiclanefollowingplanner.h:37
virtual const SetPointRequest * getSetPointRequest() const override
Definition: decoupled_lflc_planner.h:491
TProgressSolver & getProgressSolver()
Definition: decoupled_lflc_planner.h:335
virtual bool hasValidPlan() const override
Definition: decoupled_lflc_planner.h:484
TOffsetSolver & getOffsetSolver()
Definition: decoupled_lflc_planner.h:339
RoadCoordinateConverter & getRoadCoordinateConverter()
Definition: decoupled_lflc_planner.h:343
virtual void compute(const VehicleMotionState9d &initial_state) override
Definition: decoupled_lflc_planner.h:372
Definition: roadcoordinates.h:46
Definition: setpointrequest.h:35
virtual void getData(T &value)=0
virtual void write(const T &value)=0
Definition: lq_oc_single_shooting.h:61
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
virtual APLongitudinalPlanner * getLongitudinalPlanner() const =0
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
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