-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Hi! I built a environment and noticed that when the step(action) function of my environment is called, it actually executes the action twice. I suspect that the problem is with the following code in the function startCmd_EnvName in the toolbox file:
rootNode.AnimationManager.addAnimation( Animation( onUpdate=executeAnimation, params={"cable": cable, "displacement": displacement}, duration=duration, mode="once"))
I noticed that increasing the value of the variable duration increases the number of times the action gets executed, and that the number of times the action gets executed depends on environments (For instance, in the Trunk environment, its displace function gets called 5 times everytime the function startCmd_Trunk gets called, but in CartPole, the function apply_action gets called 10 times). Could anyone please explain the design idea behind this? Should I setup my environment such that the action is only executed once everytime I call the step function? If so, how? Thank you!