00001 #include "arm_3d_cb_calib/calib_3d_cbs.h" 00002 00003 using namespace arm_3d_cb_calib; 00004 00005 int main(int argc, char* argv[]) 00006 { 00007 int num_kinects = 3; 00008 int num_ees = 12; 00009 CBCalibProblem prob(num_kinects, 0.03, 5, 6); 00010 CBCalibSolution ground_sol, comp_sol; 00011 generateCBCalibProblem(prob, ground_sol, num_ees); 00012 solveCBCalibProblem(prob, comp_sol); 00013 for(int i=0;i<num_kinects;i++) 00014 (comp_sol.kinect_T_base_poses[i].inverse() * ground_sol.kinect_T_base_poses[i]).print(); 00015 (comp_sol.cb_T_ee_pose.inverse() * ground_sol.cb_T_ee_pose).print(); 00016 00017 return 0; 00018 }