예제 #1
0
 int OnExit()
 {
   std::cout << "I shut myself down!" << std::endl;
   if(p_bag) { p_bag->close(); delete p_bag; }
   delete p_view;
   return 0;
 }
int main(int argc, char** argv) {
  ros::init(argc, argv, "pointRecorder_node");
  ft = 1;
  ptRecorder joy_teleop_node;
  ros::spin();
  //Close bag
  bag.close();
  return 0;
}
예제 #3
0
void handle_cmd(android_app *app, int32_t c) {
    if (c == APP_CMD_LOST_FOCUS) {
        bag.close();
    }
}
 ~PointCloudCapturer()
 {
   bag_.close();
   delete point_head_client_;
 }