Verified Commit dbcfbcb2 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

all: remove warnings

parent 572579bd
Pipeline #4507 failed with stage
in 82 minutes and 25 seconds
......@@ -162,13 +162,13 @@ namespace pinocchio
static const SE3 id = SE3::Identity();
int njoints = modelA.njoints + modelB.njoints - 1;
model.names .reserve (njoints);
model.joints .reserve (njoints);
model.jointPlacements .reserve (njoints);
model.parents .reserve (njoints);
model.inertias .reserve (njoints);
model.names .reserve ((size_t)njoints);
model.joints .reserve ((size_t)njoints);
model.jointPlacements .reserve ((size_t)njoints);
model.parents .reserve ((size_t)njoints);
model.inertias .reserve ((size_t)njoints);
int nframes = modelA.nframes + modelB.nframes - 1;
model.frames .reserve (nframes);
model.frames .reserve ((size_t)nframes);
geomModel.geometryObjects.reserve (geomModelA.ngeoms + geomModelB.ngeoms);
......
......@@ -82,12 +82,14 @@ BOOST_AUTO_TEST_SUITE ( BOOST_TEST_MODULE )
//TODO fix inertia of the base
manipulator.inertias[0].setRandom();
SE3 aMb = SE3::Random();
FrameIndex fid = humanoid.addFrame (Frame ("humanoid/add_manipulator",
int fid = humanoid.addFrame (Frame ("humanoid/add_manipulator",
humanoid.getJointId("humanoid/chest2_joint"),
humanoid.getFrameId("humanoid/chest2_joint"), aMb,
OP_FRAME));
appendModel (humanoid, manipulator, geomHumanoid, geomManipulator, fid,
BOOST_CHECK(fid >= 0);
appendModel (humanoid, manipulator, geomHumanoid, geomManipulator, (FrameIndex)fid,
SE3::Identity(), model, geomModel);
BOOST_TEST_MESSAGE(model);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment