Skip to content

DWB parameter helper doesn't work with strings #2916

@roncapat

Description

@roncapat

https://github.com/ros-planning/navigation2/blob/21a146a97c0d400eb9bdaeaf31bb9dfb536cf00b/nav2_dwb_controller/nav_2d_utils/include/nav_2d_utils/parameters.hpp#L75

Writing new DWB critics and noticed that 'searchAndGetParam<>()' compiles for strings but then fails during execution, since value is 0-initialized and there is a run time error.

A solution would be to remove the initialization of the variable, since it is overwritten a few lines later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions