Skip to content

Commit

Permalink
Merge branch 'main' of github.com:ARC-OPT/wbc_ros
Browse files Browse the repository at this point in the history
  • Loading branch information
dmronga committed Nov 29, 2023
2 parents dd56f3e + e8f9fd5 commit 3571ac1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/whole_body_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ controller_interface::CallbackReturn WholeBodyController::on_configure(const rcl
RCLCPP_INFO_THROTTLE(get_node()->get_logger(), *get_node()->get_clock(), 5000, "Waiting for parameter %s.", "/update_rate");
usleep(100000);
}
if(update_rate <= 0){
RCLCPP_FATAL(get_node()->get_logger(), "Update Rate parameter is %i. Did you forget to set it?", update_rate);
throw std::runtime_error("Invalid update_rate parameter");
}

RobotModelConfig robot_model_cfg;
robot_model_cfg.file_or_string = urdf_string;
Expand Down

0 comments on commit 3571ac1

Please sign in to comment.