include
naoqi_driver
tools.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2015 Aldebaran
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*
16
*/
17
18
19
#ifndef ALROS_TOOLS_HPP
20
#define ALROS_TOOLS_HPP
21
22
#define RESETCOLOR "\033[0m"
23
#define GREEN "\033[32m"
24
#define HIGHGREEN "\033[92m"
25
#define BOLDRED "\033[1m\033[31m"
26
#define YELLOW "\033[33m"
27
#define BOLDYELLOW "\033[1m\033[33m"
28
#define BOLDCYAN "\033[1m\033[36m"
29
30
# include <qi/anyobject.hpp>
31
32
namespace
naoqi
33
{
34
35
namespace
robot
36
{
37
enum
Robot
38
{
39
UNIDENTIFIED
,
40
NAO
,
41
PEPPER
,
42
ROMEO
43
};
44
45
struct
NaoqiVersion
46
{
47
int
major
;
48
int
minor
;
49
int
patch
;
50
int
build
;
51
std::string
text
;
52
};
53
}
54
55
enum
Topics
{
56
Laser
= 0,
57
Camera
,
58
Sonar
59
};
60
61
namespace
dataType {
62
enum
DataType
63
{
64
None
= 0,
65
Float
,
66
Int
,
67
String
,
68
Bool
69
};
70
}
71
72
}
// naoqi
73
74
#if LIBQI_VERSION>24
75
QI_TYPE_ENUM
(
naoqi::Topics
);
76
QI_TYPE_ENUM
(
naoqi::dataType::DataType
);
77
#else
78
QI_TYPE_ENUM_REGISTER
(
naoqi::Topics
);
79
QI_TYPE_ENUM_REGISTER
(
naoqi::dataType::DataType
);
80
#endif
81
82
#endif
naoqi::robot::NaoqiVersion
Definition:
tools.hpp:45
naoqi::robot::UNIDENTIFIED
@ UNIDENTIFIED
Definition:
tools.hpp:39
naoqi::Topics
Topics
Definition:
tools.hpp:55
QI_TYPE_ENUM
QI_TYPE_ENUM(ProgressNotifier::Status)
QI_TYPE_ENUM_REGISTER
QI_TYPE_ENUM_REGISTER(naoqi::Topics)
naoqi::dataType::String
@ String
Definition:
tools.hpp:67
naoqi
Definition:
converter.hpp:29
naoqi::Laser
@ Laser
Definition:
tools.hpp:56
naoqi::dataType::None
@ None
Definition:
tools.hpp:64
naoqi::dataType::Float
@ Float
Definition:
tools.hpp:65
naoqi::robot::NaoqiVersion::patch
int patch
Definition:
tools.hpp:49
Robot
naoqi::robot::NaoqiVersion::major
int major
Definition:
tools.hpp:47
naoqi::robot::PEPPER
@ PEPPER
Definition:
tools.hpp:41
naoqi::Camera
@ Camera
Definition:
tools.hpp:57
naoqi::Sonar
@ Sonar
Definition:
tools.hpp:58
naoqi::robot::NAO
@ NAO
Definition:
tools.hpp:40
naoqi::dataType::Bool
@ Bool
Definition:
tools.hpp:68
naoqi::robot::NaoqiVersion::text
std::string text
Definition:
tools.hpp:51
naoqi::robot::ROMEO
@ ROMEO
Definition:
tools.hpp:42
naoqi::robot::NaoqiVersion::minor
int minor
Definition:
tools.hpp:48
naoqi::robot::NaoqiVersion::build
int build
Definition:
tools.hpp:50
naoqi::dataType::Int
@ Int
Definition:
tools.hpp:66
naoqi::dataType::DataType
DataType
Definition:
tools.hpp:62
naoqi_driver
Author(s): Karsten Knese
autogenerated on Sat Feb 3 2024 03:50:06