This means that interrupt signals (Ctrl-C) will not be caught by ROS itself, and thus that code execution will be interrupted immediately. In particular:
while(ros::ok())
{
MCGlobalController gc;
}
// destructors will not be called upon Ctrl-C (controllers, plugins, observers, etc)
Since in that case destructors are not called, this can cause issues down the line.
I can't think of any reason why we should be disabling the default signal handler, and doing so is confusing.
Currently
ROS
is initialized with:This means that interrupt signals (
Ctrl-C
) will not be caught by ROS itself, and thus that code execution will be interrupted immediately. In particular:Since in that case destructors are not called, this can cause issues down the line. I can't think of any reason why we should be disabling the default signal handler, and doing so is confusing.