Skip to content

Commit 1e5a2db

Browse files
committed
fix warnings
1 parent 3b4fae1 commit 1e5a2db

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

bindings/python/crocoddyl/multibody/contacts/contact-6d-loop.cpp renamed to bindings/python/crocoddyl/multibody/contacts/contact-6d-loop.cpp.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// All rights reserved.
88
///////////////////////////////////////////////////////////////////////////////
99

10+
// Auto-generated file for @SCALAR_TYPE@
1011
#include "crocoddyl/multibody/contacts/contact-6d-loop.hpp"
1112
#include "python/crocoddyl/multibody/multibody.hpp"
1213

@@ -108,8 +109,8 @@ struct ContactData6DLoopVisitor
108109
.def(CopyableVisitor<Data>());
109110

110111
void exposeContact6DLoop() {
111-
CROCODDYL_PYTHON_SCALARS(CROCODDYL_CONTACT_MODEL_6D_LOOP_PYTHON_BINDINGS)
112-
CROCODDYL_PYTHON_SCALARS(CROCODDYL_CONTACT_DATA_6D_LOOP_PYTHON_BINDINGS)
112+
CROCODDYL_CONTACT_MODEL_6D_LOOP_PYTHON_BINDINGS(@SCALAR_TYPE@)
113+
CROCODDYL_CONTACT_DATA_6D_LOOP_PYTHON_BINDINGS(@SCALAR_TYPE@)
113114
}
114115

115116
} // namespace python

include/crocoddyl/multibody/contacts/contact-6d-loop.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,16 @@ struct ContactData6DLoopTpl : public ContactDataAbstractTpl<_Scalar> {
264264
dpos_dq(6, model->get_state()->get_nv()),
265265
dvel_dq(6, model->get_state()->get_nv()),
266266
dtau_dq_tmp(model->get_state()->get_nv(), model->get_state()->get_nv()),
267+
f1Mf2(SE3::Identity()),
268+
f1Xj1(model->get_joint1_placement().inverse()),
269+
f2Xj2(model->get_joint2_placement().inverse()),
270+
f1Xf2(SE3ActionMatrix::Identity()),
267271
f1Jf1(6, model->get_state()->get_nv()),
268272
f2Jf2(6, model->get_state()->get_nv()),
269273
f1Jf2(6, model->get_state()->get_nv()),
270274
j1Jj1(6, model->get_state()->get_nv()),
271275
j2Jj2(6, model->get_state()->get_nv()),
272-
f1Xj1(model->get_joint1_placement().inverse()),
273-
f2Xj2(model->get_joint2_placement().inverse()),
274-
f1Mf2(SE3::Identity()),
275-
f1Xf2(SE3ActionMatrix::Identity()),
276+
j2Jj1(6, model->get_state()->get_nv()),
276277
f1vf1(Motion::Zero()),
277278
f2vf2(Motion::Zero()),
278279
f1vf2(Motion::Zero()),

0 commit comments

Comments
 (0)