Skip to content

Out of range error with structured light sensor processor #14

@KirillMouraviev

Description

@KirillMouraviev

Hi,
I tried to launch GEM on RGB-D input with structured light sensor processor and faced with "out of range" error:
Снимок экрана от 2021-12-27 16-20-06
My sensor processor config is as follows:

sensor_processor/type: structured_light
sensor_processor/cutoff_min_depth: 0.2
sensor_processor/cutoff_max_depth: 3.25
sensor_processor/normal_factor_a: 0.000611
sensor_processor/normal_factor_b:  0.003587
sensor_processor/normal_factor_c: 0.3515
sensor_processor/normal_factor_d: 0
sensor_processor/normal_factor_e: 1
sensor_processor/lateral_factor: 0.01576

Analyzing the code, I have found the reason for this error. It occurs because readcomputerparam function of SensorProcessorBase class takes params such as min_radius, beam_constant, and beam_angle (seem like params related to laser sensors only).
Снимок экрана от 2021-12-27 16-33-12

However, readParameters functions in SensorProcessorBase class and StructuredLightSensorProcessor class do not read these parameters.
Снимок экрана от 2021-12-27 16-43-39

Снимок экрана от 2021-12-27 16-34-30

Could you say, what is the best way to fix this bug and run GEM on RGB-D input data?

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