33 #include "modules/canbus/proto/chassis_detail.pb.h" 34 #include "modules/drivers/canbus/proto/can_card_parameter.pb.h" 35 #include "modules/guardian/proto/guardian.pb.h" 40 #include "modules/control/proto/control_cmd.pb.h" 66 std::string
Name()
const;
83 void Clear()
override;
85 void PublishChassis();
86 void PublishChassisDetail();
87 void OnControlCommand(
const apollo::control::ControlCommand &control_command);
88 void OnGuardianCommand(
89 const apollo::guardian::GuardianCommand &guardian_command);
91 void RegisterCanClients();
93 CanbusConf canbus_conf_;
94 std::shared_ptr<cyber::Reader<apollo::guardian::GuardianCommand>>
96 std::shared_ptr<cyber::Reader<apollo::control::ControlCommand>>
97 control_command_reader_;
98 std::unique_ptr<apollo::drivers::canbus::CanClient> can_client_;
99 CanSender<ChassisDetail> can_sender_;
101 std::unique_ptr<MessageManager<ChassisDetail>> message_manager_;
102 std::unique_ptr<VehicleController> vehicle_controller_;
103 int64_t last_timestamp_ = 0;
105 std::shared_ptr<cyber::Writer<Chassis>> chassis_writer_;
106 std::shared_ptr<cyber::Writer<ChassisDetail>> chassis_detail_writer_;
TimerComponent is a timer component. Your component can inherit from Component, and implement Init() ...
Definition: timer_component.h:35
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Defines the CanFrame struct and CanClient interface.
The class of MessageManager.
Defines SenderMessage class and CanSender class.
The class of VehicleController.
Definition: canbus_component.h:59
Defines CanReceiver class.
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
#define CYBER_REGISTER_COMPONENT(name)
Definition: component.h:551
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60
std::string Name() const
obtain module name