From 672e0ecd48f471fe05057f81e6233272a692a156 Mon Sep 17 00:00:00 2001 From: CihatAltiparmak Date: Fri, 31 May 2024 13:55:12 +0000 Subject: [PATCH] Fix segmentation fault in mesh_filter/gl_renderer (#2834) --------- Co-authored-by: Sebastian Jahr --- moveit_ros/perception/mesh_filter/src/gl_renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp b/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp index 000dc7ff7b..3c2d7d29e3 100644 --- a/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp +++ b/moveit_ros/perception/mesh_filter/src/gl_renderer.cpp @@ -387,7 +387,7 @@ void mesh_filter::GLRenderer::createGLContext() if (context_it == s_context.end()) { - s_context.at(thread_id) = std::pair(1, 0); + s_context.insert({ thread_id, std::pair(1, 0) }); glutInitWindowPosition(glutGet(GLUT_SCREEN_WIDTH) + 30000, 0); glutInitWindowSize(1, 1);