Skip to content

Extending capabilities of MPPIController.Optimizer to adjust wz_std parameter based on linear speed #5274

Open
@vahapt

Description

@vahapt

Feature request

Feature description

Currently, Optimizer optimizer_ is declared as a value-based object in the MPPIController class. This approach does not allow subclasses of MPPIController to override or customize the behavior of Optimizer. Declaring optimizer_ as a pointer (e.g. std::unique_ptr<Optimizer>) would allow us to replace it.

Implementation considerations

There will be an insignificant slowdown due to added pointer lookup (probably a few nanoseconds). But added polymorphic behavior is worth it.

I can create a PR if there are no objections.

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