Skip to content

parameter_map_from should report which name is missing #2916

@mleegwt

Description

@mleegwt

Description

I would like improved error messages for missing parameters. Currently I only see "No parameter value set". But I don't know which parameter this applies to. I'm trying to configure Nav2, so this is somewhat of an issue (...).

I tried to find my way around this code base:
In parameter_map.cpp the method parameter_map_from calls parameter_value_from.
That method can throw rclcpp::exceptions::InvalidParameterValueException. The description "No parameter value set" does not describe which parameter was invalid. That could be fixed: In parameter_map_from the c_param_name is known.

Does this sound like a feasible improvement?

Motivation

I would like to improve debugging of missing parameters.

Design / Implementation Considerations

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions