18 #include <netinet/in.h> 19 #include <sys/socket.h> 27 #include "modules/bridge/proto/udp_bridge_remote_info.pb.h" 28 #include "modules/canbus/proto/chassis.pb.h" 44 #define RECEIVER_BRIDGE_COMPONENT_REGISTER(pb_msg) \ 45 CYBER_REGISTER_COMPONENT(UDPBridgeReceiverComponent<pb_msg>) 55 std::string
Name()
const {
return FLAGS_bridge_module_name; }
59 bool InitSession(uint16_t port);
64 bool IsTimeout(
double time_stamp);
65 bool RemoveInvalidBuf(uint32_t msg_id);
69 unsigned int bind_port_ = 0;
70 std::string proto_name_ =
"";
71 std::string topic_name_ =
"";
72 bool enable_timeout_ =
true;
73 std::shared_ptr<cyber::Writer<T>> writer_;
76 std::shared_ptr<UDPListener<UDPBridgeReceiverComponent<T>>> listener_ =
77 std::make_shared<UDPListener<UDPBridgeReceiverComponent<T>>>();
79 std::vector<BridgeProtoDiserializedBuf<T> *> proto_list_;
UDPBridgeReceiverComponent()
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
#define RECEIVER_BRIDGE_COMPONENT_REGISTER(pb_msg)
Definition: udp_bridge_receiver_component.h:44
Definition: bridge_proto_diserialized_buf.h:50
std::string Name() const
Definition: udp_bridge_receiver_component.h:55
The class of MonitorLogBuffer.
Definition: udp_bridge_receiver_component.h:48
This class help collect MonitorMessage pb to monitor topic. The messages can be published automatical...
Definition: monitor_log_buffer.h:60
The Component can process up to four channels of messages. The message type is specified when the com...
Definition: component.h:58
~UDPBridgeReceiverComponent()