Skip to content

Commit 7ea83fa

Browse files
committed
Ignore empty names if given in yaml.
1 parent 397e7c7 commit 7ea83fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

controller_manager/src/controller_manager.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,10 @@ void ControllerManager::init_resource_manager(const std::string & robot_descript
257257
{
258258
for (const auto & component : components_to_set)
259259
{
260+
if (component.empty())
261+
{
262+
continue;
263+
}
260264
if (components_to_activate.find(component) == components_to_activate.end())
261265
{
262266
RCLCPP_WARN(

0 commit comments

Comments
 (0)