Skip to content

Commit

Permalink
add some debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Mar 18, 2024
1 parent 7dca6a2 commit d98c0ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hardware_interface/src/resource_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -768,6 +768,7 @@ void ResourceManager::load_urdf(
if (load_and_initialize_components)
{
std::lock_guard<std::recursive_mutex> resources_guard(resources_lock_);
RCUTILS_LOG_INFO_NAMED("resource_manager", "Locking the resources lock before initializing the hardware!");
for (const auto & individual_hardware_info : hardware_info)
{
if (individual_hardware_info.type == actuator_type)
Expand All @@ -786,6 +787,7 @@ void ResourceManager::load_urdf(
resource_storage_->load_and_initialize_system(individual_hardware_info);
}
}
RCUTILS_LOG_INFO_NAMED("resource_manager", "Releasing the resources lock as hardware is initialized!");
}

// throw on missing state and command interfaces, not specified keys are being ignored
Expand Down

0 comments on commit d98c0ee

Please sign in to comment.