glim icon indicating copy to clipboard operation
glim copied to clipboard

Best Way for Setting the translation of init_T_world_imu

Open qiayuanl opened this issue 7 months ago • 3 comments

I am trying to integrate this odom into another control stack.

I wonder what the best way is to set the translation of init_T_world_imu, but still preserve the functionality of InitialStateEstimation (orientation initialization)

According to the code here, for now, if I set the init_T_world_imu, both translation and rotation are settled, and none of the InitialStateEstimation will be run.

qiayuanl avatar Jul 02 '25 22:07 qiayuanl

The current implementation requires specifying both the translation and rotation of the initial IMU pose. Why you want to specify only the translation?

koide3 avatar Jul 07 '25 04:07 koide3

Let's say I have a legged robot, when it lies on the ground, I know the height of the lidar, but I still want to have the orientation initialized automatically.

qiayuanl avatar Jul 08 '25 00:07 qiayuanl

OK, I think you need to slightly change the code in initial_state_estimation.cpp. Here is the line that sets the initial sensor pose.

koide3 avatar Jul 16 '25 07:07 koide3