Global layer timeout topic with height

Updated the obstacle timeout so that you can specify to clear old obstacles based on the topic

Enable this by setting the following for each sensor for which you require the obstacles to timeout (this only works for global maps) 
e.g.
bump: { clear_old: true, max_obstacle_persistance: 3.0}

Time is in seconds.

Option to enable height checking before clearing obstacle

set check_height_before_clearing : true in the voxel layer 
outdated output


On Sun, Aug 24, 2014 at 10:14 PM, Kaijen Hsiao <notifications@github.com>
wrote:

> In costmap_2d/plugins/voxel_layer.cpp:
>
> > +    }
> > +  }
> > +  return values;
> > +}
> > +
> > +void GridmapLocations::clearObstacleTime(const CostMapList &list, unsigned char* costmap_,
> > +                                         double* min_x, double* min_y,
> > +                                         double* max_x, double* max_y){
> > +  double *topic_utime =  get_values(list.topic);
> > +  double list_time_sec = list.obs_timestamp / 1.0e6;
> > +
> > +  std::vector<double *> other_layer_values;
> > +  if(check_other_topics_before_clearing_){
> > +    other_layer_values = getOtherTopicValues(list.topic);
> > +    if(other_layer_values.size() > 0){
> > +      ROS_DEBUG("[%d] topics found at same height", (int) other_layer_values.size());
>
> what does height have to do with it?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/bosch-ros-pkg/navigation/pull/18/files#r16642367>.
>