Idyntree: Remove direct indeces uses from existing examples

Created on 26 Jan 2021  路  2Comments  路  Source: robotology/idyntree

The example https://github.com/robotology/idyntree/blob/master/examples/matlab/iDynTreeWrappers/visualizeRobot.m#L93 directly uses indices to refer to joints and links. This should always be avoided, as indices can change if the model changes, and so any use of indeces should only come from the model.getLinkIndex or model.getJointIndex methods, to ensure that it works fine.

Help Wanted

All 2 comments

If any existing user of the MATLAB visualizer could handle this it would be great. @nunoguedelha @CarlottaSartore @Giulero @singhbal-baljinder @gabrielenava @lrapetti

Was this page helpful?
0 / 5 - 0 ratings