Repository navigation
first draft of parameter design doc - #58
Conversation
There was a problem hiding this comment.
If I understand correctly, this would be the method for enforcing parameter ranges (among other things). And 'be able to communicate the preconditions' would refers to a mechanism that could be used to, for instance, display valid parameter values or ranges, as rqt_reconfigure currently does. Is my interpretation correct?
There was a problem hiding this comment.
Return as well as unset need to support groups of parameters atomically if setting those is supported.
There was a problem hiding this comment.
Added a line after to clarify it will return unset explicitly.
There was a problem hiding this comment.
My comment was referring to the need to query a set of parameters atomically. The new sentence does not yet cover that.
There was a problem hiding this comment.
What is meant by an "entire system"? The entire ROS 2 graph? Or can it be a subset of the nodes involved in getting/setting parameters?
There was a problem hiding this comment.
Is this supposed to be a subsection of "Topics not covered at the moment"? It should probably have 3 leading #s.
There was a problem hiding this comment.
I'd call this section "set" and the next "get" parameter values. This makes it line up with "unset" and it avoids "accept" which implies that it could have not been accepted ("reject"), which is not covered in the following paragraph.
There was a problem hiding this comment.
I'd say "the owner of the parameter should be able to reject ...", using "parameter server" implies how it should be implemented since server invokes the idea of a centralized client-server relationship.
Or, even more common: the robot_description URDF parameter. |
|
I think that the unowned parameters are a pattern that generally should be discouraged. The example of the There are very few pieces of data which are truely global and unchaning like |
|
How will unowned parameters be discouraged? Fairly often, I find it useful to define parameters at a higher level in the namespace for use by more than one node. Isn't that what In most cases, there can be a node that "owns" each of those parameters. But, what happens if that node should terminate unexpectedly? Will the parameter persist across a respawn? It would in ROS 1. Instead of dismissing them as a backwards compatibility option, I think global parameters deserve some serious design treatment. |
@jack-oquin It would be fine to have something like
I know that's a useful feature that a lot of people use and we've talked about how to preserve that behavior if it is desired, but it's not mentioned explicitly here either as a use case or as something that needs addressing. @tfoote we should add that point, or I can if you don't have time. My personal opinion is that for ROS 2 it should be done by a tool which is actually a normal node. This node would act similar to how it's done in ROS 1, but would not use any special interfaces or features if possible. In ROS 1 a node starts up, then contacts the parameter server and gets the current values (either defaults or what was set from a previous run). The generic parameter server node in ROS 2 could provide the same service, which nodes could optionally query before taking the hard coded defaults in their code. Like the ROS 1 parameter server, this generic parameter server node in ROS 2 could provide a global namespace which all nodes could reference and search through and could hold common global parameters like So I think that even if all parameters must be owned by a node, i.e. no true global parameters, you can model this pattern using nodes. We just need to provide the right tools and we could include an instance of this parameter server node in something like the
I agree, we should describe the motivation for this feature and describe how it can be accomplished with the proposed solution and let people comment on that. |
|
I've added some more details about how to use a parameter server node in parent namespaces and added a section on |
… impact on the TOC
reworked the ideal system section to be more concise, have less of an impact on the TOC
|
The bullet If the part should stay in the article (which I think it shouldn't) it would be better suited in the "Topics not covered at the moment" section at the end. |
There was a problem hiding this comment.
The wording of this sentence sounds very fuzzy to me. It could be interpreted that external entities can register these validation callbacks which I think is not the case?
|
Beside my comments I added a few commits to the PR rephrasing little things and adding a some additional information. |
Github doesn't support branching "threading" of replies. If you want to reply to something specific the best thing to do is to quote it and then reply. You get specific sub-threads from line comments, but they're kind of volatile as if the line of code is updated the whole sub-thread can vanish. |
|
I've addressed @dirk-thomas 's comments. I'd like to suggest we merge this now and get it posted on the site for others to find. I'm sure there will be more updates to come but it's at a relatively self consistent state at the moment. |
6641bc4 to
f60f73e
Compare
first draft of parameter design doc
|
Thanks everyone for the feedback. It's now on the site at: http://design.ros2.org/articles/ros_parameters.html |
Connects to #57