From 03c151afd20adf78a0296253729a6cd8381805c1 Mon Sep 17 00:00:00 2001 From: duongtd Date: Tue, 6 Jan 2026 17:49:14 +0700 Subject: [PATCH] update --- include/robot_costmap_2d/costmap_2d_robot.h | 6 ------ src/costmap_2d_robot.cpp | 1 - 2 files changed, 7 deletions(-) diff --git a/include/robot_costmap_2d/costmap_2d_robot.h b/include/robot_costmap_2d/costmap_2d_robot.h index 7168336..164d4df 100755 --- a/include/robot_costmap_2d/costmap_2d_robot.h +++ b/include/robot_costmap_2d/costmap_2d_robot.h @@ -74,12 +74,6 @@ public: namespace robot_costmap_2d { - void signalHandler(int) - { - std::signal(SIGINT, SIG_DFL); - std::raise(SIGINT); - } - /** @brief A ROS wrapper for a 2D Costmap. Handles subscribing to * topics that provide observations about obstacles in either the form * of PointCloud or LaserScan messages. */ diff --git a/src/costmap_2d_robot.cpp b/src/costmap_2d_robot.cpp index 3eed4a1..46fdf81 100644 --- a/src/costmap_2d_robot.cpp +++ b/src/costmap_2d_robot.cpp @@ -67,7 +67,6 @@ Costmap2DROBOT::Costmap2DROBOT(const std::string& name, tf3::BufferCore& tf) : map_update_thread_(NULL), footprint_padding_(0.0) { - std::signal(SIGINT, signalHandler); robot::NodeHandle nh("~"); robot::NodeHandle priv_nh(nh, name); name_ = name;