13 #include <ecl/time.hpp> 14 #include <ecl/sigslots.hpp> 15 #include <ecl/command_line.hpp> 66 int main(
int argc,
char** argv)
68 ecl::CmdLine cmd_line(
"version_info program",
' ',
"0.2");
69 ecl::UnlabeledValueArg<std::string> device_port(
"device_port",
"Path to device file of serial port to open, connected to the kobuki",
false,
"/dev/kobuki",
"string");
70 cmd_line.add(device_port);
71 cmd_line.parse(argc, argv);
74 std::cout <<
"Version Info:" << std::endl;
77 while (!kobuki_manager.isAcquired());
78 std::cout <<
" * Hardware Version: " << kobuki_manager.
getHardwareVersion() << std::endl;
79 std::cout <<
" * Firmware Version: " << kobuki_manager.getFirmwareVersion() << std::endl;
80 std::cout <<
" * Software Version: " << kobuki_manager.getSoftwareVersion() << std::endl;
81 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).
int main(int argc, char **argv)
The core kobuki driver class.