Thanks to visit codestin.com
Credit goes to github.com

Skip to content

use the param profile for param services - #236

Merged
gerkey merged 2 commits into
masterfrom
use_param_profile
Jul 8, 2016
Merged

gerkey merged 2 commits into
masterfrom
use_param_profile

Conversation

@gerkey

@gerkey gerkey commented Jul 6, 2016

Copy link
Copy Markdown
Member

We have a parameter qos profile (https://github.com/ros2/rmw/blob/master/rmw/include/rmw/qos_profiles.h#L33-L39), but we're not using it in the param service or client creation. This PR uses it.

A future extension to consider would be exposing the qos setting through the parameter service/client creation API, to allow the user to change it.

(This came up while working on ros2/rmw_fastrtps#46, wherein it was identified that the history depth was too shallow.)

  • Linux:
    • Build Status
  • OS X:
    • Build Status

@gerkey gerkey added in progress Actively being worked on (Kanban column) in review Waiting for review (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Jul 6, 2016
@dirk-thomas

Copy link
Copy Markdown
Member

The patch lgtm.

It would be straight forward to expose the QoS profile as an optional argument. That could happen as part of this PR which would also avoid having to hard code this value in 11 locations.

@gerkey

gerkey commented Jul 6, 2016

Copy link
Copy Markdown
Member Author

Good idea: d91b4f1.

  • Linux:
    • Build Status
  • OS X:
    • Build Status

@gerkey

gerkey commented Jul 7, 2016

Copy link
Copy Markdown
Member Author

The Linux failures are known problems. The OSX failures seem to be mostly known, but I'm not sure about the test_parameter_server failure. Anybody know anything about that?

Also, any comments on the new API that I exposed in d91b4f1?

@dirk-thomas

Copy link
Copy Markdown
Member

The added optional parameter looks good to me.

@gerkey

gerkey commented Jul 8, 2016

Copy link
Copy Markdown
Member Author

After review, my opinion is that the failing tests are all the result of known issues, including flaky tests, so I'm going to merge.

@gerkey
gerkey merged commit ea76716 into master Jul 8, 2016
@gerkey gerkey removed the in review Waiting for review (Kanban column) label Jul 8, 2016
@gerkey
gerkey deleted the use_param_profile branch July 8, 2016 20:39
Karsten1987 pushed a commit that referenced this pull request Dec 7, 2016
* use the param profile for param services

* expose qos to users of param clients / services
nnmm pushed a commit to ApexAI/rclcpp that referenced this pull request Jul 9, 2022
* Implement a basic YAML based parameter parser for ros2 nodes

* Add README file

* Fix the issues after moving from rcutils_yaml_param_parser to rcl_yaml_param_parser

  - rename folders from rcutils_yaml_param_parser to rcl_yaml_param_parser
  - rename project, header guards and include statements from rcutils_yaml_param_parser to rcl_yaml_param_parser
  - move type declaration in separat file and namespace new structures
  - Fix the code review comments from Mikael

* Few minor changes

   - Changed "params" string to "ros__parameters"
   - Add -Wall, -Wextra and -Wpedantic falgs
   - Fix the compile warning with the new flags

* Fix the changes made in the design of C structure

  - Remove the node_namespaces entry in rcl_params_t
  - Change the type of num_nodes and num_params to size_t

* depend on libyaml_vendor (ros2#236)

* Fix cmake setting standard(C and C++) and add byte_array in C struct

*   Remove C11 so that it defaults to C99

* [rcl_yaml_param_parser] fix export symbols (ros2#237)

* add visibility macros

* remove unused macro

* Support for multi level node and parameter name spaces

* Additional fixes and cleanups

  - Support for string namespace seperator
  - Provide parameter structure init function API
  - name cleanups

* off by 1

* Call yaml_parser_delete()

* fclose(yaml_file)

* free() allocated paths

* Call yaml_event_delete()

* completely deallcoate string array

* Few cleanup changes

  - Add install command into CMakelists.txt
  - Replace one of the zero_allocate with reallocate
  - Pass allocator state
  - Fix int32_t -> rcl_ret_t return value

* Don't include unistd.h

* Use size_t for array indices

* Just pass the allocator in the init function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants