-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* move P-init to ekf-derivation script
- Loading branch information
Showing
6 changed files
with
96 additions
and
37 deletions.
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
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
46 changes: 46 additions & 0 deletions
46
src/modules/ekf2/EKF/python/ekf_derivation/generated/range_validation_filter_P_init.h
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,46 @@ | ||
// ----------------------------------------------------------------------------- | ||
// This file was autogenerated by symforce from template: | ||
// function/FUNCTION.h.jinja | ||
// Do NOT modify by hand. | ||
// ----------------------------------------------------------------------------- | ||
|
||
#pragma once | ||
|
||
#include <matrix/math.hpp> | ||
|
||
namespace sym { | ||
|
||
/** | ||
* This function was autogenerated from a symbolic function. Do not modify by hand. | ||
* | ||
* Symbolic function: range_validation_filter_p_init | ||
* | ||
* Args: | ||
* z_var: Scalar | ||
* dist_bottom_var: Scalar | ||
* | ||
* Outputs: | ||
* res: Matrix22 | ||
*/ | ||
template <typename Scalar> | ||
matrix::Matrix<Scalar, 2, 2> RangeValidationFilterPInit(const Scalar z_var, | ||
const Scalar dist_bottom_var) { | ||
// Total ops: 1 | ||
|
||
// Input arrays | ||
|
||
// Intermediate terms (0) | ||
|
||
// Output terms (1) | ||
matrix::Matrix<Scalar, 2, 2> _res; | ||
|
||
_res(0, 0) = z_var; | ||
_res(1, 0) = z_var; | ||
_res(0, 1) = z_var; | ||
_res(1, 1) = dist_bottom_var + z_var; | ||
|
||
return _res; | ||
} // NOLINT(readability/fn_size) | ||
|
||
// NOLINTNEXTLINE(readability/fn_size) | ||
} // namespace sym |
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