petercorke / robotics-toolbox-matlab

Robotics Toolbox for MATLAB
GNU Lesser General Public License v2.1
1.26k stars 440 forks source link

Error in example walking.m. #101

Open jakekeip opened 3 years ago

jakekeip commented 3 years ago

Using the as-written code for walking.m example, the following error occurs:

Error using mstraj (line 78) Length of TSEG does not match number of segments

Error in walking (line 85) x = mstraj(segments, [], tseg, segments(1,:), 0.01, 0.1);

@petercorke, it appears that the length of 'tseg' is 9 and the length of 'segments' is 8. How should this be addressed in order to be what you had originally intended?