Skip to content

Commit

Permalink
get rid of unnecessary headers and fix comments.
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya.Fujita <Tomoya.Fujita@sony.com>
  • Loading branch information
fujitatomoya committed Jun 30, 2020
1 parent b5c775b commit 3f73bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 3 additions & 5 deletions rclcpp/include/rclcpp/init_options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,9 @@
#define RCLCPP__INIT_OPTIONS_HPP_

#include <memory>
#include <limits>

#include "rcl/init_options.h"
#include "rclcpp/visibility_control.hpp"
#include "rcutils/get_env.h"

namespace rclcpp
{
Expand Down Expand Up @@ -82,17 +80,17 @@ class InitOptions
const rcl_init_options_t *
get_rcl_init_options() const;

/// Retrieve the ROS_DOMAIN_ID environment variable.
/// Retrieve default domain id and set.
RCLCPP_PUBLIC
void
use_default_domain_id();

/// Set domain id.
/// Set the domain id.
RCLCPP_PUBLIC
void
set_domain_id(size_t domain_id);

/// Return the domain id.
/// Return domain id.
RCLCPP_PUBLIC
size_t
get_domain_id() const;
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/src/rclcpp/init_options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ InitOptions::get_domain_id() const
size_t domain_id;
rcl_ret_t ret = rcl_init_options_get_domain_id(init_options_.get(), &domain_id);
if (RCL_RET_OK != ret) {
rclcpp::exceptions::throw_from_rcl_error(ret, "failed to get domain id to rcl init options");
rclcpp::exceptions::throw_from_rcl_error(ret, "failed to get domain id from rcl init options");
}

return domain_id;
Expand Down

0 comments on commit 3f73bbe

Please sign in to comment.