36 #define yylex SlamParserlex 53 #line 54 "bison_parser.cpp" 72 #define yylex driver.lexer->lex 77 #line 78 "bison_parser.cpp" 83 # define YY_(msgid) dgettext ("bison-runtime", msgid) 87 # define YY_(msgid) msgid 92 #define YYUSE(e) ((void) (e)) 98 # define YYCDEBUG if (yydebug_) (*yycdebug_) 100 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \ 104 *yycdebug_ << Title << ' '; \ 105 yy_symbol_print_ ((Type), (Value), (Location)); \ 106 *yycdebug_ << std::endl; \ 110 # define YY_REDUCE_PRINT(Rule) \ 113 yy_reduce_print_ (Rule); \ 116 # define YY_STACK_PRINT() \ 124 # define YYCDEBUG if (false) std::cerr 125 # define YY_SYMBOL_PRINT(Title, Type, Value, Location) 126 # define YY_REDUCE_PRINT(Rule) 127 # define YY_STACK_PRINT() 131 #define yyerrok (yyerrstatus_ = 0) 132 #define yyclearin (yychar = yyempty_) 134 #define YYACCEPT goto yyacceptlab 135 #define YYABORT goto yyabortlab 136 #define YYERROR goto yyerrorlab 137 #define YYRECOVERING() (!!yyerrstatus_) 141 #line 1 "[Bison:b4_percent_define_default]" 146 #line 147 "bison_parser.cpp" 159 std::string yyr =
"";
160 char const *yyp = yystr;
167 goto do_not_strip_quotes;
171 goto do_not_strip_quotes;
180 do_not_strip_quotes: ;
193 yycdebug_ (&
std::cerr),
209 Parser::yy_symbol_value_print_ (
int yytype,
223 Parser::yy_symbol_print_ (
int yytype,
226 *yycdebug_ << (yytype <
yyntokens_ ?
"token" :
"nterm")
228 << *yylocationp <<
": ";
229 yy_symbol_value_print_ (yytype, yyvaluep, yylocationp);
253 #line 254 "bison_parser.cpp" 262 #line 263 "bison_parser.cpp" 271 #line 272 "bison_parser.cpp" 280 #line 281 "bison_parser.cpp" 289 #line 290 "bison_parser.cpp" 298 #line 299 "bison_parser.cpp" 307 #line 308 "bison_parser.cpp" 325 Parser::debug_stream ()
const 331 Parser::set_debug_stream (std::ostream& o)
337 Parser::debug_level_type
338 Parser::debug_level ()
const 344 Parser::set_debug_level (debug_level_type l)
364 int yyerrstatus_ = 0;
380 YYCDEBUG <<
"Starting parse" << std::endl;
393 #line 394 "bison_parser.cpp" 408 YYCDEBUG <<
"Entering state " << yystate << std::endl;
428 yychar =
yylex (&yylval, &yylloc);
435 yychar = yytoken =
yyeof_;
436 YYCDEBUG <<
"Now at end of input." << std::endl;
512 #line 104 "parser.yy" 514 (yyval.
intList) =
new std::vector<int>;
522 #line 109 "parser.yy" 532 #line 115 "parser.yy" 541 #line 119 "parser.yy" 550 #line 124 "parser.yy" 560 #line 129 "parser.yy" 562 std::vector<double>
values;
574 #line 138 "parser.yy" 576 std::vector<double>
values;
580 std::vector<double> information;
595 #line 155 "parser.yy" 605 #line 160 "parser.yy" 615 #line 165 "parser.yy" 617 std::vector<double>
values;
624 std::vector<double> information;
654 #line 200 "parser.yy" 665 #line 207 "parser.yy" 674 #line 212 "parser.yy" 683 #line 216 "parser.yy" 693 #line 222 "parser.yy" 702 #line 226 "parser.yy" 711 #line 230 "parser.yy" 720 #line 234 "parser.yy" 729 #line 238 "parser.yy" 738 #line 245 "parser.yy" 748 #line 749 "bison_parser.cpp" 764 if (0 <= yystate && yystate <=
yylast_ 765 &&
yycheck_[yystate] == yystate_stack_[0])
782 yyerror_range[0] = yylloc;
783 if (yyerrstatus_ == 3)
796 yydestruct_ (
"Error: discarding", yytoken, &yylval, &yylloc);
822 yystate = yystate_stack_[0];
846 if (yystate_stack_.height () == 1)
854 yystate = yystate_stack_[0];
858 yyerror_range[1] = yylloc;
884 yydestruct_ (
"Cleanup: discarding lookahead", yytoken, &yylval, &yylloc);
889 while (yystate_stack_.height () != 1)
913 int yyxbegin = yyn < 0 ? -yyn : 0;
916 int yychecklim =
yylast_ - yyn + 1;
919 for (
int x = yyxbegin; x < yyxend; ++x)
931 res =
"syntax error, unexpected ";
936 for (
int x = yyxbegin; x < yyxend; ++x)
939 res += (!count++) ?
", expecting " :
" or ";
946 res =
YY_(
"syntax error");
957 -24, 54, -24, -24, -7, 1, -24, 10, -24, -24,
958 -24, -24, -24, 9, 31, 51, 52, 55, -24, -24,
959 56, -24, 4, 4, 58, 59, -24, -24, -24, 4,
960 4, 60, 61, 4, 4, 4, 4, -24, 4, 4,
961 4, 4, 4, 4, 4, 4, 4, -24, 4, 4,
962 4, 4, 4, 4, 4, 4, 4, 4, -24, 4,
963 4, 4, 4, 4, 4, 4, 4, 4, 4, 4,
964 4, 4, 4, 4, 4, 4, 4, -24
973 21, 0, 1, 22, 0, 0, 13, 14, 16, 17,
974 18, 19, 20, 0, 0, 0, 0, 0, 12, 2,
975 15, 23, 6, 9, 0, 0, 3, 4, 5, 0,
976 0, 0, 0, 0, 0, 0, 0, 7, 0, 0,
977 0, 0, 0, 0, 0, 0, 0, 10, 0, 0,
978 0, 0, 0, 0, 0, 0, 0, 0, 8, 0,
979 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
980 0, 0, 0, 0, 0, 0, 0, 11
987 -24, -24, -23, -24, -24, -24, -24, -24, -24, -24
994 -1, 20, 29, 8, 9, 10, 11, 12, 13, 1
1004 30, 14, 15, 16, 17, 18, 33, 34, 27, 28,
1005 37, 38, 39, 40, 19, 41, 42, 43, 44, 45,
1006 46, 47, 48, 49, 21, 50, 51, 52, 53, 54,
1007 55, 56, 57, 58, 59, 22, 60, 61, 62, 63,
1008 64, 65, 66, 67, 68, 69, 70, 71, 72, 73,
1009 74, 75, 76, 77, 2, 23, 24, 3, 0, 25,
1010 26, 4, 31, 32, 35, 36, 5, 6, 7
1017 23, 8, 9, 10, 11, 4, 29, 30, 4, 5,
1018 33, 34, 35, 36, 4, 38, 39, 40, 41, 42,
1019 43, 44, 45, 46, 15, 48, 49, 50, 51, 52,
1020 53, 54, 55, 56, 57, 4, 59, 60, 61, 62,
1021 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
1022 73, 74, 75, 76, 0, 4, 4, 3, -1, 4,
1023 4, 7, 4, 4, 4, 4, 12, 13, 14
1031 0, 25, 0, 3, 7, 12, 13, 14, 19, 20,
1032 21, 22, 23, 24, 8, 9, 10, 11, 4, 4,
1033 17, 15, 4, 4, 4, 4, 4, 4, 5, 18,
1034 18, 4, 4, 18, 18, 4, 4, 18, 18, 18,
1035 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1036 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1037 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1038 18, 18, 18, 18, 18, 18, 18, 18
1044 const unsigned short int 1045 Parser::yytoken_number_[] =
1047 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
1048 265, 266, 267, 268, 269, 59
1056 0, 16, 17, 17, 18, 18, 19, 19, 19, 20,
1057 20, 20, 21, 22, 23, 23, 24, 24, 24, 24,
1065 0, 2, 1, 2, 1, 1, 3, 6, 14, 3,
1066 9, 32, 2, 1, 1, 2, 1, 1, 1, 1,
1070 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 1076 "\"end of file\"",
"error",
"$undefined",
"\"end of line\"",
1077 "\"integer\"",
"\"double\"",
"\"string\"",
"\"ADD\"",
"\"Vertex SE2\"",
1078 "\"Vertex SE3\"",
"\"Edge SE2\"",
"\"Edge SE3\"",
"\"Fix\"",
1079 "\"Solve State\"",
"\"Query State\"",
"';'",
"$accept",
"int_list",
1080 "NUMBER",
"add_se2",
"add_se3",
"fix_node",
"solve_state",
"query_state",
1081 "command",
"start", 0
1087 const Parser::rhs_number_type
1090 25, 0, -1, 4, -1, 17, 4, -1, 4, -1,
1091 5, -1, 7, 8, 4, -1, 7, 8, 4, 18,
1092 18, 18, -1, 7, 10, 4, 4, 4, 18, 18,
1093 18, 18, 18, 18, 18, 18, 18, -1, 7, 9,
1094 4, -1, 7, 9, 4, 18, 18, 18, 18, 18,
1095 18, -1, 7, 11, 4, 4, 4, 18, 18, 18,
1096 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1097 18, 18, 18, 18, 18, 18, 18, 18, 18, 18,
1098 18, 18, 18, 18, -1, 12, 4, -1, 13, -1,
1099 14, -1, 14, 17, -1, 19, -1, 20, -1, 21,
1100 -1, 22, -1, 23, -1, -1, 25, 3, -1, 25,
1109 0, 0, 3, 5, 8, 10, 12, 16, 23, 38,
1110 42, 52, 85, 88, 90, 92, 95, 97, 99, 101,
1116 Parser::yyrline_[] =
1118 0, 103, 103, 108, 114, 118, 123, 128, 137, 154,
1119 159, 164, 199, 206, 211, 215, 221, 225, 229, 233,
1125 Parser::yystack_print_ ()
1127 *yycdebug_ <<
"Stack now";
1130 *yycdebug_ <<
' ' << *i;
1131 *yycdebug_ << std::endl;
1136 Parser::yy_reduce_print_ (
int yyrule)
1138 unsigned int yylno = yyrline_[yyrule];
1139 int yynrhs =
yyr2_[yyrule];
1141 *yycdebug_ <<
"Reducing stack by rule " << yyrule - 1
1142 <<
" (line " << yylno <<
"):" << std::endl;
1144 for (
int yyi = 0; yyi < yynrhs; yyi++)
1146 yyrhs_[yyprhs_[yyrule] + yyi],
1160 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1161 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1162 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1163 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1164 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1165 2, 2, 2, 2, 2, 2, 2, 2, 2, 15,
1166 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1167 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1168 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1169 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1170 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1171 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1172 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1173 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1174 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1175 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1176 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1177 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1178 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1179 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1180 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1181 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1182 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1183 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1184 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
1185 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
1186 5, 6, 7, 8, 9, 10, 11, 12, 13, 14
1189 return translate_table[t];
1208 #line 1 "[Bison:b4_percent_define_default]" 1213 #line 1214 "bison_parser.cpp" 1217 #line 252 "parser.yy" static const int yyterror_
static const unsigned char yyr1_[]
For a rule, its LHS.
static const int yyerrcode_
token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
virtual bool process(CommandNode *commandNode)
Protocol The SLAM executable accepts such as solving the and retrieving or vertices in the explicitly state the reprensentation poses are represented by poses by VERTEX_XYZRPY In the Quaternions and other representations could be but note that it is up to the SLAM algorithm to choose the internal representation of the angles The keyword is followed by a unique vertex ID and an optional initialization of the values
position begin
Beginning of the located region.
void yydestruct_(const char *yymsg, int yytype, semantic_type *yyvaluep, location_type *yylocationp)
Reclaim the memory associated to a symbol.
static const token_number_type yyundef_token_
#define YYLLOC_DEFAULT(Current, Rhs, N)
static const unsigned int yyuser_token_number_max_
static const unsigned char yytable_[]
static const signed char yycheck_[]
static const int yyfinal_
static const signed char yypact_ninf_
semantic_stack_type yysemantic_stack_
The semantic value stack.
virtual void error(const location_type &loc, const std::string &msg)
state_stack_type yystate_stack_
The state stack.
std::string * filename
File name to which this position refers.
virtual std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
void error(const class location &l, const std::string &m)
Present a slice of the top of a stack.
const_iterator end() const
static const signed char yypgoto_[]
unsigned char token_number_type
Internal symbol numbers.
stack< location_type > location_stack_type
location stack type.
if(POLICY CMP0020) cmake_policy(SET CMP0020 OLD) endif() if(Qt4_FOUND) endif() if(Qt5_FOUND) endif() ADD_LIBRARY(viewer_library $
void pop(unsigned int n=1)
const_iterator begin() const
std::vector< int > * intList
static const signed char yypact_[]
For a state, the index in yytable_ of its portion.
#define YY_SYMBOL_PRINT(Title, Type, Value, Location)
class SlamContext & slamContext
virtual std::string yysyntax_error_(int yystate, int tok)
stack< semantic_type > semantic_stack_type
Semantic value stack type.
static const char *const yytname_[]
For a symbol, its name in clear.
#define YY_REDUCE_PRINT(Rule)
static const signed char yytable_ninf_
static const int yyempty_
stack< state_type > state_stack_type
State stack type.
position end
End of the located region.
static const int yyntokens_
class CommandNode * commandNode
static const signed char yydefgoto_[]
std::string streamname
stream name (file or input stream) used for error messages.
static const unsigned char yyr2_[]
For a rule, its RHS length.
void yypop_(unsigned int n=1)
Pop n symbols the three stacks.
location_stack_type yylocation_stack_
The location stack.
std::deque< state_type >::const_reverse_iterator const_iterator
static const unsigned char yystos_[]
For a state, its accessing symbol.
static const unsigned char yydefact_[]
Parser(class Driver &driver_yyarg)
Build a parser object.