Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 9a495a5

Browse files
committed
[Pinocchio v2] stop using the old deprecated API
1 parent 02635c1 commit 9a495a5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/sot-dynamic-pinocchio.cpp

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -756,11 +756,13 @@ computeGenericJacobian(const bool isFrame, const int jointId, dg::Matrix& res,co
756756

757757
//Computes Jacobian in world coordinates.
758758
if(isFrame){
759-
pinocchio::getJacobian<pinocchio::WORLD>(*m_model,*m_data,
760-
m_model->frames[(pinocchio::Model::Index)jointId].parent,tmp);
759+
pinocchio::getJacobian(*m_model,*m_data,
760+
m_model->frames[(pinocchio::Model::Index)jointId].parent,
761+
pinocchio::WORLD, tmp);
761762
}
762763
else
763-
pinocchio::getJacobian<pinocchio::WORLD>(*m_model,*m_data,(pinocchio::Model::Index)jointId,tmp);
764+
pinocchio::getJacobian(*m_model,*m_data,(pinocchio::Model::Index)jointId,
765+
pinocchio::WORLD, tmp);
764766
res = tmp;
765767
sotDEBUGOUT(25);
766768
return res;
@@ -790,8 +792,8 @@ computeGenericEndeffJacobian(const bool isFrame, const bool isLocal, const int j
790792
}
791793
else {
792794
//temp = m_model->getJointName((pinocchio::Model::Index)jointId);
793-
pinocchio::getJacobian<pinocchio::LOCAL>
794-
(*m_model,*m_data,(pinocchio::Model::Index)jointId,tmp);
795+
pinocchio::getJacobian(*m_model,*m_data,(pinocchio::Model::Index)jointId,
796+
pinocchio::LOCAL, tmp);
795797
sotDEBUG(25) << "EndEffJacobian for "
796798
<< m_model->getJointName((pinocchio::Model::Index)jointId)
797799
<<" is "<<tmp<<std::endl;

0 commit comments

Comments
 (0)