Skip to content

distance sensor values are color dependent #11

@MasterOfRespawn

Description

@MasterOfRespawn

The distance sensors are based on webots DistanceSensor with the type infra-red.
Infra red sensors in webots have the redColorSensitivity attribute which defaults to 1.
This makes their returned values dependent on the surface color of the object they are detecting.
As the obstacle's gray color contains a different red value than the wall's cyan, the measured distance differs between the two.
This prevents proper use of the distance sensors as there is no reliable way of validating the sensor's return value.

This could be fixed by changing the sensor type to generic or by setting redColorSensitivity to 0.

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