–In a similar way, add Multi RobotKeyFormatter as an external variable

release/4.3a0
Tomas Jurov 2025-05-17 21:55:23 +02:00
parent cc4a0e1804
commit 5b18f05656
2 changed files with 2 additions and 2 deletions

View File

@ -28,6 +28,7 @@ namespace gtsam {
/// Assign default key formatter
KeyFormatter DefaultKeyFormatter = &_defaultKeyFormatter;
KeyFormatter MultiRobotKeyFormatter = &_multirobotKeyFormatter;
/* ************************************************************************* */
string _defaultKeyFormatter(Key key) {

View File

@ -57,8 +57,7 @@ GTSAM_EXPORT std::string _multirobotKeyFormatter(gtsam::Key key);
/// formatter in print functions.
///
/// Checks for LabeledSymbol, Symbol and then plain keys, in order.
static const gtsam::KeyFormatter MultiRobotKeyFormatter =
&_multirobotKeyFormatter;
extern GTSAM_EXPORT KeyFormatter MultiRobotKeyFormatter;
/// To use the key_formatter on Keys, they must be wrapped in a StreamedKey.
struct StreamedKey {