Skip to content

Commit

Permalink
remove rmw_localhost_only_t. (#156)
Browse files Browse the repository at this point in the history
Signed-off-by: Tomoya Fujita <[email protected]>
  • Loading branch information
fujitatomoya authored Jul 29, 2024
1 parent 3086b81 commit baa3f37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 9 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,9 +297,9 @@ from Connext.

If this variable is unspecified, or set to `all`, then `rmw_connextdds` will modify
the default DomainParticipantQos with settings derived from ROS 2 options (e.g.
"localhost only", or "node enclave"), and some additional optimizations meant to
improve the out of the box experiene (e.g. speed up endpoint discovery, and increase
the size of type information shared via discovery).
"node enclave"), and some additional optimizations meant to improve the out of
the box experiene (e.g. speed up endpoint discovery, and increase the size of type
information shared via discovery).

If the variable is set to `basic`, then only those settings associated with ROS 2
options will be modified.
Expand Down
6 changes: 3 additions & 3 deletions rmw_connextdds_common/include/rmw_connextdds/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,13 @@ struct rmw_context_impl_s
{
// Always override the default DomainParticipantQoS obtained at runtime from
// Connext with RMW-specific configuration. This will include settings derived
// from ROS 2 configuration parameters (e.g. "localhost_only", or "enclave"),
// but also some additional configurations that the RMW performs arbitrarly
// from ROS 2 configuration parameters (e.g. "enclave"),
// but also some additional configurations that the RMW performs arbitrary
// to improve the out of the box experience. Note that some of these customizations
// can also be disabled individually (e.g. fast endpoint discovery).
All,
// Only perform basic modifications on the default DomainParticipantQos value
// based on ROS 2 configuration parameters (e.g. "localhost only", and "enclave").
// based on ROS 2 configuration parameters (e.g. "enclave").
// All other RMW-specific customizations will not be applied.
Basic,
// Use the default DomainParticipantQoS returned by Connext without any modification.
Expand Down
1 change: 0 additions & 1 deletion rmw_connextdds_common/src/common/rmw_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,6 @@ rmw_api_connextdds_init_options_init(
init_options->implementation_identifier = RMW_CONNEXTDDS_ID;
init_options->allocator = allocator;
init_options->impl = nullptr;
init_options->localhost_only = RMW_LOCALHOST_ONLY_DEFAULT;
init_options->domain_id = RMW_DEFAULT_DOMAIN_ID;
init_options->enclave = nullptr;
init_options->security_options = rmw_get_zero_initialized_security_options();
Expand Down
2 changes: 0 additions & 2 deletions rmw_connextdds_common/src/common/rmw_serde.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ rmw_api_connextdds_serialize(
try {
// declare a mock context struct to build a temporary type support
rmw_context_t ctx_base;
ctx_base.options.localhost_only = RMW_LOCALHOST_ONLY_DISABLED;
rmw_context_impl_t ctx(&ctx_base);
ctx.request_reply_mapping = RMW_Connext_RequestReplyMapping::Extended;
RMW_Connext_MessageTypeSupport type_support(
Expand Down Expand Up @@ -79,7 +78,6 @@ rmw_api_connextdds_deserialize(
try {
// declare a mock context struct to build a temporary type support
rmw_context_t ctx_base;
ctx_base.options.localhost_only = RMW_LOCALHOST_ONLY_DISABLED;
rmw_context_impl_t ctx(&ctx_base);
ctx.request_reply_mapping = RMW_Connext_RequestReplyMapping::Extended;
RMW_Connext_MessageTypeSupport type_support(
Expand Down

0 comments on commit baa3f37

Please sign in to comment.