Base b; cout<<"----------------"<<endl; Derived d(b);
运行结果:
1 2 3 4 5 6 7 8 9 10 11 12 13
base constructor ---------------- base copy constructor base constructor base constructor base operator = derived constructor base destructor ---------------- derived destructor base destructor base destructor base destructor
# 保存IMU的数据 # 加速度单位 m/s^2 (not in g's), 角速度单位 rad/sec # # If the covariance of the measurement is known, it should be filled in (if all you know is the # variance of each measurement, e.g. from the datasheet, just put those along the diagonal) # 如果协方差矩阵元素全是0,那么认为是未知协方差。 # If you have no estimate for one of the data elements (e.g. your IMU doesn't produce an orientation # estimate), please set element 0 of the associated covariance matrix to -1 # If you are interpreting this message, please check for a value of -1 in the first element of each # covariance matrix, and disregard the associated estimate.