gtsam
Loading...
Searching...
No Matches
inferenceExceptions.h
Go to the documentation of this file.
1/* ----------------------------------------------------------------------------
2
3 * GTSAM Copyright 2010, Georgia Tech Research Corporation,
4 * Atlanta, Georgia 30332-0415
5 * All Rights Reserved
6 * Authors: Frank Dellaert, et al. (see THANKS for the full author list)
7
8 * See LICENSE for the license information
9
10 * -------------------------------------------------------------------------- */
11
18#pragma once
19
21#include <gtsam/inference/Key.h>
22
23#include <exception>
24#include <string>
25
26namespace gtsam {
27
32class InconsistentEliminationRequested : public std::exception {
33 KeyVector keys_;
34 const KeyFormatter& keyFormatter = DefaultKeyFormatter;
35 mutable std::string message_;
36
37 public:
38 InconsistentEliminationRequested() noexcept {}
39
40 InconsistentEliminationRequested(
41 const KeySet& keys,
43
44 ~InconsistentEliminationRequested() noexcept override {}
45
46 const char* what() const noexcept override;
47};
48} // namespace gtsam
Included from all GTSAM files.
Global functions in a separate testing namespace.
Definition chartTesting.h:28
KeyFormatter DefaultKeyFormatter
Assign default key formatter.
Definition Key.cpp:30
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
Definition Key.h:91
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Definition Key.h:35
Output stream manipulator that will format gtsam::Keys according to the given KeyFormatter,...
Definition Key.h:77