openrave-yarp-plugins
YarpOpenraveBase.hpp
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 #ifndef __YARP_OPENRAVE_BASE_HPP__
4 #define __YARP_OPENRAVE_BASE_HPP__
5 
6 #include <string>
7 
8 #include <yarp/os/Searchable.h>
9 
10 #include <openrave-core.h>
11 
12 #include <boost/thread/thread.hpp>
13 
14 namespace roboticslab
15 {
16 
17 // Specific for --env parameter
18 void SetViewer(OpenRAVE::EnvironmentBasePtr penv, const std::string& viewername);
19 
32 {
33 public:
35 
36 protected:
37  bool configureEnvironment(yarp::os::Searchable& config);
38  bool configureOpenravePlugins(yarp::os::Searchable& config);
39  bool configureRobot(yarp::os::Searchable& config);
40  bool clean();
41 
42  //OpenRAVE//
43  OpenRAVE::EnvironmentBasePtr penv;
44  OpenRAVE::RobotBasePtr probot;
45  std::string robotName;
46 
47  // Specific for --env parameter with --view
48  boost::thread_group openraveThreads;
49 };
50 
51 } // namespace roboticslab
52 
53 #endif // __YARP_OPENRAVE_BASE_HPP__
Implements shared configuration functions.
Definition: YarpOpenraveBase.hpp:32
The main, catch-all namespace for Robotics Lab UC3M.
Definition: groups.dox:5