-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
[ECL] Moving towards multi-sensor-per-same-measurement fusion #13127
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
98b95ad
ECL: Clean velPos logging, deprecate ekf2_innovations msg
kamilritz f47e847
Reorder innovations in LPE
kamilritz 48f892a
Log height innovation sensor specific
kamilritz db6c85f
Set not yet supported estimator_innovations fields to zero
kamilritz 862c1ef
Update to merged ECL commit
kamilritz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#! /usr/bin/env python3 | ||
""" | ||
function collection for handling different versions of log files | ||
""" | ||
from pyulog import ULog | ||
|
||
from analysis.detectors import PreconditionError | ||
|
||
def get_output_tracking_error_message(ulog: ULog) -> str: | ||
""" | ||
return the name of the message containing the output_tracking_error | ||
:param ulog: | ||
:return: str | ||
""" | ||
for elem in ulog.data_list: | ||
if elem.name == "ekf2_innovations": | ||
return "ekf2_innovations" | ||
if elem.name == "estimator_innovations": | ||
return "estimator_status" | ||
|
||
raise PreconditionError("Could not detect the message containing the output tracking error") | ||
|
||
def get_innovation_message(ulog: ULog, topic: str = 'innovation') -> str: | ||
""" | ||
return the name of the innovation message (old: ekf2_innovations; new: estimator_innovations) | ||
:param ulog: | ||
:return: str | ||
""" | ||
if topic == 'innovation': | ||
for elem in ulog.data_list: | ||
if elem.name == "ekf2_innovations": | ||
return "ekf2_innovations" | ||
if elem.name == "estimator_innovations": | ||
return "estimator_innovations" | ||
if topic == 'innovation_variance': | ||
for elem in ulog.data_list: | ||
if elem.name == "ekf2_innovations": | ||
return "ekf2_innovations" | ||
if elem.name == "estimator_innovations": | ||
return "estimator_innovations" | ||
if topic == 'innovation_test_ratio': | ||
for elem in ulog.data_list: | ||
if elem.name == "ekf2_innovations": | ||
return "ekf2_innovations" | ||
if elem.name == "estimator_innovations": | ||
return "estimator_innovations" | ||
|
||
raise PreconditionError("Could not detect the message") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
uint64 timestamp # time since system start (microseconds) | ||
|
||
# GPS | ||
float32[2] gps_hvel # horizontal GPS velocity innovation (m/sec) and innovation variance ((m/sec)**2) | ||
float32 gps_vvel # vertical GPS velocity innovation (m/sec) and innovation variance ((m/sec)**2) | ||
float32[2] gps_hpos # horizontal GPS position innovation (m) and innovation variance (m**2) | ||
float32 gps_vpos # vertical GPS position innovation (m) and innovation variance (m**2) | ||
|
||
# External Vision | ||
float32[2] ev_hvel # horizontal external vision velocity innovation (m/sec) and innovation variance ((m/sec)**2) | ||
float32 ev_vvel # vertical external vision velocity innovation (m/sec) and innovation variance ((m/sec)**2) | ||
float32[2] ev_hpos # horizontal external vision position innovation (m) and innovation variance (m**2) | ||
float32 ev_vpos # vertical external vision position innovation (m) and innovation variance (m**2) | ||
|
||
# Fake Position and Velocity | ||
float32[2] fake_hvel # fake horizontal velocity innovation (m/s) and innovation variance ((m/s)**2) | ||
float32 fake_vvel # fake vertical velocity innovation (m/s) and innovation variance ((m/s)**2) | ||
float32[2] fake_hpos # fake horizontal position innovation (m) and innovation variance (m**2) | ||
float32 fake_vpos # fake vertical position innovation (m) and innovation variance (m**2) | ||
|
||
# Height sensors | ||
float32 rng_vpos # range sensor height innovation (m) and innovation variance (m**2) | ||
float32 baro_vpos # barometer height innovation (m) and innovation variance (m**2) | ||
|
||
# Auxiliary velocity | ||
float32[2] aux_hvel # horizontal auxiliar velocity innovation from landing target measurement (m/sec) and innovation variance ((m/sec)**2) | ||
float32 aux_vvel # vertical auxiliar velocity innovation from landing target measurement (m/sec) and innovation variance ((m/sec)**2) | ||
|
||
# Optical flow | ||
float32[2] flow # flow innvoation (rad/sec) and innovation variance ((rad/sec)**2) | ||
|
||
# Various | ||
float32 heading # heading innovation (rad) and innovation variance (rad**2) | ||
jkflying marked this conversation as resolved.
Show resolved
Hide resolved
|
||
float32[3] mag_field # earth magnetic field innovation (Gauss) and innovation variance (Gauss**2) | ||
float32[2] drag # drag specific force innovation (m/sec**2) and innovation variance ((m/sec)**2) | ||
float32 airspeed # airspeed innovation (m/sec) and innovation variance ((m/sec)**2) | ||
float32 beta # synthetic sideslip innovation (rad) and innovation variance (rad**2) | ||
float32 hagl # height of ground innovation (m) and innovation variance (m**2) | ||
|
||
# The innovation test ratios are scalar values. In case the field is a vector, | ||
# the test ratio will be put in the first component of the vector. | ||
|
||
# TOPICS estimator_innovations estimator_innovation_variances estimator_innovation_test_ratios |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ecl
updated
from 6b5f01 to 181303
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Put this under its own comment, instead of auxvel?
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.
Going to add this.