AutodeskRoboticsLab / Mimic

An open-source Maya plugin for controlling Industrial Robots. Written in Python 3.
https://www.mimicformaya.com/
172 stars 39 forks source link

Error at "Continuous Motion" #4

Open ahmad-saeed opened 5 years ago

ahmad-saeed commented 5 years ago

I made a program that I exported and successfully tested. When I check the option "use continuous motion", this error happens: krl.py line 270: To use continuous motion in KRL, template requires 2 placeholders, one for the initial start position and another for the motion variables.

I don't understand what I'm supposed to change. I'm using KUKA KRL processor.

evanatherton commented 5 years ago

In the “template” field of the program tab, change the template name from "template" to "template_continuous"

ahmad-saeed commented 5 years ago

@evanatherton still getting the same error

evanatherton commented 5 years ago

@ahmad-saeed Sorry for the delay!

Did you change the Directory before saving the program by chance? The template you're trying to use has to be in the specified directory The postprocessor looks in the specified directory for the template, and if it can't find it, it uses the default template.

This is behavior we've been meaning to change because it's really unclear, but haven't gotten around to it.

Anyways, that was the only way I was able to recreate your error.

Try exporting without changing the directory (or move the continuous template to the directory you're trying to export to) and let me know if that works