Skip to content

Commit

Permalink
Address Jere's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamPettinger authored and tylerjw committed Nov 15, 2022
1 parent a7571a0 commit e497736
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion moveit_ros/moveit_servo/include/moveit_servo/servo_calcs.h
Expand Up @@ -85,7 +85,11 @@ class ServoCalcs

~ServoCalcs();

/** \brief Start the timer where we do work and publish outputs */
/**
* Start the timer where we do work and publish outputs
*
* @exception can throw a std::runtime_error if the setup was not completed
*/
void start();

/**
Expand Down
3 changes: 1 addition & 2 deletions moveit_ros/moveit_servo/src/servo_calcs.cpp
Expand Up @@ -251,8 +251,7 @@ void ServoCalcs::start()
auto check_link_is_known = [this](const std::string& frame_name) {
if (!current_state_->knowsFrameTransform(frame_name))
{
std::string error_string = "Unknown frame: " + frame_name;
throw std::runtime_error(error_string);
throw std::runtime_error{ "Unknown frame: " + frame_name };
}
};
check_link_is_known(parameters_->planning_frame);
Expand Down

0 comments on commit e497736

Please sign in to comment.