Visual Servoing Platform
version 3.0.1
Main Page
Related Pages
Modules
Namespaces
Classes
Examples
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
vpMy.h
1
/****************************************************************************
2
*
3
* This file is part of the ViSP software.
4
* Copyright (C) 2005 - 2017 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
#include <visp3/robot/vpWireFrameSimulatorTypes.h>
45
46
#ifndef NULL
47
#define NULL 0
48
#endif
49
#ifndef FALSE
50
#define FALSE 0
51
#endif
52
#ifndef TRUE
53
#define TRUE 1
54
#endif
55
56
#ifndef STDIN
57
#define STDIN 0
58
#endif
59
#ifndef STDOUT
60
#define STDOUT 1
61
#endif
62
#ifndef STDERR
63
#define STDERR 2
64
#endif
65
66
#define NAMESIZE 80
67
#define LINESIZE 256
68
69
70
#define M_EPSILON 1E-06
71
72
//#define ABS(X) (((X) < 0) ? -(X) : (X))
73
#define FABS(X) (((X) < 0.0) ? -(X) : (X))
74
//#define MAX(A,B) (((A) > (B)) ? (A) : (B))
75
//#define MAX3(A,B,C) (MAX(MAX(A,B),C))
76
//#define MIN(A,B) (((A) < (B)) ? (A) : (B))
77
//#define MIN3(A,B,C) (MIN(MIN(A,B),C))
78
79
#define MIN_MAX(M,MIN,MAX) if ((M) < (MIN)) (MIN) = (M);\
80
else if ((M) > (MAX)) (MAX) = (M)
81
82
#define TWO_POWER(P) (((P) > 0) ? 1 << (P) : 1)
83
#define SWAP(A,B,T) { (T) = (A); (A) = (B); (B) = (T); }
84
85
typedef
unsigned
char
Byte;
86
87
#endif
88
#endif
local
soft
ViSP
ViSP-web-script
visp
modules
robot
src
wireframe-simulator
vpMy.h
Generated by
1.8.6