26 #include "modules/canbus/proto/chassis.pb.h" 28 #include "modules/control/proto/control_cmd.pb.h" 29 #include "modules/control/proto/control_conf.pb.h" 30 #include "modules/control/proto/pad_msg.pb.h" 31 #include "modules/localization/proto/localization.pb.h" 32 #include "modules/planning/proto/planning.pb.h" 37 #include "modules/control/proto/preprocessor.pb.h" 64 void OnPad(
const std::shared_ptr<PadMessage> &pad);
66 void OnChassis(
const std::shared_ptr<apollo::canbus::Chassis> &chassis);
69 const std::shared_ptr<apollo::planning::ADCTrajectory> &trajectory);
72 const std::shared_ptr<apollo::localization::LocalizationEstimate>
77 const apollo::common::monitor::MonitorMessage &monitor_message);
79 common::Status ProduceControlCommand(ControlCommand *control_command);
87 localization::LocalizationEstimate latest_localization_;
88 canbus::Chassis latest_chassis_;
89 planning::ADCTrajectory latest_trajectory_;
91 common::Header latest_replan_trajectory_header_;
96 std::string estop_reason_;
97 bool pad_received_ =
false;
99 unsigned int status_lost_ = 0;
100 unsigned int status_sanity_check_failed_ = 0;
101 unsigned int total_status_lost_ = 0;
102 unsigned int total_status_sanity_check_failed_ = 0;
104 ControlConf control_conf_;
108 std::shared_ptr<cyber::Reader<apollo::canbus::Chassis>> chassis_reader_;
109 std::shared_ptr<cyber::Reader<PadMessage>> pad_msg_reader_;
110 std::shared_ptr<cyber::Reader<apollo::localization::LocalizationEstimate>>
111 localization_reader_;
112 std::shared_ptr<cyber::Reader<apollo::planning::ADCTrajectory>>
115 std::shared_ptr<cyber::Writer<ControlCommand>> control_cmd_writer_;
117 std::shared_ptr<cyber::Writer<LocalView>> local_view_writer_;
121 LocalView local_view_;
123 std::shared_ptr<DependencyInjector> injector_;
TimerComponent is a timer component. Your component can inherit from Component, and implement Init() ...
Definition: timer_component.h:35
Defines the ControllerAgent class.
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Proc() override
The Proc logic of the component, which called by the CyberRT frame.
LocalView contains all necessary data as planning input.
CYBER_REGISTER_COMPONENT(PreprocessorSubmodule)
Definition: control_component.h:53
Definition: control_test_base.h:48
manage all controllers declared in control config file.
Definition: controller_agent.h:46
The class of MonitorLogBuffer.
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60
Cyber has builtin time type Time.
Definition: time.h:31