39 #ifndef MEASUREMENT_BUFFER_H_ 40 #define MEASUREMENT_BUFFER_H_ 46 #include <pcl/filters/approximate_voxel_grid.h> 58 #include <sensor_msgs/PointCloud2.h> 59 #include <geometry_msgs/Quaternion.h> 61 #include <boost/thread.hpp> 67 typedef std::list<observation::MeasurementReading>::iterator
readings_iter;
75 const double& observation_keep_time, \
76 const double& expected_update_rate, \
77 const double& min_obstacle_height, \
78 const double& max_obstacle_height, \
79 const double& obstacle_range, \
81 const std::string& global_frame, \
82 const std::string& sensor_frame, \
83 const double& tf_tolerance, \
84 const double& min_d, \
85 const double& max_d, \
87 const double& vFOVPadding, \
89 const double& decay_acceleration, \
90 const bool& marking, \
91 const bool& clearing, \
92 const double& voxel_size, \
93 const bool& voxel_filter, \
94 const bool& enabled, \
95 const bool& clear_buffer_after_reading, \
105 void GetReadings(std::vector<observation::MeasurementReading>& observations);
140 #endif // MEASUREMENT_BUFFER_H_ void GetReadings(std::vector< observation::MeasurementReading > &observations)
void RemoveStaleObservations(void)
void BufferPCLCloud(const pcl::PointCloud< pcl::PointXYZ > &cloud)
double _vertical_fov_padding
pcl::PointCloud< pcl::PointXYZ >::Ptr point_cloud_ptr
bool UpdatedAtExpectedRate(void) const
void SetEnabled(const bool &enabled)
const ros::Duration _observation_keep_time
std::list< observation::MeasurementReading > _observation_list
void ResetLastUpdatedTime(void)
boost::recursive_mutex _lock
bool ClearAfterReading(void)
double _min_obstacle_height
void ResetAllMeasurements(void)
std::string _global_frame
bool _clear_buffer_after_reading
bool IsEnabled(void) const
tf::TransformListener & _tf
double _decay_acceleration
double _max_obstacle_height
const ros::Duration _expected_update_rate
std::string _sensor_frame
void BufferROSCloud(const sensor_msgs::PointCloud2 &cloud)
MeasurementBuffer(const std::string &topic_name, const double &observation_keep_time, const double &expected_update_rate, const double &min_obstacle_height, const double &max_obstacle_height, const double &obstacle_range, tf::TransformListener &tf, const std::string &global_frame, const std::string &sensor_frame, const double &tf_tolerance, const double &min_d, const double &max_d, const double &vFOV, const double &vFOVPadding, const double &hFOV, const double &decay_acceleration, const bool &marking, const bool &clearing, const double &voxel_size, const bool &voxel_filter, const bool &enabled, const bool &clear_buffer_after_reading, const ModelType &model_type)
std::list< observation::MeasurementReading >::iterator readings_iter