Visual Servoing Platform
version 3.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Examples
vpMy.h
1
/****************************************************************************
2
*
3
* This file is part of the ViSP software.
4
* Copyright (C) 2005 - 2015 by Inria. All rights reserved.
5
*
6
* This software is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* ("GPL") version 2 as published by the Free Software Foundation.
9
* See the file LICENSE.txt at the root directory of this source
10
* distribution for additional information about the GNU GPL.
11
*
12
* For using ViSP with software that can not be combined with the GNU
13
* GPL, please contact Inria about acquiring a ViSP Professional
14
* Edition License.
15
*
16
* See http://visp.inria.fr for more information.
17
*
18
* This software was developed at:
19
* Inria Rennes - Bretagne Atlantique
20
* Campus Universitaire de Beaulieu
21
* 35042 Rennes Cedex
22
* France
23
*
24
* If you have questions regarding the use of this file, please contact
25
* Inria at visp@inria.fr
26
*
27
* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
28
* WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
29
*
30
* Description:
31
* Module de Macros et de Types de bases en langage "C".
32
*
33
* Authors:
34
* Jean-Luc CORRE
35
*
36
*****************************************************************************/
37
#ifndef vpMy_H
38
#define vpMy_H
39
40
#include <visp3/core/vpConfig.h>
41
42
#ifndef DOXYGEN_SHOULD_SKIP_THIS
43
44
#ifndef NULL
45
#define NULL 0
46
#endif
47
#ifndef FALSE
48
#define FALSE 0
49
#endif
50
#ifndef TRUE
51
#define TRUE 1
52
#endif
53
54
#ifndef STDIN
55
#define STDIN 0
56
#endif
57
#ifndef STDOUT
58
#define STDOUT 1
59
#endif
60
#ifndef STDERR
61
#define STDERR 2
62
#endif
63
64
#define NAMESIZE 80
65
#define LINESIZE 256
66
67
68
#define M_EPSILON 1E-06
69
70
//#define ABS(X) (((X) < 0) ? -(X) : (X))
71
#define FABS(X) (((X) < 0.0) ? -(X) : (X))
72
//#define MAX(A,B) (((A) > (B)) ? (A) : (B))
73
//#define MAX3(A,B,C) (MAX(MAX(A,B),C))
74
//#define MIN(A,B) (((A) < (B)) ? (A) : (B))
75
//#define MIN3(A,B,C) (MIN(MIN(A,B),C))
76
77
#define MIN_MAX(M,MIN,MAX) if ((M) < (MIN)) (MIN) = (M);\
78
else if ((M) > (MAX)) (MAX) = (M)
79
80
#define TWO_POWER(P) (((P) > 0) ? 1 << (P) : 1)
81
#define SWAP(A,B,T) { (T) = (A); (A) = (B); (B) = (T); }
82
83
typedef
unsigned
char
Byte;
84
typedef
unsigned
short
Index;
85
typedef
char
Type;
86
87
void
fscanf_float (
float
*fp);
88
89
#endif
90
#endif
modules
robot
include
visp3
robot
vpMy.h
Generated by
1.8.9.1