MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / main

Function main

opt_calibration/src/opt_calibration_node.cpp:507–527  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

505} /* namespace open_ptrack */
506
507int main(int argc,
508 char ** argv)
509{
510 ros::init(argc, argv, "opt_calibration");
511 ros::NodeHandle node_handle("~");
512
513 try
514 {
515 open_ptrack::opt_calibration::OPTCalibrationNode calib_node(node_handle);
516 if (not calib_node.initialize())
517 return 1;
518 calib_node.spin();
519 }
520 catch (std::runtime_error & error)
521 {
522 ROS_FATAL("Calibration error: %s", error.what());
523 return 2;
524 }
525
526 return 0;
527}

Callers

nothing calls this directly

Calls 3

whatMethod · 0.80
initializeMethod · 0.45
spinMethod · 0.45

Tested by

no test coverage detected