diff --git a/src/os_pcap_nodelet.cpp b/src/os_pcap_nodelet.cpp index f3fc0a07..da5c5855 100644 --- a/src/os_pcap_nodelet.cpp +++ b/src/os_pcap_nodelet.cpp @@ -17,6 +17,8 @@ #include #include +#include +#include #include "ouster_ros/os_sensor_nodelet_base.h" #include "ouster_ros/PacketMsg.h" @@ -202,7 +204,9 @@ class OusterPcap : public OusterSensorNodeletBase { pf.lidar_packet_size); }); } else { - std::cout << "unknown packet" << std::endl; + NODELET_WARN_STREAM_THROTTLE(1, + "unknown packet /w port: " + << packet_info.dst_port); } auto prev_packet_ts = packet_info.timestamp; payload_size = pcap.next_packet();