This program is for an autonomous robot for the competition at the Hochschule Luzern. http://cruisingcrepe.wordpress.com/ We are one of the 32 teams. http://cruisingcrepe.wordpress.com/ The postition control is based on this Documentation: Control of Wheeled Mobile Robots: An Experimental Overview from Alessandro De Luca, Giuseppe Oriolo, Marilena Vendittelli. For more information see here: http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf

Dependencies:   mbed

Fork of autonomous Robot Android by Christian Burri

Committer:
chrigelburri
Date:
Fri May 03 13:34:34 2013 +0000
Revision:
19:b2f76b0fe4c8
Parent:
18:306d362d692b
Child:
20:01b233b0e606
asdf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
chrigelburri 18:306d362d692b 1 #ifndef _ANDROIDADB_H_
chrigelburri 18:306d362d692b 2 #define _ANDROIDADB_H_
chrigelburri 18:306d362d692b 3
chrigelburri 18:306d362d692b 4 #include "mbed.h"
chrigelburri 18:306d362d692b 5 #include "Adb.h"
chrigelburri 19:b2f76b0fe4c8 6 //#include "androidADB.cpp"
chrigelburri 18:306d362d692b 7
chrigelburri 18:306d362d692b 8 #include <string>
chrigelburri 18:306d362d692b 9 #include <sstream>
chrigelburri 18:306d362d692b 10 #include <vector>
chrigelburri 18:306d362d692b 11 #include <iostream>
chrigelburri 18:306d362d692b 12 #include <stdlib.h>
chrigelburri 18:306d362d692b 13
chrigelburri 18:306d362d692b 14 /**
chrigelburri 18:306d362d692b 15 * @brief Takes an string, a vector of strings for the delimited tokens, and a with the
chrigelburri 18:306d362d692b 16 * @param str
chrigelburri 18:306d362d692b 17 * @param tokens
chrigelburri 18:306d362d692b 18 * @param delimiters
chrigelburri 18:306d362d692b 19 */
chrigelburri 18:306d362d692b 20 void Tokenize(const string& str,
chrigelburri 18:306d362d692b 21 vector<string>& tokens,
chrigelburri 18:306d362d692b 22 const string& delimiters = " ");
chrigelburri 18:306d362d692b 23
chrigelburri 18:306d362d692b 24 void parseMessage(uint16_t length, uint8_t * data);
chrigelburri 18:306d362d692b 25
chrigelburri 18:306d362d692b 26 void connect();
chrigelburri 18:306d362d692b 27
chrigelburri 19:b2f76b0fe4c8 28 float getDesiredTheta();
chrigelburri 19:b2f76b0fe4c8 29 float getDesiredX();
chrigelburri 19:b2f76b0fe4c8 30 float getDesiredY();
chrigelburri 19:b2f76b0fe4c8 31
chrigelburri 19:b2f76b0fe4c8 32 void init();
chrigelburri 19:b2f76b0fe4c8 33
chrigelburri 19:b2f76b0fe4c8 34 void write2Android(char str [32]);
chrigelburri 19:b2f76b0fe4c8 35
chrigelburri 19:b2f76b0fe4c8 36 void writeActualPosition(float x, float y, float t);
chrigelburri 19:b2f76b0fe4c8 37
chrigelburri 18:306d362d692b 38 #endif