Nearest backward observer class. More...
#include <nearest_backward.h>
Public Member Functions | |
NearestBackward (art_observers::ObserversConfig &config) | |
virtual art_msgs::Observation | update (const art_msgs::ArtLanes &local_map, const art_msgs::ArtLanes &obstacles, MapPose pose_) |
~NearestBackward () | |
Private Attributes | |
std::vector< float > | distance_ |
MedianFilter | distance_filter_ |
ros::Time | prev_update_ |
MeanFilter | velocity_filter_ |
Nearest backward observer class.
Definition at line 27 of file nearest_backward.h.
Definition at line 23 of file nearest_backward.cc.
Definition at line 32 of file nearest_backward.cc.
art_msgs::Observation observers::NearestBackward::update | ( | const art_msgs::ArtLanes & | local_map, |
const art_msgs::ArtLanes & | obstacles, | ||
MapPose | pose | ||
) | [virtual] |
Generic observer update function.
Called whenever there are new obstacle data, assuming the local_map is also available.
robot_quad | quadrilateral containing the robot |
local_map | road map lanes within range of the robot |
obstacles | local map quads currently containing obstacles |
pose | current pose of robot |
Implements observers::Observer.
Definition at line 38 of file nearest_backward.cc.
std::vector<float> observers::NearestBackward::distance_ [private] |
Definition at line 39 of file nearest_backward.h.
Definition at line 41 of file nearest_backward.h.
Definition at line 44 of file nearest_backward.h.
Definition at line 42 of file nearest_backward.h.