Skip to content

Commit

Permalink
[Control] correct the flag to use to check whether the model is recon…
Browse files Browse the repository at this point in the history
…figurable
  • Loading branch information
tongtybj committed Jun 29, 2023
1 parent 481d621 commit 2beb131
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void UnderActuatedLQIController::initialize(ros::NodeHandle nh,
pid_msg_.yaw.i_term.resize(motor_num_);
pid_msg_.yaw.d_term.resize(motor_num_);

if (robot_model_->getJointNum() > 0) realtime_update_ = true;
if (!robot_model_->isModelFixed()) realtime_update_ = true;
if (realtime_update_) {
gain_generator_thread_ = std::thread(boost::bind(&UnderActuatedLQIController::gainGeneratorFunc, this));
}
Expand Down

0 comments on commit 2beb131

Please sign in to comment.