FACT++  1.0
template<class T , class S >
StateMachineLidar< T, S >::StateMachineLidar ( ostream &  out = cout)
inline

Definition at line 412 of file magiclidar.cc.

References State::kConnected, State::kDisconnected, MagicLidar::State::kReceiving, and StateMachineLidar< T, S >::SetVerbosity().

412  :
413  StateMachineAsio<T>(out, "MAGIC_LIDAR"), fLidar(*this, *this)
414  {
415  // State names
416  T::AddStateName(State::kDisconnected, "NoConnection",
417  "No connection to web-server could be established recently");
418 
419  T::AddStateName(State::kConnected, "Invalid",
420  "Connection to webserver can be established, but received data is not recent or invalid");
421 
422  T::AddStateName(State::kReceiving, "Valid",
423  "Connection to webserver can be established, receint data received");
424 
425  // Verbosity commands
426  T::AddEvent("SET_VERBOSE", "B")
427  (bind(&StateMachineLidar::SetVerbosity, this, placeholders::_1))
428  ("set verbosity state"
429  "|verbosity[bool]:disable or enable verbosity for received data (yes/no), except dynamic data");
430 /*
431  // Conenction commands
432  AddEvent("DISCONNECT")
433  (bind(&StateMachineLidar::Disconnect, this))
434  ("disconnect from ethernet");
435 
436  AddEvent("RECONNECT", "O")
437  (bind(&StateMachineLidar::Reconnect, this, placeholders::_1))
438  ("(Re)connect ethernet connection to FTM, a new address can be given"
439  "|[host][string]:new ethernet address in the form <host:port>");
440 */
441  }
int SetVerbosity(const EventImp &evt)
Definition: magiclidar.cc:369

+ Here is the call graph for this function: