Skip to content

Commit

Permalink
Ginan v1.1.1-alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
umma-zannat committed Sep 29, 2021
1 parent 598cfff commit 510800b
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 8 deletions.
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

## [1.1.1] - 2021-09-29
### Added
### Changed
### Deprecated
### Removed
### Fixed
- Eigen v3.4 compilation problem fix
### Security

## [1.1.0] - 2021-??-??
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security

## [1.0.0] - 2021-07-13
### First Release
8 changes: 4 additions & 4 deletions src/cpp/common/algebra.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ bool KFState::chiQC(
VectorXd& xp) ///< Post filtered state vector
{
auto& H = kfMeas.A;
auto W = kfMeas.W(Eigen::all, 0);
auto W = kfMeas.W(all, 0);

VectorXd& y = kfMeas.Y;
VectorXd v = y - H * xp;
Expand Down Expand Up @@ -1064,7 +1064,7 @@ void KFState::leastSquareInitStates(
}

//get the subset of the measurement matrix that applies to the uninitialised states
auto subsetA = kfMeas.A(Eigen::all, newStateIndicies);
auto subsetA = kfMeas.A(all, newStateIndicies);

//find the subset of measurements that are required for the initialisation
auto usedMeas = subsetA.rowwise().any();
Expand Down Expand Up @@ -1109,7 +1109,7 @@ void KFState::leastSquareInitStates(
//copy in the required measurements from the old set
leastSquareMeas.Y.head (measCount) = kfMeas.Y(leastSquareMeasIndicies);
leastSquareMeas.R.head (measCount) = kfMeas.R(leastSquareMeasIndicies);
leastSquareMeas.A.topRows (measCount) = kfMeas.A(leastSquareMeasIndicies, Eigen::all);
leastSquareMeas.A.topRows (measCount) = kfMeas.A(leastSquareMeasIndicies, all);

//append any new pseudo measurements to the end
for (auto& [state, boool] : pseudoMeasStates)
Expand All @@ -1135,7 +1135,7 @@ void KFState::leastSquareInitStates(
KFMeas leastSquareMeasSubs;
leastSquareMeasSubs.Y = leastSquareMeas.Y;
leastSquareMeasSubs.R = leastSquareMeas.R;
leastSquareMeasSubs.A = leastSquareMeas.A(Eigen::all, usedCols);
leastSquareMeasSubs.A = leastSquareMeas.A(all, usedCols);

//invert measurement noise matrix to get a weight matrix
leastSquareMeasSubs.W = (1 / leastSquareMeasSubs.R.array()).matrix();
Expand Down
8 changes: 4 additions & 4 deletions src/cpp/common/algebra.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,10 @@ struct KFMeas

obsKeys.erase(obsKeys.begin() + index);

Y = ( Y(keepIndices) ).eval();
V = ( V(keepIndices) ).eval();
R = ( R(keepIndices) ).eval();
A = ( A(keepIndices, Eigen::all) ).eval();
Y = ( Y(keepIndices) ).eval();
V = ( V(keepIndices) ).eval();
R = ( R(keepIndices) ).eval();
A = ( A(keepIndices, all) ).eval();
}
};

Expand Down
1 change: 1 addition & 0 deletions src/cpp/common/eigenIncluder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ using Eigen::Map;
using Eigen::Quaterniond;
using Eigen::Triplet;
using Eigen::ArrayXd;
using Eigen::placeholders::all;
typedef Eigen::Array<bool,Eigen::Dynamic,1> ArrayXb;

template <typename Type, int Size>
Expand Down

0 comments on commit 510800b

Please sign in to comment.