README.md 4.15 KB
Newer Older
Arnaud Blanchard's avatar
Arnaud Blanchard committed
1
[![logo](logo_blaar.png)](http://blaar.org)
Arnaud Blanchard's avatar
Arnaud Blanchard committed
2

Arnaud Blanchard's avatar
Arnaud Blanchard committed
3
Basic Libraries And Applications for Robotics
Arnaud Blanchard's avatar
Arnaud Blanchard committed
4 5
=============================================

Arnaud Blanchard's avatar
Arnaud Blanchard committed
6 7 8
The goal of this light framework is to provide helpers and shortcuts with few abstractions letting you know what you are doing.
You are free to mix it with any low level code. The drawback is that you have to know what you are doing which is good in robotics.
The modules are minimalist in purpose. If you want more you are advised to use specialized libraries or tools but **blaar** should be helpful to make the integration. 
Arnaud Blanchard's avatar
Arnaud Blanchard committed
9

Arnaud Blanchard's avatar
Arnaud Blanchard committed
10 11 12 13 14 15 16 17 18 19
BLAAR is **open source** CeCILL v2.1 (compatible GPL v2).
**BLAAR** should work on **POSIX** systems. GNU/Linux (**Ubuntu/Raspbian**), Darwin (**Mac OSX**) and Bionic (**Android** not usable yet).
**BLAAR** is still under development, it is **not stable yet** but feel free to [ask improvement or notify issues](https://promethe.u-cergy.fr/blaar/blaar/issues).

Structure 
=========

blibs - Basic Libraries
-----------------------
These libraries are a set of basic tools simplifying programmation. The programmer keeps full control on the program. You have shortcuts for classical functionalities and very little abstractions. You can freely mix blibs and low level C/C++ functions.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
20

Arnaud Blanchard's avatar
Arnaud Blanchard committed
21 22 23
- [blc_core](https://promethe.u-cergy.fr/blibs/blc_core) : Generic helpers in C or C++ used by all other blaar projects
- [blc_channel](https://promethe.u-cergy.fr/blibs/blc_channel) : Tools to use shared memory in synchrone ( in test) and asynchrone mode 
- [blc_image](https://promethe.u-cergy.fr/blibs/blc_image) : Manipulate blc_array as images. Can load and save them as png files  
Arnaud Blanchard's avatar
Arnaud Blanchard committed
24 25 26 27
- [blc_program](https://promethe.u-cergy.fr/blibs/blc_program) : Parse arguments and interacts with user in commandline.

modules - Basic Applications for C/C++
------------------------------------
Arnaud Blanchard's avatar
Arnaud Blanchard committed
28

Arnaud Blanchard's avatar
Arnaud Blanchard committed
29
- [bapps](https://promethe.u-cergy.fr/blaar/bapps.git) : Generic C/C++ executables with no dependency to manipulate blc_channels (find max, generate oscillators, ...)
Arnaud Blanchard's avatar
Arnaud Blanchard committed
30

Arnaud Blanchard's avatar
Arnaud Blanchard committed
31 32 33 34 35 36
All the other applications are in optional specific submodules (i.e. i_v4l2_camera to acquire images through v4l2 driver or fftw to use functions from the external fftw library, ...)

Projects
========

- [![logo pinobo](images/pinobo_logo.png)PINOBO](pinobo.html) A robotic head
Arnaud Blanchard's avatar
Arnaud Blanchard committed
37 38

In `scripts/` you have bash scripts which combine applications to produce higher level functionalities. They may require you add optional modules.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
39

Arnaud Blanchard's avatar
Arnaud Blanchard committed
40 41
Install
=======
Arnaud Blanchard's avatar
Arnaud Blanchard committed
42

Arnaud Blanchard's avatar
Arnaud Blanchard committed
43
* [Mac OSX](INSTALL_OSX.md)
Arnaud Blanchard's avatar
Arnaud Blanchard committed
44
* [Ubuntu/Raspbian](INSTALL_UBUNTU.md)
Arnaud Blanchard's avatar
Arnaud Blanchard committed
45

Arnaud Blanchard's avatar
Arnaud Blanchard committed
46 47
Adding submodules
-----------------
Arnaud Blanchard's avatar
Arnaud Blanchard committed
48

Arnaud Blanchard's avatar
Arnaud Blanchard committed
49
You will only have basic framework. You may add submodules as needed. To add modules use : `git submodule add <module repository>`. Once you have added a module, install it with **`./install.sh <module>|all`**
Arnaud Blanchard's avatar
Arnaud Blanchard committed
50

Arnaud Blanchard's avatar
Arnaud Blanchard committed
51
**all** install all your cloned modules at once.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
52

Arnaud Blanchard's avatar
Arnaud Blanchard committed
53 54
Update the installation
-----------------------
Arnaud Blanchard's avatar
Arnaud Blanchard committed
55

Arnaud Blanchard's avatar
Arnaud Blanchard committed
56
**`./update_and_install_all.sh`**
Arnaud Blanchard's avatar
Arnaud Blanchard committed
57

Arnaud Blanchard's avatar
Arnaud Blanchard committed
58
This will download the new code and install it for blaar and each submodule
Arnaud Blanchard's avatar
Arnaud Blanchard committed
59 60

Usage 
Arnaud Blanchard's avatar
Arnaud Blanchard committed
61
=====
Arnaud Blanchard's avatar
Arnaud Blanchard committed
62

Arnaud Blanchard's avatar
Arnaud Blanchard committed
63 64
**`<binary> [--help] [args ...]`**
The availble blaar binaries are in `bin/` directory. All the binaries accept the **`--help`** option which shows a description of the project and details of possible others options. You can also use scripts which run a combinaison of binaries and other scripts. They are in `scripts/` directory and accept the **`-h`** option which shows a description of the project and details of possible others options.
Arnaud Blanchard's avatar
Arnaud Blanchard committed
65 66 67
When your are in development your are advised to see [developement](DEVELOPMENT.md).
You can see an [**example**](https://framagit.org/blibs/blc_core/wikis/home) of manipulating and displaying generic arrays with blc_core
You can create you first project with this example of [image manipulation](https://framagit.org/blibs/blc_image/wikis/home)
Arnaud Blanchard's avatar
Arnaud Blanchard committed
68

Arnaud Blanchard's avatar
Arnaud Blanchard committed
69 70
**SEE ALSO**  [examples](EXAMPLES.md) [development](DEVELOPMENT.md) [git](GIT.md) [Frequently Asked Questions](FAQ.md)

Arnaud Blanchard's avatar
Arnaud Blanchard committed
71 72 73 74 75 76 77 78 79 80 81 82 83
Other documentation
===================

###How to cite

    @Misc{blanchard14,
       author =   {Arnaud Blanchard},
       title =    {{BLAAR} : {Basic Libraries And Applications for Robotics}},
       organization = {ETIS Laboratory, Cergy-Pontoise, 95000 FRANCE},
       howpublished = {url{http://blaar.org}},
       year = {2014--2018}
    }