19 #include <netinet/in.h> 20 #include <sys/socket.h> 28 #include "modules/bridge/proto/udp_bridge_remote_info.pb.h" 29 #include "modules/planning/proto/planning.pb.h" 44 #define BRIDGE_COMPONENT_REGISTER(pb_msg) \ 45 CYBER_REGISTER_COMPONENT(UDPBridgeSenderComponent<pb_msg>) 51 : monitor_logger_buffer_(common::monitor::MonitorMessageItem::CONTROL) {}
54 bool Proc(
const std::shared_ptr<T> &pb_msg)
override;
56 std::string
Name()
const {
return FLAGS_bridge_module_name; }
60 unsigned int remote_port_ = 0;
61 std::string remote_ip_ =
"";
62 std::string proto_name_ =
"";
UDPBridgeSenderComponent()
Definition: udp_bridge_sender_component.h:50
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Proc(const std::shared_ptr< T > &pb_msg) override
std::string Name() const
Definition: udp_bridge_sender_component.h:56
The class of MonitorLogBuffer.
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60
#define BRIDGE_COMPONENT_REGISTER(pb_msg)
Definition: udp_bridge_sender_component.h:44
Definition: udp_bridge_sender_component.h:48
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58