26 #include <gtsam/dllexport.h> 80 static void *&property(std::ios_base &
s);
81 static void set_property(std::ios_base &
s,
const KeyFormatter &
f);
82 static KeyFormatter *get_property(std::ios_base &
s);
95 const KeyFormatter& keyFormatter = DefaultKeyFormatter);
99 const KeyFormatter& keyFormatter = DefaultKeyFormatter);
103 "",
const KeyFormatter& keyFormatter = DefaultKeyFormatter);
106 GTSAM_EXPORT
void PrintKeySet(
const KeySet&
keys,
const std::string&
s =
"",
107 const KeyFormatter& keyFormatter = DefaultKeyFormatter);
110 template<
typename T>
struct traits;
void PrintKeyVector(const KeyVector &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
void PrintKeySet(const KeySet &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
Typedefs for easier changing of types.
A thin wrapper around std::list that uses boost's fast_pool_allocator.
Concept check for values that can be used in unit tests.
string _multirobotKeyFormatter(Key key)
static bool Equals(const Key &val1, const Key &val2, double tol=1e-8)
static const KeyFormatter DefaultKeyFormatter
FastMap< Key, int > KeyGroupMap
string _defaultKeyFormatter(Key key)
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
static void Print(const Key &val, const std::string &str="")
A thin wrapper around std::vector that uses a custom allocator.
A thin wrapper around std::map that uses boost's fast_pool_allocator.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
void PrintKey(Key key, const string &s, const KeyFormatter &keyFormatter)
Utility function to print one key with optional prefix.
static const gtsam::KeyFormatter MultiRobotKeyFormatter
A thin wrapper around std::set that uses boost's fast_pool_allocator.
StreamedKey(const Key &key)
void PrintKeyList(const KeyList &keys, const string &s, const KeyFormatter &keyFormatter)
Utility function to print sets of keys with optional prefix.
std::uint64_t Key
Integer nonlinear key type.
GTSAM_EXPORT friend std::ostream & operator<<(std::ostream &, const StreamedKey &)