hpp-corbaserver 4.14.0
Corba server for Humanoid Path Planner applications
Loading...
Searching...
No Matches
configuration_shooters.hh
Go to the documentation of this file.
1#ifndef hpp_core_idl__configuration__shooters_hxx__
2#define hpp_core_idl__configuration__shooters_hxx__
3
4//
5// Implemention of IDL interfaces in file /local/robotpkg/var/tmp/robotpkg/path/py-hpp-corbaserver/work/hpp-corbaserver-4.14.0/idl/hpp/core_idl/configuration_shooters.idl
6//
7
9
10#include <sstream>
11
15
16
17
18//
19// Implementational code for IDL interface hpp::core_idl::ConfigurationShooter
20//
21namespace hpp {
22
23namespace core_impl {
24template <typename _Base, typename _Storage>
26 const _Storage& s)
27 : hpp::corbaServer::ServantBase<hpp::core::ConfigurationShooter, _Storage> (server, s)
28{
29 // add extra constructor code here
30}
31template <typename _Base, typename _Storage>
33{
34 // add extra destructor code here
35}
36
37// Methods corresponding to IDL attributes and operations
38
39template <typename _Base, typename _Storage>
41{
42 try {
43 // automatically generated code.
44
45 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->shoot ());
46
47 return __return__;
48 } catch (const std::exception& e) {
49 throw ::hpp::Error (e.what());
50 }
51}
52
53// End of implementational code
54} // namespace core_impl
55
56} // namespace hpp
57
58//
59// Implementational code for IDL interface hpp::core_idl::configuration_shooter::Gaussian
60//
61namespace hpp {
62
63namespace core_impl {
64
65namespace configuration_shooter {
66template <typename _Base, typename _Storage>
68 const _Storage& s)
69 : hpp::core_impl::ConfigurationShooterServant<_Base, _Storage> (server, s)
70{
71 // add extra constructor code here
72}
73template <typename _Base, typename _Storage>
75{
76 // add extra destructor code here
77}
78
79// Methods corresponding to IDL attributes and operations
80
81template <typename _Base, typename _Storage>
83{
84 try {
85 // automatically generated code.
86 hpp::core::vector_t _c = hpp::corbaServer::floatSeqToVector (c);
87 (getT()->center (_c));
88
89
90 } catch (const std::exception& e) {
91 throw ::hpp::Error (e.what());
92 }
93}
94
95template <typename _Base, typename _Storage>
97{
98 try {
99 // automatically generated code.
100
101 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->center ());
102
103 return __return__;
104 } catch (const std::exception& e) {
105 throw ::hpp::Error (e.what());
106 }
107}
108
109template <typename _Base, typename _Storage>
111{
112 try {
113 // automatically generated code.
114
115 hpp::floatSeq* __return__ = hpp::corbaServer::vectorToFloatSeq (getT()->sigmas ());
116
117 return __return__;
118 } catch (const std::exception& e) {
119 throw ::hpp::Error (e.what());
120 }
121}
122
123template <typename _Base, typename _Storage>
125{
126 try {
127 // automatically generated code.
128 hpp::core::vector_t _s = hpp::corbaServer::floatSeqToVector (s);
129 (getT()->sigmas (_s));
130
131
132 } catch (const std::exception& e) {
133 throw ::hpp::Error (e.what());
134 }
135}
136
137// End of implementational code
138} // namespace configuration_shooter
139
140} // namespace core_impl
141
142} // namespace hpp
143
144
145
146
147
148#endif // hpp_core_idl__configuration__shooters_hxx__
149
Implementation of Hpp module Corba server.
Definition: server.hh:77
Definition: configuration_shooters-fwd.hh:27
virtual ~ConfigurationShooterServant()
Definition: configuration_shooters.hh:32
ConfigurationShooterServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: configuration_shooters.hh:25
hpp::floatSeq * shoot()
Definition: configuration_shooters.hh:40
void setSigmas(const hpp::floatSeq &s)
Definition: configuration_shooters.hh:124
virtual ~GaussianServant()
Definition: configuration_shooters.hh:74
hpp::floatSeq * getCenter()
Definition: configuration_shooters.hh:96
void setCenter(const hpp::floatSeq &c)
Definition: configuration_shooters.hh:82
hpp::floatSeq * getSigmas()
Definition: configuration_shooters.hh:110
GaussianServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: configuration_shooters.hh:67
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
Implement CORBA interface `‘Obstacle’'.
Definition: basic-server.hh:35
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34