Skip to content
Snippets Groups Projects
Commit e9601a0e authored by Angel Santamaria-Navarro's avatar Angel Santamaria-Navarro
Browse files

Changes to Skew in CoG Function

parent 1af7249d
No related branches found
No related tags found
No related merge requests found
...@@ -143,15 +143,7 @@ void CTaskCOG::CoGCommon(UAM::CArm& arm, const UAM::CHT& HT, Eigen::MatrixXd& co ...@@ -143,15 +143,7 @@ void CTaskCOG::CoGCommon(UAM::CArm& arm, const UAM::CHT& HT, Eigen::MatrixXd& co
if(partial_mass!=0){ if(partial_mass!=0){
CoG_partial = partial_arm_cg/partial_mass; CoG_partial = partial_arm_cg/partial_mass;
Eigen::Matrix3d screw_rot = CCommon_Fc::Skew(IIIrdcolRot_b_x.at(jj));
Eigen::Matrix3d screw_rot = Eigen::Matrix3d::Zero();
screw_rot(0,1) = -IIIrdcolRot_b_x.at(jj)(2);
screw_rot(0,2) = IIIrdcolRot_b_x.at(jj)(1);
screw_rot(1,0) = IIIrdcolRot_b_x.at(jj)(2);
screw_rot(0,2) = -IIIrdcolRot_b_x.at(jj)(0);
screw_rot(2,0) = -IIIrdcolRot_b_x.at(jj)(1);
screw_rot(2,1) = IIIrdcolRot_b_x.at(jj)(0);
Jj_cog.col(jj) = (partial_mass/arm.mass)*screw_rot*CoG_partial.block(0,0,3,1); Jj_cog.col(jj) = (partial_mass/arm.mass)*screw_rot*CoG_partial.block(0,0,3,1);
} }
else Jj_cog.col(jj) = Eigen::MatrixXd::Zero(3,1); else Jj_cog.col(jj) = Eigen::MatrixXd::Zero(3,1);
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
// Own // Own
#include <common_obj.h> #include <common_obj.h>
#include <common_fc.h>
namespace UAM { namespace UAM {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment