Skip to content

Can't load non-absolute node name in parameter file #648

@Karsten1987

Description

@Karsten1987

Bug report

I have a parameter file in the style of

some_node_name:
  ros__parameters:
    a_list:
        - item1
        - item2

Expected behavior

ros2 param load works to load the correct parameters for node some_node_name even though the node name is not specified as absolute.

Actual behavior

error is raised: param file does not contain parameters for /some_node_name, only for nodes: dict_keys(['some_node_name'])

Note that there's a simple mismatch between the node names given that one is absolute.

Additional information

The reproducer here is based on a ros2-control example in which I would like to use the spawner script to spawn a controller with a given type and a parameter file.
@v-lopez fyi

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions