Skip to content

Commit

Permalink
Update unknown packet logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Samahu committed Aug 15, 2024
1 parent deb249c commit 4c9c048
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/os_pcap_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

#include <string>
#include <thread>
#include <chrono>
#include <iomanip>

#include "ouster_ros/os_sensor_nodelet_base.h"
#include "ouster_ros/PacketMsg.h"
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 4c9c048

Please sign in to comment.