-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Support odometry velocity in body and local frame #13934
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2566c18
to
2da445d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. NB: needs ECL merged first.
2da445d
to
4f03d0b
Compare
Codecov Report
@@ Coverage Diff @@
## master #13934 +/- ##
==========================================
- Coverage 52.97% 52.91% -0.07%
==========================================
Files 605 605
Lines 51349 51354 +5
==========================================
- Hits 27202 27172 -30
- Misses 24147 24182 +35
|
NOTE: Last testflights after rebase showed strange behavior. But could also be the vehicle itself. Please fly test this again before merging. |
@kamilritz are you able to rebase and take this further? |
@TSC21 Rebasing is not a problem, but I am not able to test it myself. |
@kamilritz ok rebase should be enough for now. Can you do that? I will sync with @jkflying regarding how this can be tested. |
@TSC21 Ok, I will start refactoring as soon as we have a solution for the testing. |
@TSC21 is there some way we could do ground-truth VIO in SITL? I'm happy with this PR, but we knew it was working before and there is no test coverage, so I don't want to accidentally break something. |
@jkflying we seemed to have that before but it looks like it was removed - 6a4a4bd#diff-436758762aea1e43c9654faf66315930L42-L43. |
I think there still is some basic testing: https://github.com/PX4/Firmware/blob/master/test/mavsdk_tests/configs/sitl.json#L18 |
Considering the current issues I'm happy to merge this based on the SITL tests. I don't think it's realistic to get better testing than that for now. |
I just remember that the last test I did on a real platform, did not went well. And there was not enough time left to investigate why. Based on that I am a bit hesitant to get this in without further testing a real platform. |
We found that this was due to a problem on the vehicle, so that doesn't give any information to whether this PR works or not 🙂 |
Nice. I will rebase it then. |
Rebased the PR and reopened it here: #14703 |
At the moment we expect the external vision's velocity to be expressed in world/local frame. This PR allows for the vision velocity also being expressed in body frame. For this a field is added to the vehicle_odometry message that stores the frame in which the velocity is expressed;
Related ECL PR: PX4/PX4-ECL#708
Solving issue: #13935
FYI @nicovanduijn @bresch @jkflying