Minor fixes to the parameter_service.cpp file.
Make sure to #include what is used, and also fix a typo in a test. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This commit is contained in:
parent
2078887a2b
commit
ee7b8ca5f2
2 changed files with 6 additions and 1 deletions
|
@ -15,7 +15,12 @@
|
|||
#include "rclcpp/parameter_client.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <functional>
|
||||
#include <future>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
|
@ -119,7 +119,7 @@ ParameterService::ParameterService(
|
|||
RCLCPP_WARN(
|
||||
rclcpp::get_logger("rclcpp"), "Failed to set parameters atomically: %s", ex.what());
|
||||
response->result.successful = false;
|
||||
response->result.reason = "One or more parameters wer not declared before setting";
|
||||
response->result.reason = "One or more parameters were not declared before setting";
|
||||
}
|
||||
},
|
||||
qos_profile, nullptr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue