hpp-corbaserver: src/hpp/core_idl/distances-fwd.hh Source File

hpp-corbaserver 9.0.2 Corba server for Humanoid Path Planner applications

distances-fwd.hh
Go to the documentation of this file.
1 #ifndef hpp_core_idl__distances_hpp__
2 #define hpp_core_idl__distances_hpp__
3
4 //
5 // Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-9.0.2/idl/hpp/core_idl/distances.idl
6 //
7
8 #include <hpp/core_idl/distances-idl.hh>
9 #include "hpp/corbaserver/servant-base.hh"
10
11 #include <hpp/core/distance.hh>
12 #include <hpp/core/weighed-distance.hh>
13
14
15
16
17
18 //
19 // Class implementing IDL interface hpp::core_idl::Distance
20 //
21 namespace hpp {
22
23 namespace core_impl {
24 template <typename _Base, typename _Storage>
25 class DistanceServant:
26 public hpp::corbaServer::ServantBase<hpp::core::Distance, _Storage>, public virtual _Base
27 {
28 public:
29 typedef hpp::core::Distance HppBase;
30
31 SERVANT_BASE_TYPEDEFS(hpp::core_idl::Distance, HppBase);
32
33 public:
34 // standard constructor
35 DistanceServant(::hpp::corbaServer::Server* server, const _Storage& s);
36 virtual ~DistanceServant();
37
38 // methods corresponding to defined IDL attributes and operations
39
40 void deleteThis ();
41
42
43 ::CORBA::Boolean deleteIfExpired ();
44
45
46 void persistantStorage (::CORBA::Boolean persistant);
47
48
49 hpp::value_type call (const hpp::floatSeq& q1, const hpp::floatSeq& q2);
50
51
52 };
53
54 typedef DistanceServant<POA_hpp::core_idl::Distance,hpp::weak_ptr<hpp::core::Distance> > Distance;
55 } // namespace core_impl
56
57 } // namespace hpp
58
59 namespace hpp {
60 namespace corbaServer {
61 template<> struct hpp_traits<hpp::core::Distance>{ typedef hpp::core::Distance Base; };
62 } // namespace corbaServer
63 } // namespace corbaServer
64
65 //
66 // Class implementing IDL interface hpp::core_idl::WeighedDistance
67 //
68 namespace hpp {
69
70 namespace core_impl {
71 template <typename _Base, typename _Storage>
72 class WeighedDistanceServant: public hpp::core_impl::DistanceServant<_Base, _Storage>
73 {
74 public:
75 typedef typename hpp::core_impl::DistanceServant<_Base, _Storage>::HppBase HppBase;
76
77 SERVANT_BASE_TYPEDEFS(hpp::core_idl::WeighedDistance, HppBase);
78
79 public:
80 // standard constructor
81 WeighedDistanceServant(::hpp::corbaServer::Server* server, const _Storage& s);
82 virtual ~WeighedDistanceServant();
83
84 // methods corresponding to defined IDL attributes and operations
85
86 hpp::floatSeq* getWeights ();
87
88
89 void setWeights (const hpp::floatSeq& weights);
90
91
92 };
93
94 typedef WeighedDistanceServant<POA_hpp::core_idl::WeighedDistance,hpp::weak_ptr<hpp::core::WeighedDistance> > WeighedDistance;
95 } // namespace core_impl
96
97 } // namespace hpp
98
99 namespace hpp {
100 namespace corbaServer {
101 template<> struct hpp_traits<hpp::core::WeighedDistance>{ typedef hpp::core::Distance Base; };
102 } // namespace corbaServer
103 } // namespace corbaServer
104
105
106
107
108
109 #endif // hpp_core_idl__distances_hpp__
110
hpp::corbaServer::ServantBase
Definition: servant-base.hh:122
hpp::corbaServer::ServantBase< hpp::core::Distance, _Storage >::persistantStorage
bool persistantStorage() const
See persistantStorage(bool)
Definition: servant-base.hh:166
hpp::corbaServer::Server
Implementation of Hpp module Corba server.
Definition: server.hh:78
hpp::core::Distance
hpp::core::WeighedDistance
hpp::core_impl::DistanceServant
Definition: distances-fwd.hh:27
hpp::core_impl::DistanceServant::HppBase
hpp::core::Distance HppBase
Definition: distances-fwd.hh:29
hpp::core_impl::DistanceServant::deleteThis
void deleteThis()
Definition: distances.hh:40
hpp::core_impl::DistanceServant::SERVANT_BASE_TYPEDEFS
SERVANT_BASE_TYPEDEFS(hpp::core_idl::Distance, HppBase)
hpp::core_impl::DistanceServant::deleteIfExpired
::CORBA::Boolean deleteIfExpired()
Definition: distances.hh:51
hpp::core_impl::DistanceServant::~DistanceServant
virtual ~DistanceServant()
Definition: distances.hh:32
hpp::core_impl::DistanceServant::call
hpp::value_type call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: distances.hh:73
hpp::core_impl::DistanceServant::DistanceServant
DistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:25
hpp::core_impl::WeighedDistanceServant
Definition: distances-fwd.hh:73
hpp::core_impl::WeighedDistanceServant::HppBase
hpp::core_impl::DistanceServant< _Base, _Storage >::HppBase HppBase
Definition: distances-fwd.hh:75
hpp::core_impl::WeighedDistanceServant::WeighedDistanceServant
WeighedDistanceServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: distances.hh:99
hpp::core_impl::WeighedDistanceServant::~WeighedDistanceServant
virtual ~WeighedDistanceServant()
Definition: distances.hh:106
hpp::core_impl::WeighedDistanceServant::getWeights
hpp::floatSeq * getWeights()
Definition: distances.hh:114
hpp::core_impl::WeighedDistanceServant::SERVANT_BASE_TYPEDEFS
SERVANT_BASE_TYPEDEFS(hpp::core_idl::WeighedDistance, HppBase)
hpp::core_impl::WeighedDistanceServant::setWeights
void setWeights(const hpp::floatSeq &weights)
Definition: distances.hh:128
distance.hh
distances-idl.hh
hpp::core_idl::Distance
Definition: distances.idl:20
hpp::core_idl::WeighedDistance
To define and solve a path planning problem.
Definition: distances.idl:29
hpp::core_impl::WeighedDistance
WeighedDistanceServant< POA_hpp::core_idl::WeighedDistance, hpp::weak_ptr< hpp::core::WeighedDistance > > WeighedDistance
Definition: distances-fwd.hh:94
hpp::core_impl::Distance
DistanceServant< POA_hpp::core_idl::Distance, hpp::weak_ptr< hpp::core::Distance > > Distance
Definition: distances-fwd.hh:54
hpp
Implement CORBA interface `‘Obstacle’'.
hpp::floatSeq
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
hpp::value_type
double value_type
Definition: common.idl:18
servant-base.hh
hpp::corbaServer::hpp_traits< hpp::core::Distance >::Base
hpp::core::Distance Base
Definition: distances-fwd.hh:61
hpp::corbaServer::hpp_traits< hpp::core::WeighedDistance >::Base
hpp::core::Distance Base
Definition: distances-fwd.hh:101
hpp::corbaServer::hpp_traits
Definition: servant-base.hh:89
weighed-distance.hh