
foxtrot25m

hello, i have been working to create a more complicated demo and am having some issues with it skipping between lines, i have found it will go from the middle of one action the the next, currently by adding sleep marks i have corrected many of these issues but i just wanted to make sure that the problem is in my inexperience programing for this robot and not a bug, i have uploaded the configuration file to the public site by accident and the demo2 script in there is what i am having issues with. also if you could take it down off the public site as it seems to have to many issues for now, i will upload it to the public site once i get the bugs all worked out
Thank you
Richard
However, if you are using the script to trigger the Auto Position actions (I presumed by actions this is what you meant) then the script is most likely acting as it should. You will need to include Sleep commands between changing actions as the script will continue running regardless of what the action is doing unless you have added a ControlCommand() to the action to pause the script which triggered it.
The script I wrote for Six dancing used sleep commands to sync the moves with the music.
i have been using sleep commands tho and adding time but that doesn't seem to be enough to cover all the issues im having
the project is public under humanoid robot and its called "richard advanced robot" but you will need to update all the sleep times to min 6000 and that fixes most the bugs but when you get to the push up example it goes from in the middle of the pushups to trying to do sit ups without standing up
i created the script by copying and pasting parts of the original demo to prevent errors and just changed what was done and said and the sleep timers so i think i have covered that but im still new and unsure
If your Auto Position Action does not "repeat for ever" , than simply do this instead with WaitFor()...
Code:
The variable $AutoPositionStatus stores the active status of the Auto Position. The WaitFor() will wait for ever until the provide expression is true.
Please tell us more about N.A.S.A.
Yes that makes it much easier
Much like the Camera Control, Joystick, WiiMote, and a few other controls.. you can see which variables are used in their respective CONFIG menu
Code:
The variable $AutoPositionStatus stores the active status of the Auto Position. WaitFor() will wait until the provided expression is TRUE.
@Richard $AutoPositionStatus changes from 0 to 1 depending on the status of the Auto Position control. If it's carrying out an action it will be a 1 until it finishes the action then it will be a 0.
WaitFor($AutoPositionStatus = 0) will hold the script at that line until $AutoPositionStatus = 0, or in simple terms, until the action is finished.
So yes, you have that correct
So here is an update to the script example with a slight pause..
Code:
Chris