2 #include "pinocchio/multibody/liegroup/liegroup.hpp" 13 SE2Operation::ConfigVector_t pose_s,pose_g;
14 SE2Operation::TangentVector_t delta_u;
17 pose_s(0) = 1.0; pose_s(1) = 1.0;
18 pose_s(2) = cos(M_PI/4.0); pose_s(3) = sin(M_PI/4.0);
21 pose_g(0) = 3.0; pose_g(1) = -1.0;
22 pose_g(2) = cos(-M_PI/2.0); pose_g(3) = sin(-M_PI/2.0);
26 aSE2.difference(pose_s,pose_g,delta_u);
27 std::cout <<
"difference: " << delta_u.transpose() << std::endl;
30 SE2Operation::ConfigVector_t pose_check;
31 aSE2.integrate(pose_s,delta_u,pose_check);
32 std::cout <<
"goal configuration (from composition): " << pose_check.transpose() << std::endl;
33 std::cout <<
"goal configuration: " << pose_g.transpose() << std::endl;
Main pinocchio namespace.