Skip to content

Bug with 360 degree scans #19

@max-kuzmin

Description

@max-kuzmin

Some laser rangefinders cast rays on 360 degree and publish messages with angle_min=0 and angle_max=6.28. But algorithm only uses rays from 0 to 3.14. Other rays drop in function obvious::SensorPolar2D::backProject()

Possible fix without modifying Obvious sources is to check angle_min in functions ThreadLocalize::init and ThreadLocalize::eventLoop. And then rotate ranges vector

std::rotate(ranges.begin(), ranges.begin() + (int)round(M_PI / inc), ranges.end());

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