Closed Mcibula closed 6 months ago
Hi Miro. The problem is in randomness of the actions sampled. We use this mode only to test, whether all joints are moving. If you use them to control action, you will face the difference between PLAN and REALITY. Random parameter will sample any number to control joints, but s they are executed within one simulation step, the arm will move toward this direction based on speed and force. It is not able to reach distant positions within one step (physical limitation). You can use random parameter, but you need to increase speed and force in config: "max_velocity" :30, "max_force" :500,
if you want to reach even distant position in one step you have increase third parametr: "action_repeat" :20 it will run 20 simulation steps between each action to reach even distant goals.
But as I said, random is not good way to control robot. If you want motoric babbling, run the untrained network in step robot_control mode, it will guarantee you small increase in end effector position, reachable within one simulation step
Oh, I understand now; thank you.
Closing this issue, let us know if you need any more help
Hello!
I hope I can post this a bit longer question here.
I am testing an integrated motor babbling control with
-ct random
argument forpanda
robot with following relevant config:All I try to do is to print out a performed random action and subsequent observation from the environment in the timestep loop of
test_env()
function intest.py
:If I understand it correctly, a sampled action in this case should be a new joint configuration, so the
joints_angles
segment of the subsequent observation vector should be almost the same as the action vector. It seems to work like this when using slider control:However, when using random control, those values do not seem to correspond:
So I wanted to ask, whether I misunderstood what the action vector represents, or whether there is a problem causing this discrepancy.
Thank you very much.