Skip to content

Commit

Permalink
Add missing include to <mutex> (#560)
Browse files Browse the repository at this point in the history
In file included from $SRC_DIR/ros-humble-slam-toolbox/src/work/lib/karto_sdk/src/Karto.cpp:27:
$SRC_DIR/ros-humble-slam-toolbox/src/work/lib/karto_sdk/include/karto_sdk/Karto.h: In member function 'const karto::Pose2& karto::LocalizedRangeScan::GetBarycenterPose() const':
$SRC_DIR/ros-humble-slam-toolbox/src/work/lib/karto_sdk/include/karto_sdk/Karto.h:5503:12: error: 'unique_lock' is not a member of 'std'
 5503 |       std::unique_lock<std::shared_mutex> uniqueLock(m_Lock);
      |            ^~~~~~~~~~~
  • Loading branch information
Tobias-Fischer authored Mar 3, 2023
1 parent 1f3d8eb commit f66f982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/karto_sdk/include/karto_sdk/Karto.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
#include <sstream>
#include <stdexcept>
#include <shared_mutex>
#include <mutex>

#ifdef USE_POCO
#include <Poco/Mutex.h>
Expand Down

0 comments on commit f66f982

Please sign in to comment.