hpp-corbaserver  4.10.1
Corba server for Humanoid Path Planner applications
path_planners-idl.hh
Go to the documentation of this file.
1 // This file is generated by omniidl (C++ backend)- omniORB_4_2. Do not edit.
2 #ifndef pp_core_idl__path__planners_hh__
3 #define pp_core_idl__path__planners_hh__
4 
5 #ifndef __CORBA_H_EXTERNAL_GUARD__
6 #include <omniORB4/CORBA.h>
7 #endif
8 
9 #ifndef USE_stub_in_nt_dll
10 # define USE_stub_in_nt_dll_NOT_DEFINED_path__planners
11 #endif
12 #ifndef USE_core_stub_in_nt_dll
13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_path__planners
14 #endif
15 #ifndef USE_dyn_stub_in_nt_dll
16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_path__planners
17 #endif
18 
19 
20 
21 #ifndef pp_core_idl__common_hh_EXTERNAL_GUARD__
22 #define pp_core_idl__common_hh_EXTERNAL_GUARD__
23 #include <hpp/common-idl.hh>
24 #endif
25 #ifndef pp_core_idl__paths_hh_EXTERNAL_GUARD__
26 #define pp_core_idl__paths_hh_EXTERNAL_GUARD__
28 #endif
29 #ifndef pp_core_idl__constraints_hh_EXTERNAL_GUARD__
30 #define pp_core_idl__constraints_hh_EXTERNAL_GUARD__
32 #endif
33 #ifndef pp_core_idl____constraints_hh_EXTERNAL_GUARD__
34 #define pp_core_idl____constraints_hh_EXTERNAL_GUARD__
36 #endif
37 
38 
39 
40 #ifdef USE_stub_in_nt_dll
41 # ifndef USE_core_stub_in_nt_dll
42 # define USE_core_stub_in_nt_dll
43 # endif
44 # ifndef USE_dyn_stub_in_nt_dll
45 # define USE_dyn_stub_in_nt_dll
46 # endif
47 #endif
48 
49 #ifdef _core_attr
50 # error "A local CPP macro _core_attr has already been defined."
51 #else
52 # ifdef USE_core_stub_in_nt_dll
53 # define _core_attr _OMNIORB_NTDLL_IMPORT
54 # else
55 # define _core_attr
56 # endif
57 #endif
58 
59 #ifdef _dyn_attr
60 # error "A local CPP macro _dyn_attr has already been defined."
61 #else
62 # ifdef USE_dyn_stub_in_nt_dll
63 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
64 # else
65 # define _dyn_attr
66 # endif
67 #endif
68 
69 
70 
71 _CORBA_MODULE hpp
72 
73 _CORBA_MODULE_BEG
74 
75  _CORBA_MODULE core_idl
76 
77  _CORBA_MODULE_BEG
78 
79 #ifndef __hpp_mcore__idl_mPath__
80 #define __hpp_mcore__idl_mPath__
81  class Path;
82  class _objref_Path;
83  class _impl_Path;
84 
85  typedef _objref_Path* Path_ptr;
86  typedef Path_ptr PathRef;
87 
88  class Path_Helper {
89  public:
91 
92  static _ptr_type _nil();
93  static _CORBA_Boolean is_nil(_ptr_type);
94  static void release(_ptr_type);
95  static void duplicate(_ptr_type);
96  static void marshalObjRef(_ptr_type, cdrStream&);
97  static _ptr_type unmarshalObjRef(cdrStream&);
98  };
99 
100  typedef _CORBA_ObjRef_Var<_objref_Path, Path_Helper> Path_var;
101  typedef _CORBA_ObjRef_OUT_arg<_objref_Path,Path_Helper > Path_out;
102 
103 #endif
104 
105 #ifndef __hpp_mcore__idl_mRoadmap__
106 #define __hpp_mcore__idl_mRoadmap__
107  class Roadmap;
108  class _objref_Roadmap;
110 
111  typedef _objref_Roadmap* Roadmap_ptr;
113 
115  public:
117 
118  static _ptr_type _nil();
119  static _CORBA_Boolean is_nil(_ptr_type);
120  static void release(_ptr_type);
121  static void duplicate(_ptr_type);
122  static void marshalObjRef(_ptr_type, cdrStream&);
123  static _ptr_type unmarshalObjRef(cdrStream&);
124  };
125 
126  typedef _CORBA_ObjRef_Var<_objref_Roadmap, Roadmap_Helper> Roadmap_var;
127  typedef _CORBA_ObjRef_OUT_arg<_objref_Roadmap,Roadmap_Helper > Roadmap_out;
128 
129 #endif
130 
131  // interface Roadmap
132  class Roadmap {
133  public:
134  // Declarations for this interface type.
137 
138  static _ptr_type _duplicate(_ptr_type);
139  static _ptr_type _narrow(::CORBA::Object_ptr);
140  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
141 
142  static _ptr_type _nil();
143 
144  static inline void _marshalObjRef(_ptr_type, cdrStream&);
145 
146  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
147  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
148  if (o)
149  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
150  else
151  return _nil();
152  }
153 
154  static inline _ptr_type _fromObjRef(omniObjRef* o) {
155  if (o)
156  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
157  else
158  return _nil();
159  }
160 
161  static _core_attr const char* _PD_repoId;
162 
163  // Other IDL defined within this scope.
164 
165  };
166 
168  public virtual ::CORBA::Object,
169  public virtual omniObjRef
170  {
171  public:
172  // IDL operations
173  void clear();
174  void addNode(const ::hpp::floatSeq& config);
175  void addNodeAndEdge(const ::hpp::floatSeq& cfgfrom, const ::hpp::floatSeq& cfgto, ::hpp::core_idl::Path_ptr path_);
176  void addNodeAndEdges(const ::hpp::floatSeq& cfgfrom, const ::hpp::floatSeq& cfgto, ::hpp::core_idl::Path_ptr path_);
177  floatSeq* nearestNode(const ::hpp::floatSeq& config, ::hpp::value_type& distance, ::CORBA::Boolean reverse);
178  floatSeqSeq* nearestNodes(const ::hpp::floatSeq& config, ::hpp::size_type& k);
179  size_type getNbNodes();
180  floatSeq* getNode(::hpp::size_type i);
181  size_type getNbEdges();
182  Path_ptr getEdge(::hpp::size_type i);
183 
184  // Constructors
185  inline _objref_Roadmap() { _PR_setobj(0); } // nil
186  _objref_Roadmap(omniIOR*, omniIdentity*);
187 
188  protected:
189  virtual ~_objref_Roadmap();
190 
191 
192  private:
193  virtual void* _ptrToObjRef(const char*);
194 
196  _objref_Roadmap& operator = (const _objref_Roadmap&);
197  // not implemented
198 
199  friend class Roadmap;
200  };
201 
202  class _pof_Roadmap : public _OMNI_NS(proxyObjectFactory) {
203  public:
204  inline _pof_Roadmap() : _OMNI_NS(proxyObjectFactory)(Roadmap::_PD_repoId) {}
205  virtual ~_pof_Roadmap();
206 
207  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
208  virtual _CORBA_Boolean is_a(const char*) const;
209  };
210 
212  public virtual omniServant
213  {
214  public:
215  virtual ~_impl_Roadmap();
216 
217  virtual void clear() = 0;
218  virtual void addNode(const ::hpp::floatSeq& config) = 0;
219  virtual void addNodeAndEdge(const ::hpp::floatSeq& cfgfrom, const ::hpp::floatSeq& cfgto, ::hpp::core_idl::Path_ptr path_) = 0;
220  virtual void addNodeAndEdges(const ::hpp::floatSeq& cfgfrom, const ::hpp::floatSeq& cfgto, ::hpp::core_idl::Path_ptr path_) = 0;
221  virtual floatSeq* nearestNode(const ::hpp::floatSeq& config, ::hpp::value_type& distance, ::CORBA::Boolean reverse) = 0;
222  virtual floatSeqSeq* nearestNodes(const ::hpp::floatSeq& config, ::hpp::size_type& k) = 0;
223  virtual size_type getNbNodes() = 0;
224  virtual floatSeq* getNode(::hpp::size_type i) = 0;
225  virtual size_type getNbEdges() = 0;
226  virtual Path_ptr getEdge(::hpp::size_type i) = 0;
227 
228  public: // Really protected, workaround for xlC
229  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
230 
231  private:
232  virtual void* _ptrToInterface(const char*);
233  virtual const char* _mostDerivedRepoId();
234 
235  };
236 
237 
238 #ifndef __hpp_mcore__idl_mPathPlanner__
239 #define __hpp_mcore__idl_mPathPlanner__
240  class PathPlanner;
241  class _objref_PathPlanner;
243 
246 
248  public:
250 
251  static _ptr_type _nil();
252  static _CORBA_Boolean is_nil(_ptr_type);
253  static void release(_ptr_type);
254  static void duplicate(_ptr_type);
255  static void marshalObjRef(_ptr_type, cdrStream&);
256  static _ptr_type unmarshalObjRef(cdrStream&);
257  };
258 
259  typedef _CORBA_ObjRef_Var<_objref_PathPlanner, PathPlanner_Helper> PathPlanner_var;
260  typedef _CORBA_ObjRef_OUT_arg<_objref_PathPlanner,PathPlanner_Helper > PathPlanner_out;
261 
262 #endif
263 
264  // interface PathPlanner
265  class PathPlanner {
266  public:
267  // Declarations for this interface type.
270 
271  static _ptr_type _duplicate(_ptr_type);
272  static _ptr_type _narrow(::CORBA::Object_ptr);
273  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
274 
275  static _ptr_type _nil();
276 
277  static inline void _marshalObjRef(_ptr_type, cdrStream&);
278 
279  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
280  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
281  if (o)
282  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
283  else
284  return _nil();
285  }
286 
287  static inline _ptr_type _fromObjRef(omniObjRef* o) {
288  if (o)
289  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
290  else
291  return _nil();
292  }
293 
294  static _core_attr const char* _PD_repoId;
295 
296  // Other IDL defined within this scope.
297 
298  };
299 
301  public virtual ::CORBA::Object,
302  public virtual omniObjRef
303  {
304  public:
305  // IDL operations
306  PathVector_ptr solve();
307  void startSolve();
308  void tryConnectInitAndGoals();
309  void oneStep();
310  PathVector_ptr computePath();
311  PathVector_ptr finishSolve(::hpp::core_idl::PathVector_ptr path);
312  void interrupt();
313  void maxIterations(::hpp::size_type n);
314  void timeOut(::hpp::value_type seconds);
315  Roadmap_ptr getRoadmap();
316 
317  // Constructors
318  inline _objref_PathPlanner() { _PR_setobj(0); } // nil
319  _objref_PathPlanner(omniIOR*, omniIdentity*);
320 
321  protected:
322  virtual ~_objref_PathPlanner();
323 
324 
325  private:
326  virtual void* _ptrToObjRef(const char*);
327 
329  _objref_PathPlanner& operator = (const _objref_PathPlanner&);
330  // not implemented
331 
332  friend class PathPlanner;
333  };
334 
335  class _pof_PathPlanner : public _OMNI_NS(proxyObjectFactory) {
336  public:
337  inline _pof_PathPlanner() : _OMNI_NS(proxyObjectFactory)(PathPlanner::_PD_repoId) {}
338  virtual ~_pof_PathPlanner();
339 
340  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
341  virtual _CORBA_Boolean is_a(const char*) const;
342  };
343 
345  public virtual omniServant
346  {
347  public:
348  virtual ~_impl_PathPlanner();
349 
350  virtual PathVector_ptr solve() = 0;
351  virtual void startSolve() = 0;
352  virtual void tryConnectInitAndGoals() = 0;
353  virtual void oneStep() = 0;
354  virtual PathVector_ptr computePath() = 0;
355  virtual PathVector_ptr finishSolve(::hpp::core_idl::PathVector_ptr path) = 0;
356  virtual void interrupt() = 0;
357  virtual void maxIterations(::hpp::size_type n) = 0;
358  virtual void timeOut(::hpp::value_type seconds) = 0;
359  virtual Roadmap_ptr getRoadmap() = 0;
360 
361  public: // Really protected, workaround for xlC
362  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
363 
364  private:
365  virtual void* _ptrToInterface(const char*);
366  virtual const char* _mostDerivedRepoId();
367 
368  };
369 
370 
371  _CORBA_MODULE_END
372 
373 _CORBA_MODULE_END
374 
375 
376 
377 _CORBA_MODULE POA_hpp
378 _CORBA_MODULE_BEG
379 
380  _CORBA_MODULE core_idl
381  _CORBA_MODULE_BEG
382 
383  class Roadmap :
384  public virtual hpp::core_idl::_impl_Roadmap,
385  public virtual ::PortableServer::ServantBase
386  {
387  public:
388  virtual ~Roadmap();
389 
391  return (::hpp::core_idl::Roadmap_ptr) _do_this(::hpp::core_idl::Roadmap::_PD_repoId);
392  }
393  };
394 
395  class PathPlanner :
396  public virtual hpp::core_idl::_impl_PathPlanner,
397  public virtual ::PortableServer::ServantBase
398  {
399  public:
400  virtual ~PathPlanner();
401 
403  return (::hpp::core_idl::PathPlanner_ptr) _do_this(::hpp::core_idl::PathPlanner::_PD_repoId);
404  }
405  };
406 
407  _CORBA_MODULE_END
408 
409 _CORBA_MODULE_END
410 
411 
412 
413 _CORBA_MODULE OBV_hpp
414 _CORBA_MODULE_BEG
415 
416  _CORBA_MODULE core_idl
417  _CORBA_MODULE_BEG
418 
419  _CORBA_MODULE_END
420 
421 _CORBA_MODULE_END
422 
423 
424 
425 
426 
427 #undef _core_attr
428 #undef _dyn_attr
429 
430 
431 
432 inline void
433 hpp::core_idl::Roadmap::_marshalObjRef(::hpp::core_idl::Roadmap_ptr obj, cdrStream& s) {
434  omniObjRef::_marshal(obj->_PR_getobj(),s);
435 }
436 
437 inline void
438 hpp::core_idl::PathPlanner::_marshalObjRef(::hpp::core_idl::PathPlanner_ptr obj, cdrStream& s) {
439  omniObjRef::_marshal(obj->_PR_getobj(),s);
440 }
441 
442 
443 
444 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_path__planners
445 # undef USE_stub_in_nt_dll
446 # undef USE_stub_in_nt_dll_NOT_DEFINED_path__planners
447 #endif
448 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_path__planners
449 # undef USE_core_stub_in_nt_dll
450 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_path__planners
451 #endif
452 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_path__planners
453 # undef USE_dyn_stub_in_nt_dll
454 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_path__planners
455 #endif
456 
457 #endif // __path__planners_hh__
458 
_objref_PathPlanner * PathPlanner_ptr
Definition: path_planners-idl.hh:242
Definition: path_planners-idl.hh:211
Definition: path_planners-idl.hh:265
#define _core_attr
Definition: path_planners-idl.hh:55
Definition: paths-idl.hh:333
static _CORBA_Boolean is_nil(_ptr_type)
_CORBA_ObjRef_Var< _objref_Path, Path_Helper > Path_var
Definition: path_planners-idl.hh:100
Definition: path_planners-idl.hh:344
_CORBA_ObjRef_OUT_arg< _objref_Path, Path_Helper > Path_out
Definition: path_planners-idl.hh:101
Implement CORBA interface ``Obstacle&#39;&#39;.
Definition: basic-server.hh:27
inline ::hpp::core_idl::PathPlanner_ptr _this()
Definition: path_planners-idl.hh:402
Definition: path_planners-idl.hh:114
static _ptr_type unmarshalObjRef(cdrStream &)
_CORBA_ObjRef_Var< _objref_PathPlanner, PathPlanner_Helper > PathPlanner_var
Definition: path_planners-idl.hh:259
Definition: paths-idl.hh:192
double value_type
Definition: common.idl:18
Roadmap_ptr RoadmapRef
Definition: path_planners-idl.hh:112
Roadmap_ptr _ptr_type
Definition: path_planners-idl.hh:135
::CORBA::LongLong size_type
Definition: common-idl.hh:66
static void marshalObjRef(_ptr_type, cdrStream &)
_pof_Roadmap()
Definition: path_planners-idl.hh:204
_objref_Roadmap * Roadmap_ptr
Definition: path_planners-idl.hh:109
static _ptr_type _unmarshalObjRef(cdrStream &s)
Definition: path_planners-idl.hh:146
Roadmap_ptr _ptr_type
Definition: path_planners-idl.hh:116
static _ptr_type _fromObjRef(omniObjRef *o)
Definition: path_planners-idl.hh:154
Definition: path_planners-idl.hh:247
_objref_PathPlanner()
Definition: path_planners-idl.hh:318
Path_ptr _ptr_type
Definition: path_planners-idl.hh:90
Definition: path_planners-idl.hh:167
Definition: paths-idl.hh:157
_pof_PathPlanner()
Definition: path_planners-idl.hh:337
Definition: common-idl.hh:684
Definition: path_planners-idl.hh:132
static void release(_ptr_type)
static _ptr_type _fromObjRef(omniObjRef *o)
Definition: path_planners-idl.hh:287
PathPlanner_ptr PathPlannerRef
Definition: path_planners-idl.hh:245
PathPlanner_var _var_type
Definition: path_planners-idl.hh:269
inline ::hpp::core_idl::Roadmap_ptr _this()
Definition: path_planners-idl.hh:390
static _ptr_type _nil()
_objref_PathVector * PathVector_ptr
Definition: paths-idl.hh:82
_objref_Roadmap()
Definition: path_planners-idl.hh:185
_CORBA_ObjRef_OUT_arg< _objref_PathPlanner, PathPlanner_Helper > PathPlanner_out
Definition: path_planners-idl.hh:260
Definition: paths-idl.hh:240
PathPlanner_ptr _ptr_type
Definition: path_planners-idl.hh:268
static _ptr_type _unmarshalObjRef(cdrStream &s)
Definition: path_planners-idl.hh:279
static _core_attr const char * _PD_repoId
Definition: path_planners-idl.hh:294
PathPlanner_ptr _ptr_type
Definition: path_planners-idl.hh:249
Definition: path_planners-idl.hh:335
Path_ptr PathRef
Definition: path_planners-idl.hh:86
Roadmap_var _var_type
Definition: path_planners-idl.hh:136
Definition: common-idl.hh:570
static _core_attr const char * _PD_repoId
Definition: path_planners-idl.hh:161
_objref_Path * Path_ptr
Definition: path_planners-idl.hh:83
Definition: path_planners-idl.hh:300
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:32
Definition: path_planners-idl.hh:202
_CORBA_ObjRef_OUT_arg< _objref_Roadmap, Roadmap_Helper > Roadmap_out
Definition: path_planners-idl.hh:127
static void duplicate(_ptr_type)
_CORBA_ObjRef_Var< _objref_Roadmap, Roadmap_Helper > Roadmap_var
Definition: path_planners-idl.hh:126
Definition: path_planners-idl.hh:88
long long size_type
Definition: common.idl:19