Skip to content
Snippets Groups Projects
Commit f775d717 authored by Martí Morta Garriga's avatar Martí Morta Garriga
Browse files

TO TEST Afegit un threshold per tal d'evitar problemes amb distancies masssa petites del urg_node

parent 20c5f0da
No related branches found
No related tags found
No related merge requests found
......@@ -174,7 +174,7 @@ float SafeCmdAlgNode::compute_max_velocity_(const sensor_msgs::LaserScan::ConstP
ROS_DEBUG_STREAM("compute_max_velocity frame: " << scan->header.frame_id <<
" min range: " << min_range << " at " << min_pos << " of " << scan->ranges.size());
if (min_range >= min_dist_)
if (min_range >= min_dist_ && min_range > 0.02)
max_velocity = min_range / collision_time_;
return max_velocity;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment