WebbotLib for C++
Overview
WebbotLib is a C/C++ library for commercial boards like the Axon, Axon II and Roboduino, as well as custom boards based on various ATMega chips from ATmel.
Offering support for a large collection of sensors and motor controllers this is, perhaps, the most complete library available for robot builders.
The major change compared to Version 1 is that you must use Project Designer to create your project.
Section
- Common Data Types
- One of the common problems encountered by newbies, and the more experienced among us to be honest, is to do with choosing suitable data types to store the information we want to hold. Note that this is nothing to do with WebbotLib but is discussed here to help avoid the pitfalls.
- Versions
- Don't forget: when upgrading to a new version you should ALWAYS regenerate your project code from Project Designer and then perform a clean build.
Files
- Reference
- Other files you can include in your project.
Getting Started
Section
- The Webbot tools
- To understand how WebbotLib works then you need to understand the difference between Boards and Projects.
- Installing the library
- This library can be used with Windows, Mac and Unix variants. It relies on several of my other utilities which are written using Java in order to work on these different operating systems.
- My first program
- Now that our environment has been set up correctly we can concentrate on writing some code.
- FILEs and Streams
- Back in the days of C the concept of a FILE was conceived. A FILE was a variable that could be used to either read data from and/or send data to a file on a disk or to a console (ie screen and keyboard). Where a 'read' would read typed characters from the keyboard and a 'write' would write characters to the screen.
- Building the library itself
- WebbotLib comes to you with all of the code pre-compiled into libraries meaning that it is ready-to-go for your own projects.