Go to the documentation of this file.
11 std::cerr <<
"\nUSAGE: " <<
self <<
" spherical_scan.graph (reference file to compare, required)\n\n";
32 int main(
int argc,
char** argv) {
37 std::string filename = std::string(argv[1]);
47 point3d point_on_surface (4.01f, 0.01f, 0.01f);
52 for (
int i=-50; i<51; i++) {
53 for (
int j=-50; j<51; j++) {
54 point3d rotated = point_on_surface;
60 pose6d origin(1.0, 0, -0.5, 0, 0, 0);
66 std::cout <<
"Comparing ScanGraph with reference file at " << filename << std::endl;
75 for (
size_t i = 0; i < scanNode->
scan->
size(); ++i){
82 std::cout <<
"Testing ScanGraph I/O" << std::endl;
99 for (
size_t i = 0; i < scanNode->
scan->
size(); ++i){
115 cout <<
"Test done." << endl;
void comparePose(const pose6d &first, const pose6d &sec)
pose6d pose
6D pose from which the scan was performed
void push_back(float x, float y, float z)
Vector3 & rotate_IP(double roll, double pitch, double yaw)
#define EXPECT_TRUE(args)
This class represents a three-dimensional vector.
#define EXPECT_FLOAT_EQ(a, b)
void printUsage(char *self)
int main(int argc, char **argv)
ScanNode * addNode(Pointcloud *scan, pose6d pose)
std::ostream & writeBinary(std::ostream &s) const
This class represents a tree-dimensional pose of an object.
void comparePoint(const point3d &first, const point3d &sec)
virtual void insertPointCloud(const Pointcloud &scan, const octomap::point3d &sensor_origin, double maxrange=-1., bool lazy_eval=false, bool discretize=false)
bool writeBinary(const std::string &filename)
Vector3 & trans()
Translational component.
std::istream & readBinary(std::ifstream &s)
octomap
Author(s): Kai M. Wurm
, Armin Hornung
autogenerated on Tue Dec 12 2023 03:39:41