Merge pull request #2140 from DrWisdome/formatter-export
Add Multi RobotKeyFormatter as an external variable (Windows)release/4.3a0
commit
e2d3cf585d
|
@ -28,6 +28,7 @@ namespace gtsam {
|
||||||
|
|
||||||
/// Assign default key formatter
|
/// Assign default key formatter
|
||||||
KeyFormatter DefaultKeyFormatter = &_defaultKeyFormatter;
|
KeyFormatter DefaultKeyFormatter = &_defaultKeyFormatter;
|
||||||
|
KeyFormatter MultiRobotKeyFormatter = &_multirobotKeyFormatter;
|
||||||
|
|
||||||
/* ************************************************************************* */
|
/* ************************************************************************* */
|
||||||
string _defaultKeyFormatter(Key key) {
|
string _defaultKeyFormatter(Key key) {
|
||||||
|
|
|
@ -57,8 +57,7 @@ GTSAM_EXPORT std::string _multirobotKeyFormatter(gtsam::Key key);
|
||||||
/// formatter in print functions.
|
/// formatter in print functions.
|
||||||
///
|
///
|
||||||
/// Checks for LabeledSymbol, Symbol and then plain keys, in order.
|
/// Checks for LabeledSymbol, Symbol and then plain keys, in order.
|
||||||
static const gtsam::KeyFormatter MultiRobotKeyFormatter =
|
extern GTSAM_EXPORT KeyFormatter MultiRobotKeyFormatter;
|
||||||
&_multirobotKeyFormatter;
|
|
||||||
|
|
||||||
/// To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
|
/// To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
|
||||||
struct StreamedKey {
|
struct StreamedKey {
|
||||||
|
|
Loading…
Reference in New Issue