function i = symbolIndex(key) % generate the index from a key s = gtsamSymbol(key); i = s.index();