hpp-manipulation-corba  5.0.0
Corba server for manipulation planning
client.hh
Go to the documentation of this file.
1 // Copyright (C) 2015 by Joseph Mirabel
2 //
3 
4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are
6 // met:
7 //
8 // 1. Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer.
10 //
11 // 2. Redistributions in binary form must reproduce the above copyright
12 // notice, this list of conditions and the following disclaimer in the
13 // documentation and/or other materials provided with the distribution.
14 //
15 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19 // HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
26 // DAMAGE.
27 //
28 // This software is provided "as is" without warranty of any kind,
29 // either expressed or implied, including but not limited to the
30 // implied warranties of fitness for a particular purpose.
31 //
32 // See the COPYING file for more information.
33 
34 #ifndef HPP_MANIPULATION_CORBA_CLIENT_HH
35 #define HPP_MANIPULATION_CORBA_CLIENT_HH
36 
37 #include <omniORB4/CORBA.h>
38 
39 #include <hpp/corbaserver/client.hh>
41 #include <hpp/corbaserver/manipulation/graph-idl.hh>
42 #include <hpp/corbaserver/manipulation/problem-idl.hh>
43 #include <hpp/corbaserver/manipulation/robot-idl.hh>
44 #include <hpp/corbaserver/obstacle-idl.hh>
45 
46 namespace hpp {
47 namespace corbaServer {
48 namespace manipulation {
49 class HPP_MANIPULATION_CORBA_DLLAPI Client : public ClientBase {
50  public:
51  Client(int argc, char* argv[]);
52 
54 
57  void connect(const char* iiop = "corbaloc:iiop:",
58  const char* context = "corbaserver");
59 
60  hpp::corbaserver::manipulation::Robot_var& robot() { return robot_; }
61 
62  hpp::corbaserver::manipulation::Problem_var& problem() { return problem_; }
63 
64  hpp::corbaserver::manipulation::Graph_var& graph() { return graph_; }
65 
66  private:
67  hpp::corbaserver::manipulation::Robot_var robot_;
68  hpp::corbaserver::manipulation::Problem_var problem_;
69  hpp::corbaserver::manipulation::Graph_var graph_;
70 };
71 } // end of namespace manipulation.
72 } // end of namespace corbaServer.
73 } // end of namespace hpp.
74 
75 #endif // HPP_MANIPULATION_CORBA_CLIENT_HH
void connect(const char *iiop="corbaloc:iiop:", const char *context="corbaserver")
hpp::corbaserver::manipulation::Robot_var & robot()
Definition: client.hh:60
hpp::corbaserver::manipulation::Problem_var & problem()
Definition: client.hh:62
hpp::corbaserver::manipulation::Graph_var & graph()
Definition: client.hh:64
#define HPP_MANIPULATION_CORBA_DLLAPI
Definition: config.hh:88
Definition: client.hh:46