NASA Astrobee Robot Software  0.19.1
Flight software for the Astrobee robots operating inside the International Space Station.
pose_node_adder_params.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 NODE_ADDERS_POSE_NODE_ADDER_PARAMS_H_
19 #define NODE_ADDERS_POSE_NODE_ADDER_PARAMS_H_
20 
25 #include <node_adders/utilities.h>
26 
27 #include <gtsam/geometry/Pose3.h>
28 
29 #include <boost/serialization/serialization.hpp>
30 
31 namespace node_adders {
32 struct PoseNodeAdderParams : public TimestampedNodeAdderParams<gtsam::Pose3> {
34  const gtsam::Vector6 pose_prior_noise_sigmas((gtsam::Vector(6) << starting_prior_translation_stddev,
38  .finished());
39  const gtsam::SharedNoiseModel pose_noise_model = localization_common::Robust(
40  gtsam::noiseModel::Diagonal::Sigmas(Eigen::Ref<const Eigen::VectorXd>(pose_prior_noise_sigmas)), huber_k);
41  start_noise_models.emplace_back(pose_noise_model);
42  }
43 
47 
48  private:
49  // Serialization function
51  template <class ARCHIVE>
52  void serialize(ARCHIVE& ar, const unsigned int /*version*/) {
53  ar& BOOST_SERIALIZATION_BASE_OBJECT_NVP(Base);
54  ar& BOOST_SERIALIZATION_NVP(starting_prior_translation_stddev);
55  ar& BOOST_SERIALIZATION_NVP(starting_prior_quaternion_stddev);
56  }
57 };
58 } // namespace node_adders
59 
60 #endif // NODE_ADDERS_POSE_NODE_ADDER_PARAMS_H_
node_adders::PoseNodeAdderParams::starting_prior_translation_stddev
double starting_prior_translation_stddev
Definition: pose_node_adder_params.h:45
node_adders::PoseNodeAdderParams::access
friend class boost::serialization::access
Definition: pose_node_adder_params.h:50
node_adders::PoseNodeAdderParams
Definition: pose_node_adder_params.h:32
utilities.h
node_adders
Definition: between_factor_node_adder_model.h:35
node_adders::PoseNodeAdderParams::SetStartNoiseModels
void SetStartNoiseModels()
Definition: pose_node_adder_params.h:33
utilities.h
node_adders::TimestampedNodeAdderParams< gtsam::Pose3 >::huber_k
double huber_k
Definition: timestamped_node_adder_params.h:35
node_adders::PoseNodeAdderParams::starting_prior_quaternion_stddev
double starting_prior_quaternion_stddev
Definition: pose_node_adder_params.h:46
time.h
node_adders::TimestampedNodeAdderParams< gtsam::Pose3 >::start_noise_models
std::vector< gtsam::SharedNoiseModel > start_noise_models
Definition: timestamped_node_adder_params.h:34
localization_common::Robust
gtsam::noiseModel::Robust::shared_ptr Robust(const gtsam::SharedNoiseModel &noise, const double huber_k)
Definition: utilities.cc:334
node_adders::TimestampedNodeAdderParams
Definition: timestamped_node_adder_params.h:32
timestamped_node_adder_params.h
pose_with_covariance_measurement.h