NASA Astrobee Robot Software
0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
measurement_based_timestamped_node_adder_model.h
Go to the documentation of this file.
1
/* Copyright (c) 2017, United States Government, as represented by the
2
* Administrator of the National Aeronautics and Space Administration.
3
*
4
* All rights reserved.
5
*
6
* The Astrobee platform is licensed under the Apache License, Version 2.0
7
* (the "License"); you may not use this file except in compliance with the
8
* License. You may obtain a copy of the License at
9
*
10
* http://www.apache.org/licenses/LICENSE-2.0
11
*
12
* Unless required by applicable law or agreed to in writing, software
13
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
15
* License for the specific language governing permissions and limitations
16
* under the License.
17
*/
18
19
#ifndef NODE_ADDERS_MEASUREMENT_BASED_TIMESTAMPED_NODE_ADDER_MODEL_H_
20
#define NODE_ADDERS_MEASUREMENT_BASED_TIMESTAMPED_NODE_ADDER_MODEL_H_
21
22
#include <
node_adders/timestamped_node_adder_model.h
>
23
24
#include <gtsam/inference/Key.h>
25
#include <gtsam/nonlinear/NonlinearFactorGraph.h>
26
27
#include <vector>
28
29
namespace
node_adders
{
30
// Node adder model that uses provided measurements to generate nodes and relative factors.
31
template
<
typename
MeasurementType,
typename
NodeType,
typename
NodesType>
32
class
MeasurementBasedTimestampedNodeAdderModel
:
public
TimestampedNodeAdderModel
<NodeType, NodesType> {
33
public
:
34
explicit
MeasurementBasedTimestampedNodeAdderModel
(
const
TimestampedNodeAdderModelParams
& params)
35
:
TimestampedNodeAdderModel
<NodeType, NodesType>(params) {}
36
virtual
~MeasurementBasedTimestampedNodeAdderModel
() =
default
;
37
virtual
void
AddMeasurement
(
const
MeasurementType& measurement) = 0;
38
virtual
void
RemoveMeasurements
(
const
localization_common::Time
oldest_allowed_time) = 0;
39
};
40
}
// namespace node_adders
41
42
#endif // NODE_ADDERS_MEASUREMENT_BASED_TIMESTAMPED_NODE_ADDER_MODEL_H_
node_adders::MeasurementBasedTimestampedNodeAdderModel::AddMeasurement
virtual void AddMeasurement(const MeasurementType &measurement)=0
node_adders
Definition:
between_factor_node_adder_model.h:35
node_adders::MeasurementBasedTimestampedNodeAdderModel::RemoveMeasurements
virtual void RemoveMeasurements(const localization_common::Time oldest_allowed_time)=0
node_adders::TimestampedNodeAdderModel
Definition:
timestamped_node_adder_model.h:34
node_adders::MeasurementBasedTimestampedNodeAdderModel::~MeasurementBasedTimestampedNodeAdderModel
virtual ~MeasurementBasedTimestampedNodeAdderModel()=default
node_adders::MeasurementBasedTimestampedNodeAdderModel::MeasurementBasedTimestampedNodeAdderModel
MeasurementBasedTimestampedNodeAdderModel(const TimestampedNodeAdderModelParams ¶ms)
Definition:
measurement_based_timestamped_node_adder_model.h:34
node_adders::MeasurementBasedTimestampedNodeAdderModel
Definition:
measurement_based_timestamped_node_adder_model.h:32
node_adders::TimestampedNodeAdderModelParams
Definition:
timestamped_node_adder_model_params.h:24
localization_common::Time
double Time
Definition:
time.h:23
timestamped_node_adder_model.h