SICKAG / sick_safetyscanners

ROS driver for SICK safety laser scanners
https://www.sick.com/de/en/opto-electronic-protective-devices/safety-laser-scanners/c/g187225
Apache License 2.0
61 stars 59 forks source link

Add missing map include. #118

Closed iwanders closed 1 year ago

iwanders commented 1 year ago

Current code fails with gcc (GCC) 11.3.0

Error:

In file included from /home/iwanders/Documents/workspace/NIX/ws/src/sick_safetyscanners/src/data_processing/UDPPacketMerger.cpp:35:
/home/iwanders/Documents/workspace/NIX/ws/src/sick_safetyscanners/include/sick_safetyscanners/data_processing/UDPPacketMerger.h:87:8: error: ‘map’ in namespace ‘std’ does not name a template type
   87 |   std::map<uint32_t, sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector>
      |        ^~~
/home/iwanders/Documents/workspace/NIX/ws/src/sick_safetyscanners/include/sick_safetyscanners/data_processing/UDPPacketMerger.h:42:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’?
   41 | #include <sick_safetyscanners/data_processing/ParseDatagramHeader.h>
  +++ |+#include <map>
   42 | 

fyi @mikepurvis

lenpuc commented 1 year ago

Hi thanks, for opening this up. This will be integrated into the driver.