Skip to content
Snippets Groups Projects
Commit 9087ddba authored by Ferran Martínez's avatar Ferran Martínez
Browse files

Changed Watchdog API

parent fa36de03
No related branches found
No related tags found
1 merge request!4Filtered localization
......@@ -114,9 +114,9 @@ void CGripperModule::reconfigure_callback(gripper_module::GripperModuleConfig &c
this->assign_service.set_max_num_retries(config.service_max_retries);
/* motion action parameters */
this->gripper_action.set_max_num_retries(config.action_max_retries);
if (this->config.enable_timeout)
this->gripper_action.enable_timeout(config.feedback_watchdog_time_s);
else this->gripper_action.disable_timeout();
if (this->config.enable_watchdog)
this->gripper_action.enable_watchdog(config.feedback_watchdog_time_s);
else this->gripper_action.disable_watchdog();
if(this->config.enable_timeout)
this->gripper_action.enable_timeout(config.timeout_s);
else
......
......@@ -142,7 +142,7 @@ void CJointsCartModule::reconfigure_callback(joints_cart_module::JointsCartModul
this->get_ik_service.set_max_num_retries(config.get_ik_max_retries);
/* motion action parameters */
this->joints_action.set_max_num_retries(config.action_max_retries);
if (config.enable_watchdog)
if (this->config.enable_watchdog)
this->joints_action.enable_watchdog(config.feedback_watchdog_time_s);
else this->joints_action.disable_watchdog();
if(this->config.enable_timeout)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment