openrave-yarp-plugins
Loading...
Searching...
No Matches
YarpOpenraveRobotManager.hpp
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3#ifndef __YARP_OPENRAVE_ROBOT_MANAGER_HPP__
4#define __YARP_OPENRAVE_ROBOT_MANAGER_HPP__
5
6#include <yarp/dev/DeviceDriver.h>
7
8#include <openrave/openrave.h>
9
10#include <IRobotManager.hpp>
11
12#include "YarpOpenraveBase.hpp"
13
14namespace roboticslab
15{
16
30 public yarp::dev::DeviceDriver,
31 public asrob::IRobotManager
32{
33public:
36 {
37 TRANSFORM_IDEALCONTROLLER,
38 FOUR_WHEEL_IDEALVELOCITYCONTROLLER
39 };
40
41 // -------- DeviceDriver declarations. Implementation in DeviceDriverImpl.cpp --------
42 bool open(yarp::os::Searchable& config) override;
43 bool close() override;
44
45 // ------- IRobotManager declarations. Implementation in IRobotManagerImpl.cpp -------
46 bool moveForward(double value) override;
47 bool turnLeft(double value) override;
48 bool stopMovement() override;
49 bool tiltDown(double value) override;
50 bool panLeft(double value) override;
51 bool stopCameraMovement() override;
52
53private:
54 robot_mode mode;
55
56 // OpenRAVE
57 OpenRAVE::ControllerBasePtr pcontrol;
58};
59
60} // namespace roboticslab
61
62#endif // __YARP_OPENRAVE_ROBOT_MANAGER_HPP__
Implements shared configuration functions.
Definition YarpOpenraveBase.hpp:32
Implements the YARP_dev DeviceDriver, and IRobotManager. interface class member functions.
Definition YarpOpenraveRobotManager.hpp:32
robot_mode
Lists available translational representations.
Definition YarpOpenraveRobotManager.hpp:36
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:5