56 adore::params::ParamsFactoryInstance::get()->getTrajectoryTracking())
93 std::cout<<
"dt="<<
dt_<<std::endl;
104 const double t_activation_delay = 0.5;
107 std::cout<<t_active<<
", ";
166 std::cout<<
" No SetPointRequest available!\n";
188 const double v_full_ddelta = 5;
189 const double ddelta_min_rel = 0.001;
191 const double t_full_ddelta = 10;
192 const double ddelta_max_transition = ddelta_max_default *
adore::mad::bound(ddelta_min_rel,t_active/t_full_ddelta,1.0);
193 const double ddelta_max =
std::min(ddelta_max_v,ddelta_max_transition);
196 std::cout<<
dt_<<
", "<<ddelta_max_default<<
", "<<ddelta_max<<
", "<<ddelta_max_transition<<
", "<<ddelta_max_v<<std::endl;
bool automatic_control
Definition: adore_vehiclemodel_node.cpp:75
Definition: feedbackcontroller.h:29
double last_t_
Definition: feedbackcontroller.h:40
std::list< double > dt_list_
Definition: feedbackcontroller.h:44
adore::fun::VehicleMotionState9d state_
Definition: feedbackcontroller.h:49
int dt_list_max_size_
Definition: feedbackcontroller.h:45
virtual ~FeedbackController()
Definition: feedbackcontroller.h:72
adore::fun::VehicleExtendedState x_state_
Definition: feedbackcontroller.h:34
adore::fun::SetPointRequest spr_
Definition: feedbackcontroller.h:33
void run()
Definition: feedbackcontroller.h:79
adore::fun::MotionCommand cmd_
Definition: feedbackcontroller.h:35
adore::mad::AReader< adore::fun::VehicleExtendedState > * x_state_reader_
Definition: feedbackcontroller.h:32
FeedbackController()
Definition: feedbackcontroller.h:54
adore::params::APVehicle * ap_vehicle_
Definition: feedbackcontroller.h:36
double last_t_manual_control_
Definition: feedbackcontroller.h:42
adore::mad::AReader< adore::fun::VehicleMotionState9d > * state_reader_
Definition: feedbackcontroller.h:48
double dt_
Definition: feedbackcontroller.h:43
double last_ddelta_
Definition: feedbackcontroller.h:41
double last_steering_angle_
Definition: feedbackcontroller.h:39
adore::mad::AWriter< adore::fun::MotionCommand > * cmd_writer_
Definition: feedbackcontroller.h:50
adore::params::APEmergencyOperation * ap_emergency_
Definition: feedbackcontroller.h:38
adore::params::APTrajectoryTracking * ap_tracking_
Definition: feedbackcontroller.h:37
adore::mad::AReader< adore::fun::SetPointRequest > * spr_reader_
Definition: feedbackcontroller.h:47
adore::fun::LinearTrackingController linear_tracking_controller_
Definition: feedbackcontroller.h:31
static adore::fun::AFactory * get()
Definition: afactory.h:170
Definition: linear_tracking_controller.h:39
void compute_control_input(const VehicleMotionState9d &x, const PlanarVehicleState10d &xref, MotionCommand &u)
Definition: linear_tracking_controller.h:78
void setUseIntegrator(bool value)
Definition: linear_tracking_controller.h:68
void resetIntegrator(bool value)
Definition: linear_tracking_controller.h:70
Definition: motioncommand.h:26
void setAcceleration(double acceleration)
Definition: motioncommand.h:51
double getSteeringAngle() const
Definition: motioncommand.h:37
double getAcceleration() const
Definition: motioncommand.h:47
void setSteeringAngle(double steeringAngle)
Definition: motioncommand.h:41
Definition: setpointrequest.h:35
PlanarVehicleState10d interpolateReference(double t, adore::params::APVehicle *p) const
Definition: setpointrequest.h:112
bool isActive(double t) const
Definition: setpointrequest.h:332
std::vector< SetPoint > setPoints
Definition: setpointrequest.h:38
Definition: vehicleextendedstate.h:26
@ Drive
Definition: vehicleextendedstate.h:30
@ Reverse
Definition: vehicleextendedstate.h:30
bool getAutomaticControlOn() const
Definition: vehicleextendedstate.h:98
GearState getGearState() const
Definition: vehicleextendedstate.h:51
virtual void getData(T &value)=0
virtual bool hasData() const =0
virtual void write(const T &value)=0
virtual APTrajectoryTracking * getTrajectoryTracking() const =0
virtual APVehicle * getVehicle() const =0
virtual APEmergencyOperation * getEmergencyOperation() const =0
abstract class containing parameters concerning emergency operation behaviour
Definition: ap_emergency_operation.h:25
virtual double getamin() const =0
abstract class containing parameters to configure the behaviour of the trajactory tracking controller
Definition: ap_trajectory_tracking.h:26
virtual double getDDeltaMax() const =0
steering angle: maximum absolute control input change per control update. Maximum steering rate then ...
abstract class for vehicle configuration related paremeters
Definition: ap_vehicle.h:29
virtual double get_steeringRatio() const =0
static adore::params::AFactory * get()
Definition: afactory.h:103
T bound(T lb, T value, T ub)
Definition: adoremath.h:569
T min(T a, T b, T c, T d)
Definition: adoremath.h:663
adoreMatrix< T, N, M > max(adoreMatrix< T, N, M > a, const adoreMatrix< T, N, M > &b)
Definition: adoremath.h:686
Definition: areaofeffectconverter.h:20
This struct holds the motion state of the vehicle in 9d.
Definition: vehiclemotionstate9d.h:39
double getvx() const
Get the longitudinal velocity.
Definition: vehiclemotionstate9d.h:78
double getDelta() const
Get the steering angle.
Definition: vehiclemotionstate9d.h:102
double getTime() const
Get the time.
Definition: vehiclemotionstate9d.h:48