hpp-corbaserver 4.14.0
Corba server for Humanoid Path Planner applications
Loading...
Searching...
No Matches
steering_methods.hh
Go to the documentation of this file.
1#ifndef hpp_core_idl__steering__methods_hxx__
2#define hpp_core_idl__steering__methods_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/steering_methods.idl
6//
7
9
10#include <sstream>
11
15
16
17
18//
19// Implementational code for IDL interface hpp::core_idl::SteeringMethod
20//
21namespace hpp {
22
23namespace core_impl {
24template <typename _Base, typename _Storage>
26 const _Storage& s)
27 : hpp::corbaServer::ServantBase<hpp::core::SteeringMethod, _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>
40hpp::core_idl::Path_ptr SteeringMethodServant<_Base, _Storage>::call (const hpp::floatSeq& q1, const hpp::floatSeq& q2)
41{
42 try {
43 // automatically generated code.
44 hpp::core::vector_t _q1 = hpp::corbaServer::floatSeqToVector (q1);
45 hpp::core::vector_t _q2 = hpp::corbaServer::floatSeqToVector (q2);
46 hpp::core::PathPtr_t __return__ (getT()->operator() (_q1, _q2));
47
48 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Path,hpp::core_impl::Path>(server_, __return__)._retn();
49 } catch (const std::exception& e) {
50 throw ::hpp::Error (e.what());
51 }
52}
53
54template <typename _Base, typename _Storage>
55void SteeringMethodServant<_Base, _Storage>::setConstraints (hpp::core_idl::ConstraintSet_ptr constraints)
56{
57 try {
58 // automatically generated code.
59 hpp::core::ConstraintSetPtr_t _constraints = ::hpp::corbaServer::reference_to_object<hpp::core::ConstraintSet>(server_, constraints);
60 (getT()->constraints (_constraints));
61
62
63 } catch (const std::exception& e) {
64 throw ::hpp::Error (e.what());
65 }
66}
67
68template <typename _Base, typename _Storage>
70{
71 try {
72 // automatically generated code.
73
74 hpp::core::ConstraintPtr_t __return__ (getT()->constraints ());
75
76 return ::hpp::corbaServer::makeServantDownCast<hpp::core_impl::Constraint,hpp::core_impl::Constraint>(server_, __return__)._retn();
77 } catch (const std::exception& e) {
78 throw ::hpp::Error (e.what());
79 }
80}
81
82// End of implementational code
83} // namespace core_impl
84
85} // namespace hpp
86
87
88
89
90
91#endif // hpp_core_idl__steering__methods_hxx__
92
Implementation of Hpp module Corba server.
Definition: server.hh:77
Definition: steering_methods-fwd.hh:28
hpp::core_idl::Path_ptr call(const hpp::floatSeq &q1, const hpp::floatSeq &q2)
Definition: steering_methods.hh:40
void setConstraints(hpp::core_idl::ConstraintSet_ptr constraints)
Definition: steering_methods.hh:55
virtual ~SteeringMethodServant()
Definition: steering_methods.hh:32
SteeringMethodServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: steering_methods.hh:25
hpp::core_idl::Constraint_ptr getConstraints()
Definition: steering_methods.hh:69
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