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

Issue 339: Implement parse_bool and refactor a few #1014

Merged
merged 5 commits into from
May 10, 2023

Conversation

GreatAlexander
Copy link
Contributor

Bence told me to do this. Fixes #339

@bmagyar bmagyar changed the title Issue_339: Implement parse_bool and refactor a few Issue 339: Implement parse_bool and refactor a few May 10, 2023
@codecov-commenter
Copy link

Codecov Report

Merging #1014 (af3a82b) into master (925f5f3) will decrease coverage by 1.92%.
The diff coverage is 35.62%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##           master    #1014      +/-   ##
==========================================
- Coverage   34.61%   32.70%   -1.92%     
==========================================
  Files          52       91      +39     
  Lines        2981     9553    +6572     
  Branches     1855     6433    +4578     
==========================================
+ Hits         1032     3124    +2092     
- Misses        310      704     +394     
- Partials     1639     5725    +4086     
Flag Coverage Δ
unittests 32.70% <35.62%> (-1.92%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
controller_manager/src/controller_manager.cpp 38.27% <ø> (-1.44%) ⬇️
controller_manager/src/ros2_control_node.cpp 0.00% <0.00%> (ø)
..._interface/include/hardware_interface/actuator.hpp 100.00% <ø> (ø)
...re_interface/include/hardware_interface/sensor.hpp 100.00% <ø> (ø)
...re_interface/include/hardware_interface/system.hpp 100.00% <ø> (ø)
hardware_interface/src/resource_manager.cpp 49.91% <ø> (-3.72%) ⬇️
hardware_interface/src/sensor.cpp 50.52% <ø> (ø)
hardware_interface/src/system.cpp 55.45% <ø> (ø)
...rface/test/mock_components/test_generic_system.cpp 9.14% <ø> (ø)
...dware_interface/test/test_component_interfaces.cpp 32.44% <ø> (+4.25%) ⬆️
... and 68 more

... and 19 files with indirect coverage changes

@bmagyar bmagyar merged commit c9709f3 into ros-controls:master May 10, 2023
1 check passed
@bmagyar
Copy link
Member

bmagyar commented May 11, 2023

@Mergifyio backport humble

@mergify
Copy link
Contributor

mergify bot commented May 11, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 11, 2023
(cherry picked from commit c9709f3)

# Conflicts:
#	hardware_interface/src/component_parser.cpp
#	hardware_interface/src/mock_components/generic_system.cpp
bmagyar added a commit that referenced this pull request May 29, 2023
…1018)

* Implement parse_bool and refactor a few (#1014)

(cherry picked from commit c9709f3)

# Conflicts:
#	hardware_interface/src/component_parser.cpp
#	hardware_interface/src/mock_components/generic_system.cpp

* Alex fixed conflicts

Co-authored-by: Alejandro Bordallo <[email protected]>

---------

Co-authored-by: Alejandro Bordallo <[email protected]>
Co-authored-by: Bence Magyar <[email protected]>
flochre pushed a commit to flochre/ros2_control that referenced this pull request Jul 5, 2023
…rols#1014) (ros-controls#1018)

* Implement parse_bool and refactor a few (ros-controls#1014)

(cherry picked from commit c9709f3)

# Conflicts:
#	hardware_interface/src/component_parser.cpp
#	hardware_interface/src/mock_components/generic_system.cpp

* Alex fixed conflicts

Co-authored-by: Alejandro Bordallo <[email protected]>

---------

Co-authored-by: Alejandro Bordallo <[email protected]>
Co-authored-by: Bence Magyar <[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.

I propose adding parse_bool() function to encapsulate this logic and it could be reused by other components.
3 participants