SICKAG / sick_safetyscanners_base

CPP (C++) 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
14 stars 32 forks source link

UDPPacketMerger: fixing missing include #14

Closed DasRoteSkelett closed 2 years ago

DasRoteSkelett commented 2 years ago

While std::map is used, it is not included in this header. This leads to this error with gcc 11.2:

| In file included from /yocto/sf-build/BUILD-ros2-humble-honister/work/core2-64-oe-linux/sick-safetyscanners-base/1.0.2-1-r0/git/src/data_processing/UDPPacketMerger.cpp:35: | /yocto/sf-build/BUILD-ros2-humble-honister/work/core2-64-oe-linux/sick-safetyscanners-base/1.0.2-1-r0/git/include/sick_safetyscanners_base/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> | | ^~~ | /yocto/sf-build/BUILD-ros2-humble-honister/work/core2-64-oe-linux/sick-safetyscanners-base/1.0.2-1-r0/git/include/sick_safetyscanners_base/data_processing/UDPPacketMerger.h:42:1: note: 'std::map' is defined in header ''; did you forget to '#include '? | 41 | #include "sick_safetyscanners_base/data_processing/ParseDatagramHeader.h" | +++ |+#include | 42 |

Signed-off-by: Matthias Schoepfer m.schoepfer@rethinkrobotics.com