Skip to content

Assertion error using std params with value 0.0 #67

Description

@Butakus

Hi,

Apparently, using std::normal_distribution with zero std is undefined behavior.

In some tests like this one (simple_localizer_tests.cpp), the std params are initialized to 0.0 and the CI now has those tests finishing with error due to an assertion (see #66).

In addition to fixing the tests, I propose adding a check or guard when initializing the localizers, so the std params can only have values greater than zero.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions