26 #include <gtsam/dllexport.h> 80 static void *&property(std::ios_base &
s);
95 Key key,
const std::string &
s =
"",
101 const KeyFormatter &keyFormatter = DefaultKeyFormatter);
106 const KeyFormatter &keyFormatter = DefaultKeyFormatter);
111 const KeyFormatter &keyFormatter = DefaultKeyFormatter);
114 template<
typename T>
struct traits;
const gtsam::Symbol key('X', 0)
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.
std::vector< T, typename internal::FastDefaultVectorAllocator< T >::type > FastVector
string _multirobotKeyFormatter(Key key)
static bool Equals(const Key &val1, const Key &val2, double tol=1e-8)
static const KeyFormatter DefaultKeyFormatter
string _defaultKeyFormatter(Key key)
Array< int, Dynamic, 1 > v
To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
Point2(* f)(const Point3 &, OptionalJacobian< 2, 3 >)
Array< double, 1, 3 > e(1./3., 0.5, 2.)
std::function< std::string(Key)> KeyFormatter
Typedef for a function to format a key, i.e. to convert it to a string.
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.
void PrintKey(Key key, const string &s, const KeyFormatter &keyFormatter)
Utility function to print one key with optional prefix.
static const gtsam::KeyFormatter MultiRobotKeyFormatter
FastVector< Key > KeyVector
Define collection type once and for all - also used in wrappers.
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 &)