NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
combined_nav_state_nodes.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 #ifndef NODES_COMBINED_NAV_STATE_NODES_H_
19 #define NODES_COMBINED_NAV_STATE_NODES_H_
20 
23 
24 namespace nodes {
25 class CombinedNavStateNodes : public TimestampedCombinedNodes<localization_common::CombinedNavState> {
27 
28  public:
29  explicit CombinedNavStateNodes(std::shared_ptr<Values> values);
30 
31  // For serialization only
32  CombinedNavStateNodes() = default;
33 
34  private:
35  gtsam::KeyVector AddNode(const localization_common::CombinedNavState& node) final;
36 
37  boost::optional<localization_common::CombinedNavState> GetNode(const gtsam::KeyVector& keys,
38  const localization_common::Time timestamp) const final;
39 
40  // Serialization function
42  template <class Archive>
43  void serialize(Archive& ar, const unsigned int file_version) {
44  ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
45  }
46 };
47 } // namespace nodes
48 
49 #endif // NODES_COMBINED_NAV_STATE_NODES_H_
localization_common::CombinedNavState
Definition: combined_nav_state.h:48
nodes
Definition: combined_nav_state_nodes.h:24
nodes::CombinedNavStateNodes
Definition: combined_nav_state_nodes.h:25
nodes::CombinedNavStateNodes::access
friend class boost::serialization::access
Definition: combined_nav_state_nodes.h:41
nodes::TimestampedCombinedNodes
Definition: timestamped_combined_nodes.h:44
nodes::CombinedNavStateNodes::CombinedNavStateNodes
CombinedNavStateNodes()=default
timestamped_combined_nodes.h
combined_nav_state.h
localization_common::Time
double Time
Definition: time.h:23