hpp-corbaserver  4.9.0
Corba server for Humanoid Path Planner applications
path_planners.hh
Go to the documentation of this file.
1 #ifndef hpp_core_idl__path__planners_hxx__
2 #define hpp_core_idl__path__planners_hxx__
3 
4 //
5 // Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-4.9.0/idl/hpp/core_idl/path_planners.idl
6 //
7 
9 
10 #include <sstream>
11 
12 #include <hpp/corbaserver/fwd.hh>
15 
16 namespace hpp {
17 
18 namespace corbaServer {
19 
20 //
21 // Implementational code for IDL interface hpp::core_idl::PathPlanner
22 //
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
26  : ServantBase<hpp::core::PathPlanner, _Storage> (server, s)
27 {
28  // add extra constructor code here
29 }
30 template <typename _Base, typename _Storage>
32 {
33  // add extra destructor code here
34 }
35 
36 // Methods corresponding to IDL attributes and operations
37 
38 template <typename _Base, typename _Storage>
40 {
41  try {
42  // automatically generated code.
43 
44  hpp::core::PathVectorPtr_t __return__ (getT()->solve ());
45 
46  return makeServantDownCast<hpp::corbaServer::core_impl::Path,hpp::corbaServer::core_impl::PathVector>(server_, __return__)._retn();
47  } catch (const std::exception& e) {
48  throw ::hpp::Error (e.what());
49  }
50 }
51 
52 template <typename _Base, typename _Storage>
54 {
55  try {
56  // automatically generated code.
57 
58  (getT()->startSolve ());
59 
60 
61  } catch (const std::exception& e) {
62  throw ::hpp::Error (e.what());
63  }
64 }
65 
66 template <typename _Base, typename _Storage>
68 {
69  try {
70  // automatically generated code.
71 
72  (getT()->tryConnectInitAndGoals ());
73 
74 
75  } catch (const std::exception& e) {
76  throw ::hpp::Error (e.what());
77  }
78 }
79 
80 template <typename _Base, typename _Storage>
82 {
83  try {
84  // automatically generated code.
85 
86  (getT()->oneStep ());
87 
88 
89  } catch (const std::exception& e) {
90  throw ::hpp::Error (e.what());
91  }
92 }
93 
94 template <typename _Base, typename _Storage>
96 {
97  try {
98  // automatically generated code.
99 
100  hpp::core::PathVectorPtr_t __return__ (getT()->computePath ());
101 
102  return makeServantDownCast<hpp::corbaServer::core_impl::Path,hpp::corbaServer::core_impl::PathVector>(server_, __return__)._retn();
103  } catch (const std::exception& e) {
104  throw ::hpp::Error (e.what());
105  }
106 }
107 
108 template <typename _Base, typename _Storage>
110 {
111  try {
112  // automatically generated code.
113  hpp::core::PathVectorPtr_t _path = reference_to_servant_base<hpp::core::PathVector>(server_, path)->get();
114  hpp::core::PathVectorPtr_t __return__ (getT()->finishSolve (_path));
115 
116  return makeServantDownCast<hpp::corbaServer::core_impl::Path,hpp::corbaServer::core_impl::PathVector>(server_, __return__)._retn();
117  } catch (const std::exception& e) {
118  throw ::hpp::Error (e.what());
119  }
120 }
121 
122 template <typename _Base, typename _Storage>
124 {
125  try {
126  // automatically generated code.
127 
128  (getT()->interrupt ());
129 
130 
131  } catch (const std::exception& e) {
132  throw ::hpp::Error (e.what());
133  }
134 }
135 
136 template <typename _Base, typename _Storage>
138 {
139  try {
140  // automatically generated code.
141 
142  (getT()->maxIterations (n));
143 
144 
145  } catch (const std::exception& e) {
146  throw ::hpp::Error (e.what());
147  }
148 }
149 
150 template <typename _Base, typename _Storage>
152 {
153  try {
154  // automatically generated code.
155 
156  (getT()->timeOut (seconds));
157 
158 
159  } catch (const std::exception& e) {
160  throw ::hpp::Error (e.what());
161  }
162 }
163 
164 // End of implementational code
165 } // namespace core_impl
166 
167 
168 
169 } // namespace hpp
170 
171 } // namespace corbaServer
172 
173 #endif // hpp_core_idl__path__planners_hxx__
174 
Definition: servant-base.hh:100
hpp::core_idl::PathVector_ptr finishSolve(hpp::core_idl::PathVector_ptr path)
Definition: path_planners.hh:109
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
void interrupt()
Definition: path_planners.hh:123
double value_type
Definition: common.idl:18
void oneStep()
Definition: path_planners.hh:81
hpp::core_idl::PathVector_ptr computePath()
Definition: path_planners.hh:95
void timeOut(hpp::value_type seconds)
Definition: path_planners.hh:151
void maxIterations(hpp::size_type n)
Definition: path_planners.hh:137
hpp::core_idl::PathVector_ptr solve()
Definition: path_planners.hh:39
void tryConnectInitAndGoals()
Definition: path_planners.hh:67
void startSolve()
Definition: path_planners.hh:53
virtual ~PathPlannerServant()
Definition: path_planners.hh:31
_objref_PathVector * PathVector_ptr
Definition: paths-idl.hh:74
Definition: path_planners-fwd.hh:25
core::PathVectorPtr_t PathVectorPtr_t
Definition: fwd.hh:71
Implementation of Hpp module Corba server.
Definition: server.hh:54
PathPlannerServant(Server *server, const _Storage &s)
Definition: path_planners.hh:25
StorageElementShPtr_t getT() const
Definition: servant-base.hh:121
long long size_type
Definition: common.idl:19