YARP
Yet Another Robot Platform
Robot.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_ROBOTINTERFACE_ROBOT_H
10 #define YARP_ROBOTINTERFACE_ROBOT_H
11 
15 
16 namespace yarp {
17 namespace robotinterface {
18 namespace experimental {
19 
21 {
22 public:
23  explicit Robot();
24  explicit Robot(const std::string& name, const DeviceList& devices = DeviceList());
25  Robot(const Robot& other);
26  Robot& operator=(const Robot& other);
27 
28  virtual ~Robot();
29 
30  std::string& name();
31  unsigned int& build();
32  std::string& portprefix();
33 
34  void setVerbose(bool verbose);
35  void setAllowDeprecatedDevices(bool allowDeprecatedDevices);
36 
37  ParamList& params();
38  DeviceList& devices();
39  Device& device(const std::string& name);
40 
41  const std::string& name() const;
42  const unsigned int& build() const;
43  const std::string& portprefix() const;
44  const ParamList& params() const;
45  const DeviceList& devices() const;
46  const Device& device(const std::string& name) const;
47 
48  bool hasParam(const std::string& name) const;
49  std::string findParam(const std::string& name) const;
50 
51  void interrupt();
52  bool setExternalDevices(const yarp::dev::PolyDriverList& list);
55  int currentLevel() const;
56 
57 private:
58  class Private;
59  Private* const mPriv;
60 }; // class Robot
61 
62 } // namespace experimental
63 } // namespace robotinterface
64 } // namespace yarp
65 
66 YARP_robotinterface_API std::ostringstream& operator<<(std::ostringstream& oss, const yarp::robotinterface::experimental::Robot& t);
68 
69 
70 #endif // YARP_ROBOTINTERFACE_ROBOT_H
float t
std::ostringstream & operator<<(std::ostringstream &oss, const yarp::robotinterface::experimental::Robot &t)
Definition: Robot.cpp:26
std::string findParam(const robotinterface::experimental::ParamList &list, const std::string &name)
Definition: Types.cpp:29
bool hasParam(const robotinterface::experimental::ParamList &list, const std::string &name)
Definition: Types.cpp:19
std::vector< robotinterface::experimental::Device > DeviceList
Definition: Types.h:36
std::vector< robotinterface::experimental::Param > ParamList
Definition: Types.h:32
The main, catch-all namespace for YARP.
Definition: environment.h:18
#define YARP_robotinterface_API
Definition: api.h:19