Skip to content
Snippets Groups Projects
Commit f9656e14 authored by Malte Roosen's avatar Malte Roosen
Browse files

Catch error case of obstacleMapDistance=0

parent 32032a19
No related branches found
No related tags found
No related merge requests found
...@@ -531,6 +531,11 @@ void HomerNavigationNode::performNextMove() { ...@@ -531,6 +531,11 @@ void HomerNavigationNode::performNextMove() {
(float)(m_explorer->getObstacleTransform()->getValue( (float)(m_explorer->getObstacleTransform()->getValue(
robotPixel.x(), robotPixel.y()) * robotPixel.x(), robotPixel.y()) *
m_resolution)); m_resolution));
if (obstacleMapDistance <= 0.00001) {
ROS_ERROR_STREAM(
"obstacleMapDistance is below threshold to 0 setting to 1");
obstacleMapDistance = 1;
}
} }
float max_move_distance_speed = float max_move_distance_speed =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment