Repository navigation
Replies: 3 comments
|
Thank you for posting this question. Should we assume the network has already been trained? it seems there is some observation data processing missing, or the network needs more rounds of training, or both. If you could elaborate on the task at hand, and which are the pieces you are trying to put together may help us provide better feedback. I will move this post to our Discussions section for follow up. Thank you for your interest in Isaac Lab. |
|
Learning is complete and the robot walks well. And the observation values are entered well, and the first values output as action values are confirmed normally. However, when moving to the next step, when the joint position values are updated using the action * action scale values, the values start to increase and diverge. |
|
Values that grow step after step usually mean the action is treated as an increment, or the joint observation is built differently from training. In Isaac Lab, with the usual The observation terms the velocity tasks use are: So the deploy loop must be: obs = build_obs(q - q_default, dq, last_action, ...) # same order/scales as the cfg
action = session.run(None, {"obs": obs[None]})[0][0]
q_target = q_default + action_scale * action # absolute, NOT q_current + ...
send_pd_target(q_target) # robot PD tracks it
last_action = action # raw outputIf you send Also check these:
To check: record the obs vector for a few steps in sim ( |
Uh oh!
There was an error while loading. Please reload this page.
I'm writing a sim2real code
Since I use 50 obs data, I input the values corresponding to each obs data in order to the onnx neural network
Then, I input the 12 action values output from onnx to the robot's joints
At this time, the joint input value is input as action*action_scale value
And, the action value without multiplying the action scale is used as the previous action value and used as the input data for the new onnx file
I structured the code like this, but when I ran the code, the data generated as the joint input value gradually increased and eventually diverged to an infinite value
Why is this happening?
Just in case, I tried using the action*action_scale value as the previous action value and it worked the same way.
I used the learning created by referring to the existing bipedal walking code
I look forward to your reply.
Thank you.
All reactions