error in robot.animate

78 views
Skip to first unread message

golmoha...@gmail.com

unread,
May 3, 2015, 5:15:13 PM5/3/15
to robotics...@googlegroups.com
Hi Mr Corke. First of all i thanx alot about your great works in field of robotics. and secondly this is a error that really confuse me. when i want run a simple animate on puma560 i have got this error :  >> p560.animate(qn)
 Undefined function or variable "h".

Error in SerialLink/animate (line 153)
        if ~h.robot.loop

I appreciate it if you help me to fix animate codes. thank you so much.

Erik van Oene

unread,
May 4, 2015, 7:11:25 AM5/4/15
to robotics...@googlegroups.com, golmoha...@gmail.com
Hi,

I guess you didn't run p560.plot before. This way there is no figure to be found with the puma in it, so there is nothing to animate.

Try:
>> mdl_p560
>> p560.plot([0,0,0,0,0,0])
>> p560.animate([0,0,0,0,0,1])

If this is not the case please provide use with some more information by sharing the full code. in that way we can 'try' to reproduce the error and look into it


Erik

Op zondag 3 mei 2015 23:15:13 UTC+2 schreef golmoha...@gmail.com:
Reply all
Reply to author
Forward
0 new messages