Skip to content

Commit

Permalink
[EtienneAr Feedback] Fix Scalar / int confusion for joint mimic index
Browse files Browse the repository at this point in the history
  • Loading branch information
Megane Millan committed Oct 1, 2024
1 parent 862e63b commit 9ffcc95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/pinocchio/multibody/joint/joint-mimic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ namespace pinocchio

// JointDataMimicTpl(const RefJointDataVariant & jdata,
// const Scalar & scaling,
// const Scalar & nq,
// const Scalar & nv)
// const int & nq,
// const int & nv)
// : m_jdata_ref(jdata)
// , m_scaling(scaling)
// , S(m_jdata_ref.S(),scaling)
Expand All @@ -390,7 +390,7 @@ namespace pinocchio
// }

JointDataMimicTpl(
const RefJointData & jdata, const Scalar & scaling, const Scalar & nq, const Scalar & nv)
const RefJointData & jdata, const Scalar & scaling, const int & nq, const int & nv)
: m_jdata_ref(checkMimic(jdata.derived()))
, m_scaling(scaling)
, S(m_jdata_ref.S(), scaling)
Expand Down

0 comments on commit 9ffcc95

Please sign in to comment.