// // Created by zx on 2021/5/11. // #ifndef ROBOT_CONTROL_FEATURE_EXTRA_SRC_POINT_TOOL_HPP_ #define ROBOT_CONTROL_FEATURE_EXTRA_SRC_POINT_TOOL_HPP_ #include #include #include #include #include #include #include #include #include bool string2point(std::string str, pcl::PointXYZ &point); pcl::PointCloud::Ptr ReadTxtCloud(std::string file); void save_cloud_txt(pcl::PointCloud::Ptr cloud, std::string file); void save_cloud_txt(pcl::PointCloud::Ptr cloud, std::string file); double distance(cv::Point2f p1, cv::Point2f p2); bool isRect(std::vector &points); std::vector::Ptr> segmentation(pcl::PointCloud::Ptr sor_cloud); void rpy_to_rotation_matrix(); void rotation_matrix_to_rpy(); void reverse_test(); bool read_pointcloud(std::string filename, pcl::PointCloud::Ptr &pointcloud); #endif //ROBOT_CONTROL_FEATURE_EXTRA_SRC_POINT_TOOL_HPP_