Customized version of gtsam::Symbol for multi-robot use.
This variation of Symbol stores two char values in addition to an integer key, which is useful for encoding a group for a variable. This was originally designed for multi-robot systems, which allows expressing "Pose 7 from robot B" as "xB7".
|
| LabeledSymbol () |
| Default constructor.
|
|
| LabeledSymbol (const LabeledSymbol &key) |
| Copy constructor.
|
|
| LabeledSymbol (unsigned char c, unsigned char label, std::uint64_t j) |
| Constructor.
|
|
| LabeledSymbol (gtsam::Key key) |
| Constructor that decodes an integer gtsam::Key.
|
|
| operator gtsam::Key () const |
| Cast to integer.
|
|
void | print (const std::string &s="") const |
|
bool | equals (const LabeledSymbol &expected, double tol=0.0) const |
|
gtsam::Key | key () const |
| return the integer version
|
|
unsigned char | label () const |
| Retrieve label character.
|
|
unsigned char | chr () const |
| Retrieve key character.
|
|
size_t | index () const |
| Retrieve key index.
|
|
| operator std::string () const |
| Create a string from the key.
|
|
bool | operator< (const LabeledSymbol &comp) const |
| Comparison for use in maps.
|
|
bool | operator== (const LabeledSymbol &comp) const |
|
bool | operator== (gtsam::Key comp) const |
|
bool | operator!= (const LabeledSymbol &comp) const |
|
bool | operator!= (gtsam::Key comp) const |
|
LabeledSymbol | upper () const |
|
LabeledSymbol | lower () const |
|
LabeledSymbol | newChr (unsigned char c) const |
|
LabeledSymbol | newLabel (unsigned char label) const |
|