File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
joint_trajectory_controller/src Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -724,7 +724,7 @@ controller_interface::CallbackReturn JointTrajectoryController::on_configure(
724724 params_.controller_plugin .c_str (), ex.what ());
725725 return CallbackReturn::FAILURE;
726726 }
727- if (! traj_contr_->initialize (get_node ()))
727+ if (traj_contr_->initialize (get_node ()) == false )
728728 {
729729 RCLCPP_FATAL (
730730 logger,
@@ -1011,6 +1011,14 @@ controller_interface::CallbackReturn JointTrajectoryController::on_activate(
10111011 cmd_timeout_ = 0.0 ;
10121012 }
10131013
1014+ // update gains of PID controller
1015+ if (use_closed_loop_pid_adapter_)
1016+ {
1017+ trajectory_msgs::msg::JointTrajectory traj;
1018+ traj.points .push_back (state_current_);
1019+ traj_contr_->computeGains (traj);
1020+ }
1021+
10141022 return CallbackReturn::SUCCESS;
10151023}
10161024
You can’t perform that action at this time.
0 commit comments