robotology / idyntree

Multibody Dynamics Library designed for Free Floating Robots
BSD 3-Clause "New" or "Revised" License
177 stars 67 forks source link

Remove `YARP_ASSERT` related warnings from tests #197

Closed traversaro closed 7 years ago

traversaro commented 8 years ago

If you compile iDynTree with IDYNTREE_COMPILE_TESTS, you get the following warnings:

/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:142:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT(icub_tree.setWorldBasePose(H_w2b));
             ^
/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:171:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT(icub_tree.kinematicRNEA());
             ^
/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:312:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT( com_jacobian.cols() == icub_idyntree.getNrOfDOFs()+6);
             ^
/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:332:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT(waist_imu_icub.setWorldBasePose(icub_idyntree.getWorldBasePose()));
             ^
/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:339:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT(waist_imu_icub.kinematicRNEA());
             ^
/home/traversaro/src/codyco-superbuild/libraries/iDynTree/src/icub-kdl/tests/iDynTreeJacobianTest.cpp:340:13: warning: YARP_ASSERT is deprecated. Use yAssert instead.
     YARP_ASSERT(icub_idyntree.kinematicRNEA());
             ^
traversaro commented 7 years ago

Fixed by @Yeshasvitvs in https://github.com/robotology/idyntree/commit/8db94d1a3f3ed4621a63d490a91672091a40a7e7 .