Regilo
A simple C++ library for controlling the Neato XV robot and the Hokuyo scanner.
|
A simple C++ library for controlling the Neato XV robot and the Hokuyo scanner.
regilo
allows you to communicate with the Neato robot or the Hokuyo scanner through a serial port or sockets. You can use some implemented methods like setTestMode()
, setMotor()
(for Neato XV), getVersion()
(for Hokuyo), getScan()
(for both), or run any other command with the sendCommand()
method.
In the supported operating systems (currently Arch Linux, Debian, Ubuntu, and Fedora), you can install the appropriate package. Otherwise, you can download the source code, build regilo
according to the build instructions below, and install it.
### Neato XV
### Hokuyo
The library uses
The regilo-visual
example also needs
Make sure you have installed all necessary dependencies before building.
Use one of the following options if you want to build the [examples](examples) as well
$ cmake -Dexample:bool=on ..
for the console example (regilo-scan
),$ cmake -Dexample-gui:bool=on ..
for the GUI example (regilo-visual
),$ cmake -Dexamples:bool=on ..
for all examples.For a faster build on a multicore processor, you can use:
To install the regilo
library (and its examples), simply run as root:
To uninstall:
There are three packages you can install. The package names adhere to the conventions of the operating systems.
Operating system | Package name | Package content |
---|---|---|
Arch Linux | regilo-lib | only runtime library |
regilo | library, headers, regilo-scan | |
Debian / Ubuntu | libregilo | only runtime library |
libregilo-dev | library, headers, regilo-scan | |
Fedora | regilo | only runtime library |
regilo-devel | library, headers, regilo-scan | |
All | regilo-visual | library, regilo-visual |
You can install regilo
, regilo-lib
, and regilo-visual
in Arch Linux from the AUR.
Do not forget to add my PGP key (fingerprint D258 09BF 3563 AA56 A12B 0F4D 545E DD46 FBAC 61E6
).
In Ubuntu, you can use my ppa:branoholy/regilo and install the libregilo
, libregilo-dev
, and regilo-visual
packages.
openSUSE Build Service can be used in Debian 8. You need to add my key and repository, and then you can install the libregilo
, libregilo-dev
, and regilo-visual
packages.
openSUSE Build Service can be used in Fedora 23 as well. You need to add my repository and then you can install the regilo
, regilo-devel
, and regilo-visual
packages.
See [examples](examples) for more information about using of this library.
regilo-scan
is a simple example that connects to the Neato or Hokuyo, performs one scan, and prints it.
regilo-visual
is more complex and requires the wxWidgets
library. It can be used to drive with the Neato, scan automatically or manually, and log the output. Same scanning functionality can be done with the Hokuyo as well.
Regilo is licensed under GNU GPL v3 (see the [LICENSE](LICENSE) file).