Skip to content

Conversation

@destogl
Copy link
Member

@destogl destogl commented Mar 7, 2022

This PR introduces changes for Resource Manager regarding management of reference interfaces from chained controllers.
Resource Manager already has implemented management of Command (Read/Write) interfaces, therefore only methods for accessing reference interfaces specifically are created.
The main reason for putting the code here is to avoid code duplication in Controller Manager.

The PR doesn't depend on any PR specifically because the changes and functionality is limited to Resource Manager.

Copy link
Contributor

@livanov93 livanov93 left a comment

Choose a reason for hiding this comment

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

It looks good. I think it was a good idea to make it part of ResourceManager.

@destogl destogl force-pushed the rm-extension-for-managing-reference-interfaces-pr branch from 7f00914 to 9a58545 Compare April 14, 2022 16:08
@destogl destogl force-pushed the rm-extension-for-managing-reference-interfaces-pr branch from 9a58545 to 2dbd938 Compare April 25, 2022 19:21
Copy link
Contributor

@erickisos erickisos left a comment

Choose a reason for hiding this comment

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

It looks good to me!

@destogl destogl force-pushed the rm-extension-for-managing-reference-interfaces-pr branch from 2dbd938 to 767c247 Compare May 16, 2022 12:10
resource_storage_->controllers_reference_interfaces_map_.at(controller_name);
resource_storage_->controllers_reference_interfaces_map_.erase(controller_name);

std::lock_guard<std::recursive_mutex> guard(resource_interfaces_lock_);
Copy link
Member

Choose a reason for hiding this comment

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

in other cases you put the guards into the function that is called. Is this different for any reason?

Copy link
Member Author

Choose a reason for hiding this comment

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

see above

@bmagyar bmagyar merged commit d6f17be into ros-controls:master May 18, 2022
@destogl destogl deleted the rm-extension-for-managing-reference-interfaces-pr branch May 18, 2022 15:40
pac48 pushed a commit to pac48/ros2_control that referenced this pull request Jan 26, 2024
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.

4 participants