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

Add empty set_atomically parameter service #354

Merged
merged 2 commits into from
Jun 12, 2023
Merged

Conversation

Acuadros95
Copy link
Collaborator

New parameter client implementations check the availability of all the related services before executing a command.
We were missing the /set_parameters_atomically, making ROS 2 Cli parameter commands fail.

This PR adds a empty service implementation to fix this issue. Related: micro-ROS/micro-ROS-Agent#195

Note: This fix shall be included on the Iron release.

Signed-off-by: acuadros95 <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Merging #354 (72621aa) into master (2648503) will increase coverage by 0.42%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##           master     #354      +/-   ##
==========================================
+ Coverage   69.20%   69.63%   +0.42%     
==========================================
  Files          16       16              
  Lines        2715     2760      +45     
  Branches      765      766       +1     
==========================================
+ Hits         1879     1922      +43     
- Misses        450      452       +2     
  Partials      386      386              
Impacted Files Coverage Δ
...lc_parameter/src/rclc_parameter/parameter_server.c 83.10% <95.55%> (+0.68%) ⬆️

Copy link
Member

@pablogs9 pablogs9 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rosterloh
Copy link

If it's at all helpful I've checkout out and built this branch and it fixes the ros2cli issues for me.

@JanStaschulat
Copy link
Contributor

@Mergifyio backport rolling iron

@mergify
Copy link
Contributor

mergify bot commented Jun 12, 2023

backport rolling iron

✅ Backports have been created

@JanStaschulat JanStaschulat merged commit 688bd28 into master Jun 12, 2023
@JanStaschulat JanStaschulat deleted the fix/parameters branch June 12, 2023 08:38
mergify bot pushed a commit that referenced this pull request Jun 12, 2023
* Add empty set_atomically parameter service

Signed-off-by: acuadros95 <[email protected]>

* Fix cpplint

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: acuadros95 <[email protected]>
(cherry picked from commit 688bd28)
mergify bot pushed a commit that referenced this pull request Jun 12, 2023
* Add empty set_atomically parameter service

Signed-off-by: acuadros95 <[email protected]>

* Fix cpplint

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: acuadros95 <[email protected]>
(cherry picked from commit 688bd28)
@JanStaschulat
Copy link
Contributor

JanStaschulat commented Jun 12, 2023

@Acuadros95 I added a backport for rolling and iron distribution. Do you want/need this fix on Humble and Foxy distribution as well?

@Acuadros95
Copy link
Collaborator Author

@JanStaschulat No, this is just needed on Iron and Rolling. Thanks!

JanStaschulat added a commit that referenced this pull request Jun 14, 2023
* Add empty set_atomically parameter service (#354)

* Add empty set_atomically parameter service

Signed-off-by: acuadros95 <[email protected]>

* Fix cpplint

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: acuadros95 <[email protected]>
(cherry picked from commit 688bd28)

* trigger CI-pipeline

Signed-off-by: Jan Staschulat <[email protected]>

* Uncrustify

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: Jan Staschulat <[email protected]>
Signed-off-by: acuadros95 <[email protected]>
Co-authored-by: Antonio Cuadros <[email protected]>
Co-authored-by: Jan Staschulat <[email protected]>
Co-authored-by: acuadros95 <[email protected]>
JanStaschulat added a commit that referenced this pull request Jun 14, 2023
* Add empty set_atomically parameter service (#354)

* Add empty set_atomically parameter service

Signed-off-by: acuadros95 <[email protected]>

* Fix cpplint

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: acuadros95 <[email protected]>
(cherry picked from commit 688bd28)

* Trigger ci-pipeline again.

Signed-off-by: Jan Staschulat <[email protected]>

* Fix uncrustify

Signed-off-by: acuadros95 <[email protected]>

---------

Signed-off-by: Jan Staschulat <[email protected]>
Signed-off-by: acuadros95 <[email protected]>
Co-authored-by: Antonio Cuadros <[email protected]>
Co-authored-by: Jan Staschulat <[email protected]>
Co-authored-by: acuadros95 <[email protected]>
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.

6 participants