@@ -132,16 +132,12 @@ bool MsckfVio::loadParameters() {
132
132
Isometry3d T_imu_cam0 = utils::getTransformEigen (nh, " cam0/T_cam_imu" );
133
133
Isometry3d T_cam0_imu = T_imu_cam0.inverse ();
134
134
135
- Isometry3d T_imu_cam1 = utils::getTransformEigen (nh, " cam1/T_cam_imu" );
136
- Isometry3d T_cam1_imu = T_imu_cam1.inverse ();
137
-
138
- Isometry3d T_body_imu = utils::getTransformEigen (nh, " T_imu_body" );
139
-
140
- // CAMState::T_imu_cam0 = T_cam0_imu.inverse();
141
135
state_server.imu_state .R_imu_cam0 = T_cam0_imu.linear ().transpose ();
142
136
state_server.imu_state .t_cam0_imu = T_cam0_imu.translation ();
143
- CAMState::T_cam0_cam1 = T_imu_cam1 * T_cam0_imu;
144
- IMUState::T_imu_body = T_body_imu.inverse ();
137
+ CAMState::T_cam0_cam1 =
138
+ utils::getTransformEigen (nh, " cam1/T_cn_cnm1" );
139
+ IMUState::T_imu_body =
140
+ utils::getTransformEigen (nh, " T_imu_body" ).inverse ();
145
141
146
142
// Maximum number of camera states to be stored
147
143
nh.param <int >(" max_cam_state_size" , max_cam_state_size, 30 );
@@ -172,8 +168,8 @@ bool MsckfVio::loadParameters() {
172
168
ROS_INFO (" initial extrinsic translation cov: %f" ,
173
169
extrinsic_translation_cov);
174
170
175
- cout << T_imu_cam1 .linear () << endl;
176
- cout << T_imu_cam1 .translation ().transpose () << endl;
171
+ cout << T_imu_cam0 .linear () << endl;
172
+ cout << T_imu_cam0 .translation ().transpose () << endl;
177
173
178
174
ROS_INFO (" max camera state #: %d" , max_cam_state_size);
179
175
ROS_INFO (" ===========================================" );
0 commit comments