From 0f58c5305cb8c250c9105b1097e3d9914a01bced Mon Sep 17 00:00:00 2001 From: Dirk Thomas Date: Tue, 31 May 2016 09:06:07 -0700 Subject: [PATCH] fix spelling in comment --- rclcpp/include/rclcpp/client.hpp | 4 ++-- rclcpp/include/rclcpp/context.hpp | 2 +- rclcpp/include/rclcpp/mapped_ring_buffer.hpp | 2 +- rclcpp/include/rclcpp/publisher.hpp | 6 +++--- rclcpp/include/rclcpp/service.hpp | 2 +- rclcpp/include/rclcpp/subscription.hpp | 2 +- rclcpp/src/rclcpp/executor.cpp | 4 ++-- rclcpp/src/rclcpp/intra_process_manager.cpp | 2 +- rclcpp/src/rclcpp/parameter.cpp | 6 +++--- rclcpp/src/rclcpp/parameter_client.cpp | 10 +++++----- rclcpp/src/rclcpp/parameter_service.cpp | 2 +- rclcpp/src/rclcpp/publisher.cpp | 2 +- rclcpp/src/rclcpp/utilities.cpp | 2 +- 13 files changed, 23 insertions(+), 23 deletions(-) diff --git a/rclcpp/include/rclcpp/client.hpp b/rclcpp/include/rclcpp/client.hpp index 13332e9..4f11327 100644 --- a/rclcpp/include/rclcpp/client.hpp +++ b/rclcpp/include/rclcpp/client.hpp @@ -108,7 +108,7 @@ public: if (rcl_client_init(&client_handle_, this->node_handle_.get(), service_type_support_handle, service_name.c_str(), &client_options) != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("could not create client: ") + rcl_get_error_string_safe()); @@ -175,7 +175,7 @@ public: std::lock_guard lock(pending_requests_mutex_); int64_t sequence_number; if (RCL_RET_OK != rcl_send_request(get_client_handle(), request.get(), &sequence_number)) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to send request: ") + rcl_get_error_string_safe()); // *INDENT-ON* diff --git a/rclcpp/include/rclcpp/context.hpp b/rclcpp/include/rclcpp/context.hpp index 5aedad9..f47020a 100644 --- a/rclcpp/include/rclcpp/context.hpp +++ b/rclcpp/include/rclcpp/context.hpp @@ -51,7 +51,7 @@ public: auto it = sub_contexts_.find(type_i); if (it == sub_contexts_.end()) { // It doesn't exist yet, make it - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) sub_context = std::shared_ptr( new SubContext(std::forward(args) ...), [] (SubContext * sub_context_ptr) { diff --git a/rclcpp/include/rclcpp/mapped_ring_buffer.hpp b/rclcpp/include/rclcpp/mapped_ring_buffer.hpp index d9fb736..7f52ad4 100644 --- a/rclcpp/include/rclcpp/mapped_ring_buffer.hpp +++ b/rclcpp/include/rclcpp/mapped_ring_buffer.hpp @@ -220,7 +220,7 @@ private: typename std::vector::iterator get_iterator_of_key(uint64_t key) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) auto it = std::find_if(elements_.begin(), elements_.end(), [key](element & e) -> bool { return e.key == key && e.in_use; }); diff --git a/rclcpp/include/rclcpp/publisher.hpp b/rclcpp/include/rclcpp/publisher.hpp index 1a12ec7..e0a600b 100644 --- a/rclcpp/include/rclcpp/publisher.hpp +++ b/rclcpp/include/rclcpp/publisher.hpp @@ -180,7 +180,7 @@ public: std::string("failed to get rmw handle: ") + rcl_get_error_string_safe()); } if (rmw_get_gid_for_publisher(publisher_rmw_handle, &rmw_gid_) != RMW_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to get publisher gid: ") + rmw_get_error_string_safe()); // *INDENT-ON* @@ -231,7 +231,7 @@ public: ipm.message_sequence = message_seq; auto status = rcl_publish(&intra_process_publisher_handle_, &ipm); if (status != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to publish intra process message: ") + rcl_get_error_string_safe()); // *INDENT-ON* @@ -306,7 +306,7 @@ protected: { auto status = rcl_publish(&publisher_handle_, msg); if (status != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to publish message: ") + rcl_get_error_string_safe()); // *INDENT-ON* diff --git a/rclcpp/include/rclcpp/service.hpp b/rclcpp/include/rclcpp/service.hpp index 6353c7e..704ec40 100644 --- a/rclcpp/include/rclcpp/service.hpp +++ b/rclcpp/include/rclcpp/service.hpp @@ -150,7 +150,7 @@ public: rcl_ret_t status = rcl_send_response(get_service_handle(), req_id.get(), response.get()); if (status != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to send response: ") + rcl_get_error_string_safe()); // *INDENT-ON* diff --git a/rclcpp/include/rclcpp/subscription.hpp b/rclcpp/include/rclcpp/subscription.hpp index 7725916..88b5437 100644 --- a/rclcpp/include/rclcpp/subscription.hpp +++ b/rclcpp/include/rclcpp/subscription.hpp @@ -251,7 +251,7 @@ private: (get_topic_name() + "__intra").c_str(), &intra_process_options) != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("could not create intra process subscription: ") + rcl_get_error_string_safe()); // *INDENT-ON* diff --git a/rclcpp/src/rclcpp/executor.cpp b/rclcpp/src/rclcpp/executor.cpp index ad05e50..c5a5ea8 100644 --- a/rclcpp/src/rclcpp/executor.cpp +++ b/rclcpp/src/rclcpp/executor.cpp @@ -112,7 +112,7 @@ Executor::remove_node(rclcpp::node::Node::SharedPtr node_ptr, bool notify) weak_nodes_.erase( std::remove_if( weak_nodes_.begin(), weak_nodes_.end(), - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) [&](std::weak_ptr & i) { bool matched = (i.lock() == node_ptr); @@ -329,7 +329,7 @@ Executor::wait_for_work(std::chrono::nanoseconds timeout) weak_nodes_.erase( remove_if( weak_nodes_.begin(), weak_nodes_.end(), - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) [](std::weak_ptr i) { return i.expired(); diff --git a/rclcpp/src/rclcpp/intra_process_manager.cpp b/rclcpp/src/rclcpp/intra_process_manager.cpp index 7f2a7b7..0afcf56 100644 --- a/rclcpp/src/rclcpp/intra_process_manager.cpp +++ b/rclcpp/src/rclcpp/intra_process_manager.cpp @@ -69,7 +69,7 @@ IntraProcessManager::get_next_unique_id() // So around 585 million years. Even at 1 GHz, it would take 585 years. // I think it's safe to avoid trying to handle overflow. // If we roll over then it's most likely a bug. - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::overflow_error( "exhausted the unique id's for publishers and subscribers in this process " "(congratulations your computer is either extremely fast or extremely old)"); diff --git a/rclcpp/src/rclcpp/parameter.cpp b/rclcpp/src/rclcpp/parameter.cpp index 0e8fe5f..a7473e5 100644 --- a/rclcpp/src/rclcpp/parameter.cpp +++ b/rclcpp/src/rclcpp/parameter.cpp @@ -105,7 +105,7 @@ ParameterVariant::get_type_name() const case rclcpp::parameter::ParameterType::PARAMETER_NOT_SET: return "not set"; default: - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( "Unexpected type from ParameterVariant: " + std::to_string(get_type())); // *INDENT-ON* @@ -172,7 +172,7 @@ ParameterVariant::from_parameter(const rcl_interfaces::msg::Parameter & paramete throw std::runtime_error("Type from ParameterValue is not set"); default: // TODO(wjwwood): use custom exception - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( "Unexpected type from ParameterVariant: " + std::to_string(parameter.value.type)); // *INDENT-ON* @@ -218,7 +218,7 @@ ParameterVariant::value_to_string() const case rclcpp::parameter::ParameterType::PARAMETER_NOT_SET: return "not set"; default: - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( "Unexpected type from ParameterVariant: " + std::to_string(get_type())); // *INDENT-ON* diff --git a/rclcpp/src/rclcpp/parameter_client.cpp b/rclcpp/src/rclcpp/parameter_client.cpp index f3b88f3..5c1cfc9 100644 --- a/rclcpp/src/rclcpp/parameter_client.cpp +++ b/rclcpp/src/rclcpp/parameter_client.cpp @@ -57,7 +57,7 @@ AsyncParametersClient::get_parameters( auto request = std::make_shared(); request->names = names; - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) get_parameters_client_->async_send_request( request, [request, promise_result, future_result, &callback]( @@ -100,7 +100,7 @@ AsyncParametersClient::get_parameter_types( auto request = std::make_shared(); request->names = names; - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) get_parameter_types_client_->async_send_request( request, [promise_result, future_result, &callback]( @@ -135,7 +135,7 @@ AsyncParametersClient::set_parameters( auto request = std::make_shared(); - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) std::transform(parameters.begin(), parameters.end(), std::back_inserter(request->parameters), [](rclcpp::parameter::ParameterVariant p) { return p.to_parameter(); @@ -171,7 +171,7 @@ AsyncParametersClient::set_parameters_atomically( auto request = std::make_shared(); - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) std::transform(parameters.begin(), parameters.end(), std::back_inserter(request->parameters), [](rclcpp::parameter::ParameterVariant p) { return p.to_parameter(); @@ -210,7 +210,7 @@ AsyncParametersClient::list_parameters( request->prefixes = prefixes; request->depth = depth; - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) list_parameters_client_->async_send_request( request, [promise_result, future_result, &callback]( diff --git a/rclcpp/src/rclcpp/parameter_service.cpp b/rclcpp/src/rclcpp/parameter_service.cpp index e1efa70..9f18943 100644 --- a/rclcpp/src/rclcpp/parameter_service.cpp +++ b/rclcpp/src/rclcpp/parameter_service.cpp @@ -23,7 +23,7 @@ ParameterService::ParameterService(const rclcpp::node::Node::SharedPtr node) : node_(node) { std::weak_ptr captured_node = node_; - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) get_parameters_service_ = node_->create_service( node_->get_name() + "__get_parameters", [captured_node]( diff --git a/rclcpp/src/rclcpp/publisher.cpp b/rclcpp/src/rclcpp/publisher.cpp index d2d5728..53e948c 100644 --- a/rclcpp/src/rclcpp/publisher.cpp +++ b/rclcpp/src/rclcpp/publisher.cpp @@ -123,7 +123,7 @@ PublisherBase::setup_intra_process( auto ret = rmw_get_gid_for_publisher( publisher_rmw_handle, &intra_process_rmw_gid_); if (ret != RMW_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to create intra process publisher gid: ") + rmw_get_error_string_safe()); diff --git a/rclcpp/src/rclcpp/utilities.cpp b/rclcpp/src/rclcpp/utilities.cpp index b3c7c2b..3df249d 100644 --- a/rclcpp/src/rclcpp/utilities.cpp +++ b/rclcpp/src/rclcpp/utilities.cpp @@ -95,7 +95,7 @@ rclcpp::utilities::init(int argc, char * argv[]) { g_is_interrupted.store(false); if (rcl_init(argc, argv, rcl_get_default_allocator()) != RCL_RET_OK) { - // *INDENT-OFF* (prevent uncrustify from making unecessary indents here) + // *INDENT-OFF* (prevent uncrustify from making unnecessary indents here) throw std::runtime_error( std::string("failed to initialize rmw implementation: ") + rcl_get_error_string_safe()); // *INDENT-ON*