This commit is contained in:
duongtd 2026-01-06 17:49:14 +07:00
parent a8fc8cb9a4
commit 03c151afd2
2 changed files with 0 additions and 7 deletions

View File

@ -74,12 +74,6 @@ public:
namespace robot_costmap_2d 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 /** @brief A ROS wrapper for a 2D Costmap. Handles subscribing to
* topics that provide observations about obstacles in either the form * topics that provide observations about obstacles in either the form
* of PointCloud or LaserScan messages. */ * of PointCloud or LaserScan messages. */

View File

@ -67,7 +67,6 @@ Costmap2DROBOT::Costmap2DROBOT(const std::string& name, tf3::BufferCore& tf) :
map_update_thread_(NULL), map_update_thread_(NULL),
footprint_padding_(0.0) footprint_padding_(0.0)
{ {
std::signal(SIGINT, signalHandler);
robot::NodeHandle nh("~"); robot::NodeHandle nh("~");
robot::NodeHandle priv_nh(nh, name); robot::NodeHandle priv_nh(nh, name);
name_ = name; name_ = name;