Skip to content

Bugfix/imu angle#13

Merged
yjHuang251 merged 4 commits intodevelopfrom
bugfix/imu-angle
Feb 8, 2026
Merged

Bugfix/imu angle#13
yjHuang251 merged 4 commits intodevelopfrom
bugfix/imu-angle

Conversation

@1000lai
Copy link
Collaborator

@1000lai 1000lai commented Feb 6, 2026

Fix:
1.double time error and use nanoseconds()
2.prevent repeated wheel delta integration in imu callback

Result:
local_pose error within 2cm

this->first_odom_cb = false;
return;
}
double odom_time = stamp.nanoseconds() * 1e-9;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's in wheel callback so actually the variable name should be wheel_time

}
double odom_time = stamp.nanoseconds() * 1e-9;

double dt = odom_time - this->prev_odom_time;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also replace all the variables from odom to wheel. the reason is that odometry is a method which calculates relative pose tracking and is not limited to wheel information.

Copy link
Collaborator

@yjHuang251 yjHuang251 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well done. i will approve this pull request but check the review for some minor modifications. @1000lai @Ramie119

@yjHuang251 yjHuang251 merged commit aa5ed12 into develop Feb 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants