Skip to content

Commit

Permalink
Revert "added method to check if interface is a reference interface f…
Browse files Browse the repository at this point in the history
…rom a controller in resource manager"

This reverts commit 6301d64.
  • Loading branch information
saikishor committed Aug 11, 2023
1 parent d78caff commit 00f29cc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
10 changes: 0 additions & 10 deletions hardware_interface/include/hardware_interface/resource_manager.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,16 +182,6 @@ class HARDWARE_INTERFACE_PUBLIC ResourceManager
*/
void remove_controller_reference_interfaces(const std::string & controller_name);

/// Checks if a command interface belongs to a controller or not
/**
* Checks if the parsed interface is found within the list of interfaces per controller in
* `controllers_reference_interfaces_map_`
*
* @param[in] interface_name name of the interface to verify in the map
* @return true if interface belongs to a controller, false if not
*/
bool interface_is_reference_interface_of_controller(const std::string & interface_name) const;

/// Cache mapping between hardware and controllers using it
/**
* Find mapping between controller and hardware based on interfaces controller with
Expand Down
11 changes: 0 additions & 11 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -903,17 +903,6 @@ void ResourceManager::remove_controller_reference_interfaces(const std::string &
resource_storage_->remove_command_interfaces(interface_names);
}

bool ResourceManager::interface_is_reference_interface_of_controller(
const std::string & interface_name) const
{
for (const auto & it : resource_storage_->controllers_reference_interfaces_map_)
{
if (std::find(it.second.begin(), it.second.end(), interface_name) != it.second.end())
return true;
}
return false;
}

// CM API: Called in "callback/slow"-thread
void ResourceManager::cache_controller_to_hardware(
const std::string & controller_name, const std::vector<std::string> & interfaces)
Expand Down

0 comments on commit 00f29cc

Please sign in to comment.