32 #ifndef _TYPES_DECLARATION_H_
33 #define _TYPES_DECLARATION_H_
37 #include <boost/shared_ptr.hpp>
38 #include <boost/bind.hpp>
42 #include <opencv/cv.h>
43 #include <opencv/cxcore.h>
44 #include <opencv/cxcore.hpp>
46 #include <pcl/point_cloud.h>
47 #include <pcl/point_types.h>
49 #define deg2rad(a) (a*M_PI/180.)
50 #define rad2deg(a) (a*180./M_PI)
53 using namespace boost;
128 friend ostream& operator<< (ostream &o,
const s_pose &i)
130 return o << setprecision(4) << fixed
140 double max_x(
const std::vector<t_posePtr>& vec);
141 double min_x(
const std::vector<t_posePtr>& vec);
142 double max_y(
const std::vector<t_posePtr>& vec);
143 double min_y(
const std::vector<t_posePtr>& vec);
void InitRayHistory(ray_history *h_rays)
void AddToHistory(ray_definition *rays, ray_history *h_rays)
double get_m_vl(t_pose &i)
double max_orientation(const std::vector< t_posePtr > &vec)
double max_y(const std::vector< t_posePtr > &vec)
double get_m_phi(t_pose &i)
unsigned int current_size
double get_orientation(t_pose &i)
void CopyRays(ray_config_t *cfg, ray_measurment_t *src, ray_measurment_t *dst)
int Theta2Index(double theta, ray_config_t *config)
boost::shared_ptr< t_pose > t_posePtr
double min_y(const std::vector< t_posePtr > &vec)
double angular_resolution
double get_fps(double dt, t_fps *acc)
bool raw_only
display raw only
void PointCloud2Ray(pcl::PointCloud< pcl::PointXYZ > &point_cloud, ray_definition *dst)
void Pointcloud2Rays(pcl::PointCloud< pcl::PointXYZ > &point_cloud, ray_config_t *config, ray_measurment_t *rays)
double get_phi(t_pose &i)
double min_orientation(const std::vector< t_posePtr > &vec)
double max_x(const std::vector< t_posePtr > &vec)
void InitRayDefinition(ray_definition *src)
void ClearRays(ray_measurment_t *rays, ray_config_t *ray_config)
CvMemStorage * data_storage
void RemoveOverlappingPoints(ray_config_t *config, ray_measurment_t *rays)
This structure contains global flags parameters.
CvMemStorage * range_storage
bool fp_s
first point of the scan
double min_x(const std::vector< t_posePtr > &vec)