39 #include "modules/drivers/canbus/proto/can_card_parameter.pb.h" 40 #include "modules/drivers/canbus/proto/sensor_canbus_conf.pb.h" 42 #include "modules/drivers/proto/racobit_radar.pb.h" 52 namespace racobit_radar {
61 using apollo::common::ErrorCode;
63 using apollo::common::monitor::MonitorMessageItem;
69 using apollo::drivers::canbus::SensorCanbusConf;
85 void RegisterCanClients();
86 apollo::common::ErrorCode ConfigureRadar();
87 Status OnError(
const std::string &error_msg);
88 std::shared_ptr<CanClient> can_client_;
90 std::unique_ptr<RacobitRadarMessageManager> sensor_message_manager_;
92 int64_t last_timestamp_ = 0;
94 bool start_success_ =
false;
96 RacobitRadarConf racobit_radar_conf_;
97 std::shared_ptr<cyber::Writer<RacobitRadar>> racobit_radar_writer_;
::apollo::cyber::Time Time
Definition: racobit_radar_message_manager.h:41
Definition: racobit_radar_canbus_component.h:71
CanClientFactory inherites apollo::common::util::Factory.
Definition: can_client_factory.h:44
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 which defines the CAN client to send and receive message.
Definition: can_client.h:92
RacobitRadarCanbusComponent()
The class of MessageManager.
Defines SenderMessage class and CanSender class.
~RacobitRadarCanbusComponent()
Defines CanReceiver class.
The class of MonitorLogBuffer.
This class defines the message to send.
Definition: can_sender.h:55
The class of RacobitRadarMessageManager.
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
Defines the CanClientFactory class.
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60
bool Init() override
module initialization function
CAN receiver.
Definition: can_receiver.h:55
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58