Test du path finding

Dependencies:   RoboClaw mbed

Fork of TestMyPathFind by Romain Ame

Committer:
IceTeam
Date:
Wed Apr 13 16:17:19 2016 +0000
Revision:
41:53d5990ff99d
Parent:
39:ca4dd3faffa8
Correction odometrie;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 39:ca4dd3faffa8 1 #ifndef OBSCARR_H
IceTeam 39:ca4dd3faffa8 2 #define OBSCARR_H
IceTeam 39:ca4dd3faffa8 3
IceTeam 39:ca4dd3faffa8 4 #include "controle.h"
IceTeam 39:ca4dd3faffa8 5 #include "figure.h"
IceTeam 39:ca4dd3faffa8 6 #include "point.h"
IceTeam 39:ca4dd3faffa8 7
IceTeam 39:ca4dd3faffa8 8 class obsCarr : public figure {
IceTeam 39:ca4dd3faffa8 9 public:
IceTeam 39:ca4dd3faffa8 10 obsCarr (float xc, float yc, float dxt, float dyt) : figure (xc,yc) {
IceTeam 39:ca4dd3faffa8 11 dxtaille = dxt;
IceTeam 39:ca4dd3faffa8 12 dytaille = dyt;
IceTeam 39:ca4dd3faffa8 13 }
IceTeam 39:ca4dd3faffa8 14
IceTeam 39:ca4dd3faffa8 15 /* Retourne true si le segment AB croise le rectangle */
IceTeam 39:ca4dd3faffa8 16 bool getCroisement (point A, point B);
IceTeam 39:ca4dd3faffa8 17 /* Retourne true si le segment AB croise le rectangle */
IceTeam 39:ca4dd3faffa8 18 bool getCroisement (float X, float Y, point B);
IceTeam 39:ca4dd3faffa8 19
IceTeam 39:ca4dd3faffa8 20 /* Retourne 4 Points pas tres loin du rectangle par lesquels peut passer le robot ! */
IceTeam 39:ca4dd3faffa8 21 points4 getPoints ();
IceTeam 39:ca4dd3faffa8 22 bool belongs (point& A);
IceTeam 39:ca4dd3faffa8 23
IceTeam 39:ca4dd3faffa8 24 float getDXT () { return dxtaille; }
IceTeam 39:ca4dd3faffa8 25 float getDYT () { return dytaille; }
IceTeam 39:ca4dd3faffa8 26
IceTeam 39:ca4dd3faffa8 27 protected:
IceTeam 39:ca4dd3faffa8 28 float dxtaille, dytaille;
IceTeam 39:ca4dd3faffa8 29 };
IceTeam 39:ca4dd3faffa8 30
IceTeam 39:ca4dd3faffa8 31 #endif