hpp-manipulation-corba  4.9.0
Corba server for manipulation planning
client.hh
Go to the documentation of this file.
1 // Copyright (C) 2015 by Joseph Mirabel
2 //
3 // This file is part of the hpp-manipulation-corba.
4 //
5 // This software is provided "as is" without warranty of any kind,
6 // either expressed or implied, including but not limited to the
7 // implied warranties of fitness for a particular purpose.
8 //
9 // See the COPYING file for more information.
10 
11 #ifndef HPP_MANIPULATION_CORBA_CLIENT_HH
12 # define HPP_MANIPULATION_CORBA_CLIENT_HH
13 
14 # include <omniORB4/CORBA.h>
15 
16 # include <hpp/corbaserver/client.hh>
17 # include <hpp/corbaserver/manipulation/robot-idl.hh>
18 # include <hpp/corbaserver/manipulation/problem-idl.hh>
19 # include <hpp/corbaserver/manipulation/graph-idl.hh>
20 # include <hpp/corbaserver/obstacle-idl.hh>
21 
22 # include <hpp/corbaserver/manipulation/config.hh>
23 
24 namespace hpp
25 {
26  namespace corbaServer
27  {
28  namespace manipulation
29  {
30  class HPP_MANIPULATION_CORBA_DLLAPI Client : public ClientBase
31  {
32  public:
33  Client (int argc, char* argv[]);
34 
35  ~Client ();
36 
39  void connect (const char* iiop = "corbaloc:iiop:",
40  const char* context = "corbaserver");
41 
42 
43  hpp::corbaserver::manipulation::Robot_var& robot () {
44  return robot_;
45  }
46 
47  hpp::corbaserver::manipulation::Problem_var& problem () {
48  return problem_;
49  }
50 
51  hpp::corbaserver::manipulation::Graph_var& graph () {
52  return graph_;
53  }
54 
55  private:
56  hpp::corbaserver::manipulation::Robot_var robot_;
57  hpp::corbaserver::manipulation::Problem_var problem_;
58  hpp::corbaserver::manipulation::Graph_var graph_;
59  };
60  } // end of namespace manipulation.
61  } // end of namespace corbaServer.
62 } // end of namespace hpp.
63 
64 #endif // HPP_MANIPULATION_CORBA_CLIENT_HH
hpp::corbaserver::manipulation::Graph_var & graph()
Definition: client.hh:51
DevicePtr_t robot_
hpp::corbaserver::manipulation::Problem_var & problem()
Definition: client.hh:47
hpp::corbaserver::manipulation::Robot_var & robot()
Definition: client.hh:43