Skip to content
Snippets Groups Projects

Implement new TrackState EDM used in KF

Merged Paul Gessinger requested to merge local_trajectory into master
1 file
+ 25
2
Compare changes
  • Side-by-side
  • Inline
@@ -302,11 +302,22 @@ namespace detail_lt {
return m_data.iuncalibrated != IndexData::kInvalid;
}
/// Uncalibrated measurement in the form of a source link
/// Uncalibrated measurement in the form of a source link. Const version
/// @return The uncalibrated measurement source link
const SourceLink&
uncalibrated() const;
/// Uncalibrated measurement in the form of a source link. Mutable version
/// @note This overload is only available if @c ReadOnly is false
/// @return The uncalibrated measurement source link
template <bool RO = ReadOnly, typename = std::enable_if_t<!RO>>
SourceLink&
uncalibrated()
{
assert(m_data.iuncalibrated != IndexData::kInvalid);
return m_traj.m_sourceLinks[m_data.iuncalibrated];
}
/// Check if the point has an associated calibrated measurement.
/// @return Whether it is set
bool
@@ -315,12 +326,24 @@ namespace detail_lt {
return m_data.icalibrated != IndexData::kInvalid;
}
/// The source link of the calibrated measurement
/// The source link of the calibrated measurement. Const version
/// @note This does not necessarily have to be the uncalibrated source link.
/// @return The source link
const SourceLink&
calibratedSourceLink() const;
/// The source link of the calibrated measurement. Mutable version
/// @note This does not necessarily have to be the uncalibrated source link.
/// @note This overload is only available if @c ReadOnly is false
/// @return The source link
template <bool RO = ReadOnly, typename = std::enable_if_t<!RO>>
SourceLink&
calibratedSourceLink()
{
assert(m_data.icalibratedsourcelink != IndexData::kInvalid);
return m_traj.m_sourceLinks[m_data.icalibratedsourcelink];
}
/// Full calibrated measurement vector. Might contain additional zeroed
/// dimensions.
/// @return The measurement vector
Loading