just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Committer:
mbedalvaro
Date:
Sat Apr 07 14:46:51 2012 +0000
Revision:
7:0df17f3078bc
Parent:
4:f9d364f10335
Child:
12:0de9cd2bced5
working contour following and bouncing. The blob mode is not so nice now, but this is because the UPDATE TIME should be a funciton of the number of points and the complexity of update (very simple in case of bouncing/contour following for rigid loops, ...

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedalvaro 0:345b3bc7a0ea 1 #ifndef RIGIDSCAFOLD_H
mbedalvaro 0:345b3bc7a0ea 2 #define RIGIDSCAFOLD_H
mbedalvaro 0:345b3bc7a0ea 3
mbedalvaro 0:345b3bc7a0ea 4 #include "myVectorClass.h"
mbedalvaro 0:345b3bc7a0ea 5
mbedalvaro 0:345b3bc7a0ea 6 #include <vector>
mbedalvaro 0:345b3bc7a0ea 7 using namespace std;
mbedalvaro 0:345b3bc7a0ea 8
mbedalvaro 0:345b3bc7a0ea 9 class RigidScafold {
mbedalvaro 0:345b3bc7a0ea 10 public:
mbedalvaro 0:345b3bc7a0ea 11 RigidScafold();
mbedalvaro 0:345b3bc7a0ea 12 ~RigidScafold();
mbedalvaro 0:345b3bc7a0ea 13
mbedalvaro 0:345b3bc7a0ea 14 // (1) METHODS for creating different SCAFOLD structures
mbedalvaro 0:345b3bc7a0ea 15 // Note: these scafolds may or may not be used to initialize the light loop (in case of elasticLoop).
mbedalvaro 4:f9d364f10335 16 void buildCircularScafold(float _radius, vector2D _pos, int _numScafoldPoints);
mbedalvaro 4:f9d364f10335 17 void buildLine(float _length, float _angleDeg, vector2D _pos, int _numScafoldPoints);
mbedalvaro 7:0df17f3078bc 18
mbedalvaro 0:345b3bc7a0ea 19 // Other functions to create letters, text, etc.
mbedalvaro 0:345b3bc7a0ea 20 // ...
mbedalvaro 0:345b3bc7a0ea 21
mbedalvaro 0:345b3bc7a0ea 22 // DATA structures:
mbedalvaro 0:345b3bc7a0ea 23 // note: the number of points in the scafold does not need to equate the number of points in the blob
mbedalvaro 0:345b3bc7a0ea 24 vector<vector2D> scafold; // scafold trajectory (centered around the centerScafold point). Can be used to initialize elastic loop.
mbedalvaro 0:345b3bc7a0ea 25 };
mbedalvaro 0:345b3bc7a0ea 26
mbedalvaro 0:345b3bc7a0ea 27 #endif