MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / initialize

Function initialize

simulation/tools/sim_test_simple.cpp:554–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

552}
553
554void
555initialize(int, char** argv)
556{
557 const GLubyte* version = glGetString(GL_VERSION);
558 std::cout << "OpenGL Version: " << version << std::endl;
559
560 // works well for MIT CSAIL model 3rd floor:
561 // camera_->set(4.04454, 44.9377, 1.1, 0.0, 0.0, -2.00352);
562
563 // works well for MIT CSAIL model 2nd floor:
564 // camera_->set (27.4503, 37.383, 4.30908, 0.0, 0.0654498, -2.25802);
565
566 // works for small files:
567 // camera_->set(-5.0, 0.0, 1.0, 0.0, 0.0, 0.0);
568 camera_->set(1.31762, 0.382931, 1.89533, 0, 0.20944, -9.14989);
569 camera_->setPitch(0.20944); // not sure why this is here:
570 // camera_->set(0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
571
572 std::cout << "About to read: " << argv[1] << std::endl;
573 load_PolygonMesh_model(argv[1]);
574
575 paused_ = false;
576}
577
578int
579main(int argc, char** argv)

Callers 1

mainFunction · 0.70

Calls 2

load_PolygonMesh_modelFunction · 0.70
setMethod · 0.45

Tested by

no test coverage detected