SteveMacenski / slam_toolbox

Slam Toolbox for lifelong mapping and localization in potentially massive maps with ROS
GNU Lesser General Public License v2.1
1.67k stars 525 forks source link

Add missing include to <mutex> #560

Closed Tobias-Fischer closed 1 year ago

Tobias-Fischer commented 1 year ago
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);
      |            ^~~~~~~~~~~

Basic Info

Info Please fill out this column
Ticket(s) this addresses (add tickets here #1)
Primary OS tested on (Ubuntu, MacOS, Windows)
Robotic platform tested on (Steve's Robot, gazebo simulation of Tally, hardware turtlebot)

Description of contribution in a few bullet points

Description of documentation updates required from your changes


Future work that may be required in bullet points

SteveMacenski commented 1 year ago

@Tobias-Fischer please open against ros2 as well so that all future distributions will have it reflected as well! Then I'll merge the pair