openrave-yarp-plugins
OypPortReader.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __OPEN_PORT_READER_HPP__
4 #define __OPEN_PORT_READER_HPP__
5 
6 #include <yarp/os/PortReader.h>
7 
8 namespace roboticslab
9 {
10 
11 class OpenraveYarpPlanner;
12 
17 class OypPortReader: public yarp::os::PortReader
18 {
19 public:
20  void setOpenraveYarpPlannerPtr(OpenraveYarpPlanner *value) { openraveYarpPlannerPtr = value; }
21 private:
22  OpenraveYarpPlanner* openraveYarpPlannerPtr;
23 
24  bool read(yarp::os::ConnectionReader& in) override;
25 
26  // Internally used members
27  bool checkIfString(yarp::os::Bottle& request, int index, yarp::os::Bottle& response);
28  bool tryToSetActiveManipulator(const std::string& robot, const std::string& manipulator, yarp::os::Bottle& response);
29 };
30 
31 } // namespace roboticslab
32 
33 #endif // __OPEN_PORT_READER_HPP__
Loads one or several YARP Plugin, passing environment pointer.
Definition: OpenraveYarpPlanner.hpp:30
Processes RPC requests for OpenraveYarpPlanner.
Definition: OypPortReader.hpp:18
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5