38#include "modules/common_msgs/drivers_msgs/can_card_parameter.pb.h"
39#include "modules/drivers/canbus/proto/sensor_canbus_conf.pb.h"
41#include "modules/common_msgs/sensor_msgs/ultrasonic_radar.pb.h"
42#include "modules/drivers/radar/ultrasonic_radar/proto/ultrasonic_radar_conf.pb.h"
51namespace ultrasonic_radar {
79 std::string
Name()
const;
86 const std::string& config_path,
96 Status OnError(
const std::string& error_msg);
97 void RegisterCanClients();
100 std::shared_ptr<CanClient> can_client_;
102 std::unique_ptr<UltrasonicRadarMessageManager> sensor_message_manager_;
104 int64_t last_timestamp_ = 0;
Defines the CanFrame struct and CanClient interface.
Defines the CanClientFactory class.
Defines CanReceiver class.
Defines SenderMessage class and CanSender class.
A general class to denote the return status of an API call.
Cyber has builtin time type Time.
CanClientFactory inherites apollo::common::util::Factory.
The class which defines the CAN client to send and receive message.
This class defines the message to send.
template of canbus-based sensor module main class (e.g., ultrasonic_radar).
apollo::common::Status Start()
module start function
apollo::common::Status Init(const std::string &config_path, const std::shared_ptr<::apollo::cyber::Writer< Ultrasonic > > &writer)
module initialization function
std::string Name() const
obtain module name
The class of MessageManager
The class of MonitorLogBuffer
The class of UltrasonicRadarMessageManager