2 #include "pinocchio/multibody/liegroup/liegroup.hpp" 12 SE3Operation::ConfigVector_t pose_s,pose_g;
13 SE3Operation::TangentVector_t delta_u ;
16 pose_s(0) = 1.0; pose_s(1) = 1.0;
17 pose_s(2) = 1 ; pose_s(3) = -0.13795 ;
18 pose_s(4) = 0.13795; pose_s(5) = 0.69352; pose_s(6) = 0.69352;
19 aSE3.normalize(pose_s);
22 pose_g(0) = 4; pose_g(1) = 3;
23 pose_g(2) = 3 ; pose_g(3) = -0.46194;
24 pose_g(4) = 0.331414; pose_g(5) = 0.800103; pose_g(6) = 0.191342;
25 aSE3.normalize(pose_g);
27 SE3Operation::ConfigVector_t pole_u;
28 aSE3.interpolate(pose_s,pose_g,0.5, pole_u);
29 std::cout <<
"Interpolated configuration: " << pole_u.transpose() << std::endl;
Main pinocchio namespace.