Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed the problem that /odom/twist is too small #1001

Open
wants to merge 2 commits into
base: humble-devel
Choose a base branch
from

Conversation

firefly1250
Copy link

This fixes #977 .

Problem

In the duration calculation, only the "nanosec" part of "current time" was used and "sec" part was ignored. On the other hand both "nanosec" and "sec" part of "last time" were used correctly.

Therefore, duration became a negative value with a large absolute value, and as a result, the twist had a small absolute value with the opposite sign.

Solution

Fixed calculation of duration to be correct.

@firefly1250 firefly1250 changed the title fixed the problem that /odom/twist is too small #977 fixed the problem that /odom/twist is too small Jan 2, 2024
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.

1 participant