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

Resource Manager API changes for hardware lifecycle #api-breaking #abi-breaking #589

Merged
merged 34 commits into from
Jan 21, 2022

Conversation

destogl
Copy link
Member

@destogl destogl commented Dec 3, 2021

This PR also includes tests because they would be broken otherwise.

destogl and others added 25 commits December 1, 2021 13:20
Add HardwareComponentInfo structure in resource manager.

Use constants for HW parameters in tests of resource_manager.

Add list hardware components in CM to get details about them and check their status.

Use clear name for 'guard' and move release cmd itfs for better readability.

RM: Add lock for accesing maps with stored interfaces.

Separate hardware components-related services after controllers-related services.

Add service for activate/deactive hardware components.

Add activation and deactivation through ResourceStorage. This helps to manage available command interfaces.
…only 'set_hardware_component_state' service.
@destogl destogl self-assigned this Dec 3, 2021
@destogl destogl requested a review from bmagyar December 3, 2021 11:02
@destogl destogl marked this pull request as draft December 3, 2021 11:05
@destogl destogl marked this pull request as ready for review December 3, 2021 11:49
@bmagyar bmagyar changed the title Resource Manager API changes for hardware lifecycle Resource Manager API changes for hardware lifecycle #api-breaking #abi-breaking Jan 14, 2022
Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

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

There are still a few TODOs left in there but let's wait for the final PR of this train and then we should check all the code for TODOs and see which ones are still relevant (-> ticket) and which ones aren't (-> delete)

hardware_interface/src/resource_manager.cpp Outdated Show resolved Hide resolved
hardware_interface/src/resource_manager.cpp Show resolved Hide resolved
hardware_interface/src/resource_manager.cpp Outdated Show resolved Hide resolved
hardware_interface/test/test_resource_manager.cpp Outdated Show resolved Hide resolved
hardware_interface/test/test_resource_manager.cpp Outdated Show resolved Hide resolved
hardware_interface/test/test_resource_manager.cpp Outdated Show resolved Hide resolved
@bmagyar bmagyar merged commit a362e2b into ros-controls:master Jan 21, 2022
@destogl destogl deleted the api-change-for-hw-lifecycle branch January 21, 2022 12:32
@destogl
Copy link
Member Author

destogl commented Jan 21, 2022

🎉🎊

@destogl destogl linked an issue Feb 24, 2022 that may be closed by this pull request
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.

Create lifecycle for components/hardware
2 participants