YARP
Yet Another Robot Platform
Loading...
Searching...
No Matches
Robot.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3
* SPDX-License-Identifier: BSD-3-Clause
4
*/
5
6
#ifndef YARP_ROBOTINTERFACE_ROBOT_H
7
#define YARP_ROBOTINTERFACE_ROBOT_H
8
9
#include <
yarp/robotinterface/api.h
>
10
#include <
yarp/robotinterface/Device.h
>
11
#include <
yarp/robotinterface/Types.h
>
12
13
namespace
yarp::robotinterface
{
14
15
class
YARP_robotinterface_API
Robot
16
{
17
public
:
18
explicit
Robot
();
19
explicit
Robot
(
const
std::string& name,
const
DeviceList
& devices =
DeviceList
());
20
Robot
(
const
Robot
& other);
21
Robot
& operator=(
const
Robot
& other);
22
23
virtual
~Robot
();
24
25
std::string& name();
26
unsigned
int
& build();
27
std::string& portprefix();
28
29
void
setVerbose(
bool
verbose);
30
void
setAllowDeprecatedDevices(
bool
allowDeprecatedDevices);
31
void
setDryRun(
bool
dryrun);
32
void
setReverseShutdownActionOrder(
bool
reverseShutdownActionOrder);
33
34
ParamList
& params();
35
DeviceList
& devices();
36
Device
& device(
const
std::string& name);
37
38
const
std::string& name()
const
;
39
const
unsigned
int
& build()
const
;
40
const
std::string& portprefix()
const
;
41
const
ParamList
& params()
const
;
42
43
const
DeviceList
& devices()
const
;
44
bool
hasDevice(
const
std::string& name)
const
;
45
const
Device
& device(
const
std::string& name)
const
;
46
47
bool
hasParam
(
const
std::string& name)
const
;
48
std::string
findParam
(
const
std::string& name)
const
;
49
50
void
interrupt();
51
bool
setExternalDevices(
const
yarp::dev::PolyDriverList
& list);
52
bool
enterPhase(
yarp::robotinterface::ActionPhase
phase);
53
yarp::robotinterface::ActionPhase
currentPhase()
const
;
54
int
currentLevel()
const
;
55
56
private
:
57
class
Private
;
58
Private
*
const
mPriv;
59
};
// class Robot
60
61
}
// namespace yarp::robotinterface
62
63
YARP_robotinterface_API
yarp::os::LogStream
operator<<
(
yarp::os::LogStream
dbg,
const
yarp::robotinterface::Robot
&
t
);
64
65
66
#endif
// YARP_ROBOTINTERFACE_ROBOT_H
Device.h
t
float t
Definition
FfmpegWriter.cpp:71
Types.h
yarp::dev::PolyDriverList
Definition
PolyDriverList.h:17
yarp::os::LogStream
Definition
LogStream.h:29
yarp::robotinterface::Device
Definition
Device.h:24
yarp::robotinterface::Robot::Private
Definition
Robot.cpp:42
yarp::robotinterface::Robot
Definition
Robot.h:16
operator<<
yarp::os::LogStream operator<<(yarp::os::LogStream dbg, const yarp::robotinterface::experimental::Robot &t)
yarp::robotinterface
Definition
Action.h:11
yarp::robotinterface::hasParam
bool hasParam(const robotinterface::ParamList &list, const std::string &name)
Definition
Types.cpp:16
yarp::robotinterface::ParamList
std::vector< robotinterface::Param > ParamList
Definition
Types.h:30
yarp::robotinterface::findParam
std::string findParam(const robotinterface::ParamList &list, const std::string &name)
Definition
Types.cpp:26
yarp::robotinterface::DeviceList
std::vector< robotinterface::Device > DeviceList
Definition
Types.h:32
yarp::robotinterface::ActionPhase
ActionPhase
Definition
Types.h:42
api.h
YARP_robotinterface_API
#define YARP_robotinterface_API
Definition
api.h:18
YARP
3.9.0+216-20240913.4+git627c4e30d
src
libYARP_robotinterface
src
yarp
robotinterface
Robot.h
Generated on Sat Sep 14 2024 02:26:32 for YARP by
1.9.8