Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rcl] Improve handling of dynamic discovery #1023

Merged
merged 41 commits into from Apr 8, 2023

Commits on Mar 21, 2023

  1. Get discovery preferences from the environment

    Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
    gbiggs authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    1bb953e View commit details
    Browse the repository at this point in the history
  2. Support specification of discovery range and static peers

    Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
    gbiggs authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    8ecb6b3 View commit details
    Browse the repository at this point in the history
  3. Add some debug helpers

    Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
    gbiggs authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    6d4f0e6 View commit details
    Browse the repository at this point in the history
  4. Cleanup the LOCALHOST_ONLY deprecation a bit.

    Only print out the warning if it is actually specified.
    
    Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
    clalancette authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    f557eea View commit details
    Browse the repository at this point in the history
  5. Rewrite parsing of static peers.

    Mostly to get rid of the use of strtok_r, which is dangerous
    and also should not be used on our static environment variables.
    Instead, use rcutils_split(), which is much better.
    
    Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
    clalancette authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    02015ff View commit details
    Browse the repository at this point in the history
  6. Fix some silly bugs.

    Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
    clalancette authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    4529112 View commit details
    Browse the repository at this point in the history
  7. Use names instead of integers for discovery range env vars

    Signed-off-by: Michael X. Grey <grey@openrobotics.org>
    mxgrey authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    8b99c1f View commit details
    Browse the repository at this point in the history
  8. Add support for dynamic allocation

    This commit adds support for dynamic allocation for unlimited number of
    static peers.
    
    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    0d117f6 View commit details
    Browse the repository at this point in the history
  9. Add a warning if ROS_AUTOMATIC_DISCOVERY_OFF is set and STATIC_PEERS are

    set.
    
    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    137ea61 View commit details
    Browse the repository at this point in the history
  10. Update to latest rmw API

    Signed-off-by: Michael X. Grey <grey@openrobotics.org>
    mxgrey authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    0bbaabd View commit details
    Browse the repository at this point in the history
  11. Uncrustify

    Signed-off-by: Michael X. Grey <grey@openrobotics.org>
    mxgrey authored and wjwwood committed Mar 21, 2023
    Configuration menu
    Copy the full SHA
    5225a54 View commit details
    Browse the repository at this point in the history

Commits on Mar 24, 2023

  1. Configuration menu
    Copy the full SHA
    f7d4487 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2023

  1. Update for rmw_discovery_options_t changes

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    7deb711 View commit details
    Browse the repository at this point in the history
  2. Address feedback: use strncmp

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    911932f View commit details
    Browse the repository at this point in the history
  3. Address feedback: Log levels

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    df48726 View commit details
    Browse the repository at this point in the history
  4. Address feedback: remove TODO

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    ac342ad View commit details
    Browse the repository at this point in the history
  5. Address feedback: rename function

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    ffd5000 View commit details
    Browse the repository at this point in the history
  6. ddress feedback: Docstring

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    c3f1c77 View commit details
    Browse the repository at this point in the history
  7. Address feedback: comment

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    81fa1f0 View commit details
    Browse the repository at this point in the history
  8. Add RCL_RET_ERROR if fini fails.

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    211d4a6 View commit details
    Browse the repository at this point in the history
  9. snprintf->rcutils_snprintf

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    18c8800 View commit details
    Browse the repository at this point in the history
  10. Rename tests

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    185d5ae View commit details
    Browse the repository at this point in the history
  11. rcl_get_discovery_automatic_range -> rcl_get_automatic_discovery_rang…

    …e in test
    
    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 28, 2023
    Configuration menu
    Copy the full SHA
    06efd9d View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2023

  1. Annotate tests

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    1945a0c View commit details
    Browse the repository at this point in the history
  2. More comments

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    4260e6f View commit details
    Browse the repository at this point in the history
  3. Style

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    d3bb058 View commit details
    Browse the repository at this point in the history
  4. Style

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    fe50db2 View commit details
    Browse the repository at this point in the history
  5. Uncrustify

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    b644644 View commit details
    Browse the repository at this point in the history
  6. Constness and warning

    Signed-off-by: Arjo Chakravarty <arjoc@intrinsic.ai>
    arjo129 committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    32e6cce View commit details
    Browse the repository at this point in the history
  7. address TODO about IP address validation in the static peers

    Signed-off-by: William Woodall <william@osrfoundation.org>
    wjwwood committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    cd2eeb8 View commit details
    Browse the repository at this point in the history
  8. NOT_SET and SYSTEM_DEFAULT values

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    5b568ca View commit details
    Browse the repository at this point in the history
  9. refactor discovery options to handle env vars better and simplify str…

    …ingifying enums
    
    Signed-off-by: William Woodall <william@osrfoundation.org>
    wjwwood committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    a610f99 View commit details
    Browse the repository at this point in the history
  10. fixup docs

    Signed-off-by: William Woodall <william@osrfoundation.org>
    wjwwood committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    4c4248f View commit details
    Browse the repository at this point in the history
  11. (re)improve the discovery range debug message

    Signed-off-by: William Woodall <william@osrfoundation.org>
    wjwwood committed Mar 29, 2023
    Configuration menu
    Copy the full SHA
    12e55f0 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2023

  1. Set discovery options to NOT_SET to detect user changse

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    4101c90 View commit details
    Browse the repository at this point in the history
  2. lint

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    2cb6d41 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    90ba86d View commit details
    Browse the repository at this point in the history
  4. strncpy_s on windows

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Mar 31, 2023
    Configuration menu
    Copy the full SHA
    07ad46f View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2023

  1. Configuration menu
    Copy the full SHA
    bf024b8 View commit details
    Browse the repository at this point in the history
  2. Change default range to SUBNET, and allow configuring it at build time

    Signed-off-by: Shane Loretz <sloretz@google.com>
    sloretz committed Apr 6, 2023
    Configuration menu
    Copy the full SHA
    ee00c56 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2023

  1. Configuration menu
    Copy the full SHA
    e5e8877 View commit details
    Browse the repository at this point in the history