27#include "modules/common_msgs/config_msgs/vehicle_config.pb.h"
28#include "modules/common_msgs/control_msgs/control_cmd.pb.h"
29#include "modules/common_msgs/localization_msgs/localization.pb.h"
30#include "modules/common_msgs/planning_msgs/planning.pb.h"
31#include "modules/control/control_component/proto/control_debug.pb.h"
72 std::string
Name()
const;
86 bool CheckInPit(
double pit_replan_check_time,
double pit_replan_check_count,
double vehicle_speed,
bool replan);
87 bool IsLargeCurvature(
const double ref_curvature,
const double min_large_ref_curvature,
bool *is_in_large_curvature);
90 std::shared_ptr<DependencyInjector> injector,
91 const bool &use_filter,
92 const double &filter_coeff);
93 double ThrottleCmdFilter(
const bool &use_filter,
const double &filter_coeff,
const double &throttle);
99 const std::string name_;
101 double vehicle_speed_last_ = 0.0;
102 double throttle_last_ = 0.0;
108 std::string class_name = abi::__cxa_demangle(
typeid(*this).name(), 0, 0, &status);
109 AINFO <<
"class_name is " << class_name;
111 std::string pipeline_config_path
113 class_name,
"conf/params_pipeline.pb.txt");
114 AINFO <<
"pipeline_config_path is " << pipeline_config_path;
117 AERROR <<
"Load config of " << class_name <<
" failed!";
120 AINFO <<
"Load the [" << class_name <<
"] params pipeline file successfully, file path: " << pipeline_config_path;
ControlTaskExtend()
constructor
bool IsLargeCurvature(const double ref_curvature, const double min_large_ref_curvature, bool *is_in_large_curvature)
double ThrottleCmdFilter(const bool &use_filter, const double &filter_coeff, const double &throttle)
virtual ~ControlTaskExtend()
destructor
bool VehicleStatusIdentificationUpdate(const localization::LocalizationEstimate *localization, const canbus::Chassis *chassis, const planning::ADCTrajectory *trajectory)
bool IsLeftCurvature(const double ref_curvature)
bool LoadParamsPipelineConfig(T *pipeline_config)
std::string Name() const
reset ControlTaskAgent
bool LoadCalibrationTable(const std::string &calibration_table_path, calibration_table *calibration_table_conf)
bool CheckInPit(double pit_replan_check_time, double pit_replan_check_count, double vehicle_speed, bool replan)
double GetVehicleSpeed(std::shared_ptr< DependencyInjector > injector, const bool &use_filter, const double &filter_coeff)
std::string GetPluginConfPath(const std::string &class_name, const std::string &conf_name)
get plugin configuration file location
static PluginManager * Instance()
get singleton instance of PluginManager
Defines the Controller base class.
bool GetProtoFromFile(const std::string &file_name, google::protobuf::Message *message)
Parses the content of the file specified by the file_name as a representation of protobufs,...