Skip to content

Commit

Permalink
[ros2] Avoid signint handler message and error concerning FULL ROS ME…
Browse files Browse the repository at this point in the history
…SSAGGE QUEUE by removing siginthandler
  • Loading branch information
ThomasDuvinage committed Nov 25, 2024
1 parent a13d312 commit fe0fb5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ROS/src/mc_rtc_ros/ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ inline bool ros_init([[maybe_unused]] const std::string & name)
if(ros::ok()) { return true; }
int argc = 0;
#ifdef MC_RTC_ROS_IS_ROS2
rclcpp::init(argc, nullptr);
rclcpp::init(argc, nullptr, rclcpp::InitOptions(), rclcpp::SignalHandlerOptions::SigTerm);
#else
ros::init(argc, nullptr, name.c_str(), ros::init_options::NoSigintHandler);
if(!ros::master::check())
Expand Down

0 comments on commit fe0fb5e

Please sign in to comment.