[SofaGym] scale_factor and step_simulation #4567
Replies: 4 comments 6 replies
-
|
Your help would needed here as well @samuelmyoussef 🙏 thanks ! |
Beta Was this translation helpful? Give feedback.
-
|
The Since you'll be using force to control, you don't have to use it in your code so it could be set to 1, but we know about some issues when it's set to 1 that we are still trying to fix, so I suggest for now that you set it to at least 2 and check if it works or not. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm editing the DiamondRobot scene so that it can be controlled by force instead of displacement. I want to simulate with dt=0.01, and I'm not sure how exactly scale_factor in configuraiton comes into play.
It seems that it's used as follows in the step_simulation() function in sofagym.simulate
Specifically, why do we call _startCmd() with scale_factor - 1 and Sofa.Simulation.animate() with scale_factor without subtracting 1?
Also, I applied some open loop control input and it seems that these inputs are 100 times too big for the desired effect. Could this be caused by the dt=0.01? Here's the code for startCmd()
Beta Was this translation helpful? Give feedback.
All reactions