Skip to content

Add semantic checks to avoid NPE in Mapper.#434

Merged
SteveMacenski merged 1 commit intoSteveMacenski:ros2from
zouyonghao:ros2
Sep 9, 2021
Merged

Add semantic checks to avoid NPE in Mapper.#434
SteveMacenski merged 1 commit intoSteveMacenski:ros2from
zouyonghao:ros2

Conversation

@zouyonghao
Copy link
Contributor

Signed-off-by: zouyonghao yonghaoz1994@gmail.com


Basic Info

Info Please fill out this column
Ticket(s) this addresses #433
Primary OS tested on Ubuntu,
Robotic platform tested on gazebo simulation turtlebot

Description of contribution in a few bullet points

  • Add semantic checks to avoid NPE in Mapper.

Signed-off-by: zouyonghao <yonghaoz1994@gmail.com>
}
node_->get_parameter("max_laser_range", max_laser_range);

if (max_laser_range <= 0) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a real issue you really ran into? This seems like its from a poorly formed laser scan message and it should be fixed by the publisher

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just consider it as a parameter a user can set, and it seems it is not related to scan message...

@SteveMacenski SteveMacenski merged commit 6b31a76 into SteveMacenski:ros2 Sep 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants