Skip to content

SyncParameterClient always points to its own node #365

Closed

Description

@Karsten1987

I was trying to get started with the rclcpp implementation for parameters and stumbled upon a question I couldn't figure out.

The AsyncParameterClient takes two arguments:
1.) The node to spawn the service clients on
2.) A remote_node name to which service server the client points to

The SyncParameterClient takes only one argument, i.e. the node to spawn the service clients on and always points to its own node.
https://github.com/ros2/rclcpp/blob/master/rclcpp/src/rclcpp/parameter_client.cpp#L284

This ever prevents to use the SyncParameterClient to ask for parameters of other nodes. Now, given that one could easily fetch all parameters of a node just by calling Node::get_parameters, I wonder what's the concept and use-case of this SyncParameterClient.

Activity

  1. added
    question
    on Aug 31, 2017
  2. self-assigned this
    on Aug 31, 2017
  3. Karsten1987 commented on Sep 6, 2017

    @Karsten1987
    ContributorAuthor

    Given today's offline discussion, it does make sense to adjust the syncparameterclient API to the asynchronous one.

    Reasons for that is that the node interface provides means to query the local parameters and there is no direct need to go through service calls to fetch these.

  4. added
    enhancement
    and removed
    question
    on Sep 6, 2017
  5. added
    ready
    on Sep 27, 2017
  6. added
    in progress
    and removed
    ready
    on Sep 27, 2017
  7. removed
    in progress
    on Oct 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions