You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 functionstartCmd_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 theTrunk
environment, itsdisplace
function gets called 5 times everytime the functionstartCmd_Trunk
gets called, but inCartPole
, the functionapply_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 thestep
function? If so, how? Thank you!The text was updated successfully, but these errors were encountered: