Skip to content

Off-by-one error in constructing/populating LaserScan message ? #14

@moooeeeep

Description

@moooeeeep

It seems that either you should also skip angles that equal the value of angle_max here:

Or make the number of range readings one item larger here:

Otherwise you'll have an out-of-bounds array element access when one day there is an angle of the value angle_max.

Note that I have posted a question here about how many values the sensor_msgs::LaserScan should actually contain, because I'm not sure if angle_max really is supposed to be excluded from the range of values.

Metadata

Metadata

Assignees

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