source: pacpusframework/trunk/include/Pacpus/kernel/pacpus.h@ 282

Last change on this file since 282 was 198, checked in by Marek Kurdej, 11 years ago

Minor fixes.

  • Property svn:executable set to *
File size: 3.0 KB
RevLine 
[89]1// %pacpus:license{
2// This file is part of the PACPUS framework distributed under the
3// CECILL-C License, Version 1.0.
4// %pacpus:license}
5/// @file
6/// @author Gerald Dherbomez <firstname.surname@utc.fr>
7/// @author Marek Kurdej <firstname.surname@utc.fr>
8/// @date February, 2006
9/// @version $Id: pacpus.h 76 2013-01-10 17:05:10Z kurdejma $
10/// @copyright Copyright (c) UTC/CNRS Heudiasyc 2006 - 2013. All rights reserved.
11/// @brief Brief description.
12///
13/// Detailed description.
14
15#ifndef DEF_PACPUS_H
16#define DEF_PACPUS_H
17
18#include <Pacpus/kernel/road_time.h>
19
20/// @def PACPUS_DEPRECATED(func)
21/// Develops to the function or method declaration @b func
22/// and marks it as deprecated.
23
24/// @def PACPUS_DEPRECATED_MSG(func, msg)
25/// Develops to the function or method declaration @b func
26/// and marks it as deprecated with a given comment @b msg.
27#ifdef __GNUC__
28# define PACPUS_DEPRECATED(func) func __attribute__ ((deprecated))
29# define PACPUS_DEPRECATED_MSG(func, msg) PACPUS_DEPRECATED(func)
30#elif defined(_MSC_VER)
31# define PACPUS_DEPRECATED(func) __declspec(deprecated) func
32# define PACPUS_DEPRECATED_MSG(func, msg) __declspec(deprecated("was declared deprecated: " msg)) func
33#else
34# pragma message("WARNING: You need to implement PACPUS_DEPRECATED for this compiler")
35# define PACPUS_DEPRECATED(func) func
36# define PACPUS_DEPRECATED_MSG(func, msg) func
37#endif
38
[181]39struct donnees_gps
40{
41 long ind_qualite;
42 double x, y;
43 double lon, lat;
44 float a, b, phi, sigma_lat, sigma_lon;
45 road_time_t time;
46 double alt_msl, d_geoidal;
47};
48
49struct donnees_abs_zy
50{
51 float dArD, dArG;
52 float speed;
53 road_time_t time;
54};
55
56struct donnees_gyro
57{
58 // les mesures sont prises par rapport au point C
59 // position de la centrale inertielle
60 // vitesse de lacet (rad.s-1) dans le repère de la masse suspendue
61 float psi_s;
62 road_time_t time;
63};
64
65/// Definition of the structure which will be sent for each positioning
66/// requests -> MapMatching.cpp
67struct s_MatchedPosition
68{
69 int state; /* Etat du serveur de position absolue hybridée*/
70 double x_match; /* Position Matchée */
71 double y_match; /* en x et y */
72 double x; /* Position du véhicule */
73 double y; /* en x et y */
74 double theta; /* cap (par rapport à l'est) dans le système de la carte */
75 double v; /* vitesse horizontale par rapport à la terre */
76 unsigned long ID; /* ID de la route à laquelle appartient la position matchée */
77 road_time_t time;
78 int way; /* Sens de la route parcourue 1=W2E, 2=E2W*/
79 double dist; /* abscisse curviligne par rapport au début de la route */
80 double pxx, pyy, pxy; /* covariance de l'erreur en position absolue*/
81 double ptheta; /*covariance de l'erreur en cap*/
82 double error;
83 donnees_gyro gyro;
84 donnees_abs_zy odo;
85};
86
[89]87#endif // DEF_PACPUS_H
Note: See TracBrowser for help on using the repository browser.