g2o
Public Member Functions | List of all members
SlamParser::SlamContext Class Reference

#include <slam_context.h>

Inheritance diagram for SlamParser::SlamContext:
Inheritance graph
[legend]

Public Member Functions

 SlamContext ()
 
virtual ~SlamContext ()
 
virtual bool process (CommandNode *commandNode)
 

Detailed Description

Definition at line 36 of file slam_context.h.

Constructor & Destructor Documentation

SlamParser::SlamContext::SlamContext ( )

Definition at line 36 of file slam_context.cpp.

37 {
38 }
SlamParser::SlamContext::~SlamContext ( )
virtual

Definition at line 40 of file slam_context.cpp.

41 {
42 }

Member Function Documentation

bool SlamParser::SlamContext::process ( CommandNode commandNode)
virtual

Reimplemented in SlamParser::SlamContextInterface.

Definition at line 44 of file slam_context.cpp.

References SlamParser::CommandNode::commandType(), SlamParser::CT_ADD_EDGE, SlamParser::CT_ADD_NODE, SlamParser::CT_FIX, SlamParser::CT_QUERY_STATE, and SlamParser::CT_SOLVE_STATE.

Referenced by SlamParser::Parser::parse().

45 {
46  cerr << "SlamContext::process -> ";
47  switch (commandNode->commandType()) {
48  case CT_ADD_NODE:
49  cerr << "ADD NODE" << endl;
50  break;
51  case CT_ADD_EDGE:
52  cerr << "ADD EDGE" << endl;
53  break;
54  case CT_SOLVE_STATE:
55  cerr << "SOLVE STATE" << endl;
56  break;
57  case CT_QUERY_STATE:
58  cerr << "QUERY STATE" << endl;
59  break;
60  case CT_FIX:
61  cerr << "FIX NODE" << endl;
62  break;
63  }
64  return true;
65 }

The documentation for this class was generated from the following files: