1 #ifndef hpp_constraints_idl__constraints_hxx__ 2 #define hpp_constraints_idl__constraints_hxx__ 23 namespace constraints_impl {
24 template <
typename _Base,
typename _Storage>
31 template <
typename _Base,
typename _Storage>
39 template <
typename _Base,
typename _Storage>
48 }
catch (
const std::exception& e) {
49 throw ::hpp::Error (e.what());
53 template <
typename _Base,
typename _Storage>
62 }
catch (
const std::exception& e) {
63 throw ::hpp::Error (e.what());
67 template <
typename _Base,
typename _Storage>
76 }
catch (
const std::exception& e) {
77 throw ::hpp::Error (e.what());
81 template <
typename _Base,
typename _Storage>
90 }
catch (
const std::exception& e) {
91 throw ::hpp::Error (e.what());
95 template <
typename _Base,
typename _Storage>
104 }
catch (
const std::exception& e) {
105 throw ::hpp::Error (e.what());
109 template <
typename _Base,
typename _Storage>
118 }
catch (
const std::exception& e) {
119 throw ::hpp::Error (e.what());
123 template <
typename _Base,
typename _Storage>
132 }
catch (
const std::exception& e) {
133 throw ::hpp::Error (e.what());
137 template <
typename _Base,
typename _Storage>
142 std::ostringstream oss; oss << *
get();
143 std::string res = oss.str();
144 return CORBA::string_dup(res.c_str());
145 }
catch (
const std::exception& e) {
146 throw ::hpp::Error (e.what());
160 namespace constraints_impl {
161 template <
typename _Base,
typename _Storage>
164 :
hpp::corbaServer::ServantBase<
hpp::constraints::
Implicit, _Storage> (server, s)
168 template <
typename _Base,
typename _Storage>
176 template <
typename _Base,
typename _Storage>
182 hpp::constraints::DifferentiableFunctionPtr_t __return__ (getT()->functionPtr ());
184 return ::hpp::corbaServer::makeServantDownCast<hpp::constraints_impl::DifferentiableFunction,hpp::constraints_impl::DifferentiableFunction>(server_, __return__)._retn();
185 }
catch (
const std::exception& e) {
186 throw ::hpp::Error (e.what());
190 template <
typename _Base,
typename _Storage>
196 (getT()->rightHandSideFromConfig (_config));
199 }
catch (
const std::exception& e) {
200 throw ::hpp::Error (e.what());
204 template <
typename _Base,
typename _Storage>
210 (getT()->rightHandSide (_rhs));
213 }
catch (
const std::exception& e) {
214 throw ::hpp::Error (e.what());
218 template <
typename _Base,
typename _Storage>
227 }
catch (
const std::exception& e) {
228 throw ::hpp::Error (e.what());
232 template <
typename _Base,
typename _Storage>
241 }
catch (
const std::exception& e) {
242 throw ::hpp::Error (e.what());
246 template <
typename _Base,
typename _Storage>
255 }
catch (
const std::exception& e) {
256 throw ::hpp::Error (e.what());
260 template <
typename _Base,
typename _Storage>
269 }
catch (
const std::exception& e) {
270 throw ::hpp::Error (e.what());
274 template <
typename _Base,
typename _Storage>
283 }
catch (
const std::exception& e) {
284 throw ::hpp::Error (e.what());
288 template <
typename _Base,
typename _Storage>
294 (getT()->comparisonType (_compType));
297 }
catch (
const std::exception& e) {
298 throw ::hpp::Error (e.what());
312 namespace constraints_impl {
313 template <
typename _Base,
typename _Storage>
320 template <
typename _Base,
typename _Storage>
328 template <
typename _Base,
typename _Storage>
337 }
catch (
const std::exception& e) {
338 throw ::hpp::Error (e.what());
352 namespace constraints_impl {
353 template <
typename _Base,
typename _Storage>
360 template <
typename _Base,
typename _Storage>
368 template <
typename _Base,
typename _Storage>
377 }
catch (
const std::exception& e) {
378 throw ::hpp::Error (e.what());
382 template <
typename _Base,
typename _Storage>
388 (getT()->weights (_weights));
391 }
catch (
const std::exception& e) {
392 throw ::hpp::Error (e.what());
396 template <
typename _Base,
typename _Storage>
403 }
catch (
const std::exception& e) {
404 throw ::hpp::Error (e.what());
417 #endif // hpp_constraints_idl__constraints_hxx__
void setRightHandSide(const hpp::floatSeq &rhs)
Definition: constraints.hh:205
hpp::size_type inputSize()
Definition: constraints.hh:68
ImplicitServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: constraints.hh:162
Implement CORBA interface `‘Obstacle’'.
Definition: basic-server.hh:35
constraints::ComparisonTypes_t convertComparison(hpp::ComparisonTypes_t comp)
Convert CORBA comparison types to C++ comparison type.
hpp::size_type outputDerivativeSize()
Definition: constraints.hh:110
double value_type
Definition: common.idl:18
LockedJointServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: constraints.hh:314
sequence< floatSeq > floatSeqSeq
Definition: common.idl:35
hpp::floatSeq * getGoal()
Definition: constraints.hh:397
virtual ~ImplicitServant()
Definition: constraints.hh:169
hpp::size_type inputDerivativeSize()
Definition: constraints.hh:82
char * str()
Definition: constraints.hh:138
vector_t floatSeqToVector(const floatSeq &dofArray, const size_type expectedSize=-1)
char * c_str(const std::string &in)
Definition: conversions.hh:92
hpp::floatSeq * rightHandSideAt(hpp::value_type s)
Definition: constraints.hh:261
hpp::floatSeqSeq * jacobian(const hpp::floatSeq &arg)
Definition: constraints.hh:54
pinocchio::vector_t vector_t
Definition: fwd.hh:112
char * name()
Definition: constraints.hh:124
void setComparisonType(const hpp::ComparisonTypes_t &compType)
Definition: constraints.hh:289
void setRightHandSideFromConfig(const hpp::floatSeq &config)
Definition: constraints.hh:191
_objref_DifferentiableFunction * DifferentiableFunction_ptr
Definition: constraints-idl.hh:71
Definition: constraints-fwd.hh:27
hpp::constraints_idl::DifferentiableFunction_ptr function()
Definition: constraints.hh:177
virtual ~ConfigurationConstraintServant()
Definition: constraints.hh:361
ConfigurationConstraintServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: constraints.hh:354
hpp::floatSeq * getWeights()
Definition: constraints.hh:369
virtual ~DifferentiableFunctionServant()
Definition: constraints.hh:32
Implementation of Hpp module Corba server.
Definition: server.hh:77
hpp::size_type rightHandSideSize()
Definition: constraints.hh:233
hpp::ComparisonTypes_t * getComparisonType()
Definition: constraints.hh:275
hpp::floatSeq * getRightHandSide()
Definition: constraints.hh:219
hpp::floatSeq * value(const hpp::floatSeq &arg)
Definition: constraints.hh:40
pinocchio::matrix_t matrix_t
Definition: fwd.hh:110
hpp::size_type parameterSize()
Definition: constraints.hh:247
Definition: constraints-fwd.hh:87
floatSeqSeq * matrixToFloatSeqSeq(core::matrixIn_t input)
Returns a sequence of the rows of the input matrix.
hpp::size_type outputSize()
Definition: constraints.hh:96
floatSeq * vectorToFloatSeq(core::vectorIn_t input)
sequence< ComparisonType > ComparisonTypes_t
Definition: common.idl:50
DifferentiableFunctionServant(::hpp::corbaServer::Server *server, const _Storage &s)
Definition: constraints.hh:25
sequence< double > floatSeq
Robot configuration is defined by a sequence of dof value.
Definition: common.idl:34
char * jointName()
Definition: constraints.hh:329
virtual ~LockedJointServant()
Definition: constraints.hh:321
void setWeights(const hpp::floatSeq &weights)
Definition: constraints.hh:383
long long size_type
Definition: common.idl:19