Go to the documentation of this file.
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;
std::string sigslots_namespace
The first part of a sigslot connection namespace ["/kobuki"].
void relayWarnings(const std::string &message)
std::string & getSoftwareVersion()
void processVersionInfo(const kobuki::VersionInfo &version_info)
ecl::Slot< const kobuki::VersionInfo & > slot_version_info
ecl::Slot< const std::string & > slot_debug_warning
static std::string toString(const uint32_t &version)
std::string & getHardwareVersion()
ecl::Slot< const std::string & > slot_debug_error
int main(int argc, char **argv)
Keyboard remote control for our robot core (mobile base).
std::string & getFirmwareVersion()
void connect(const std::string &topic)
static std::string getSoftwareVersion()
Parameter list and validator for the kobuki.
Device driver core interface.
The core kobuki driver class.
KobukiManager()
Default constructor, needs initialisation.
void parse(int argc, char **argv)
void relayErrors(const std::string &message)
std::string device_port
The serial device port name [/dev/kobuki].
kobuki_driver
Author(s): Daniel Stonier
, Younghun Ju , Jorge Santos Simon
autogenerated on Wed Mar 2 2022 00:26:14