6 #ifndef HPP_GUI_CONVERSIONS_HH 7 #define HPP_GUI_CONVERSIONS_HH 9 #include <gepetto/gui/windows-manager.hh> 10 #include <hpp/common-idl.hh> 14 inline void fromHPP(
const hpp::floatSeq_var& in, osgVector3& v) {
15 typedef gepetto::viewer::WindowsManager::value_type type;
16 const hpp::floatSeq& t(in.in());
17 v.set((type)t[0], (type)t[1], (type)t[2]);
20 inline void fromHPP(
const hpp::Transform__slice* t, osgVector3& v) {
21 typedef gepetto::viewer::WindowsManager::value_type type;
22 v.set((type)t[0], (type)t[1], (type)t[2]);
25 inline void fromHPP(
const hpp::Transform__var& in, osgVector3& v) {
29 inline void fromHPP(
const hpp::Transform__slice* t, osgQuat& q) {
30 typedef gepetto::viewer::WindowsManager::value_type type;
31 q.set((type)t[3], (type)t[4], (type)t[5], (type)t[6]);
34 inline void fromHPP(
const hpp::Transform__var& in, osgQuat& q) {
38 inline void fromHPP(
const hpp::Transform__slice* in,
39 gepetto::viewer::Configuration& c) {
44 inline void fromHPP(
const hpp::Transform__var& in,
45 gepetto::viewer::Configuration& c) {
49 inline void fromHPP(
const hpp::TransformSeq& in,
50 std::vector<gepetto::viewer::Configuration>& c) {
51 c.resize(in.length());
52 for (std::size_t i = 0; i < in.length(); ++i)
53 fromHPP(in[(CORBA::ULong)i], c[i]);
59 #endif // HPP_GUI_CONVERSIONS_HH namespace that encapsulate all the softwares of humanoid-path-planner
Definition: __init__.py:1
void fromHPP(const hpp::floatSeq_var &in, osgVector3 &v)
Definition: conversions.hh:14