52 std::cout << ecl::yellow <<
"[WARNING] " << message << ecl::reset << std::endl;
56 std::cout << ecl::red <<
"[ERROR] " << message << ecl::reset << std::endl;
77 int main(
int argc,
char** argv)
79 ecl::CmdLine cmd_line(
"version_info program",
' ',
"0.2");
81 cmd_line.
add(device_port);
82 cmd_line.
parse(argc, argv);
85 std::cout <<
"Version Info:" << std::endl;
88 ecl::MilliSleep sleep_one_hundred_ms(100);
89 while (!kobuki_manager.isAcquired()) { sleep_one_hundred_ms(); }
90 std::cout <<
" * Hardware Version: " << kobuki_manager.getHardwareVersion() << std::endl;
91 std::cout <<
" * Firmware Version: " << kobuki_manager.getFirmwareVersion() << std::endl;
92 std::cout <<
" * Software Version: " << kobuki_manager.getSoftwareVersion() << std::endl;
93 std::cout <<
" * Unique Device ID: " << kobuki_manager.getUDID() << std::endl;
KobukiManager(const std::string &device_port)
void processVersionInfo(const kobuki::VersionInfo &version_info)
ecl::Slot< const kobuki::VersionInfo & > slot_version_info
std::string & getFirmwareVersion()
std::string & getSoftwareVersion()
std::string device_port
The serial device port name [/dev/kobuki].
static std::string getSoftwareVersion()
std::string & getHardwareVersion()
std::string sigslots_namespace
The first part of a sigslot connection namespace ["/kobuki"].
Device driver core interface.
static std::string toString(const uint32_t &version)
Parameter list and validator for the kobuki.
Keyboard remote control for our robot core (mobile base).
void relayErrors(const std::string &message)
ecl::Slot< const std::string & > slot_debug_error
int main(int argc, char **argv)
The core kobuki driver class.
void connect(const std::string &topic)
void relayWarnings(const std::string &message)
void parse(int argc, char **argv)
ecl::Slot< const std::string & > slot_debug_warning