Repository navigation
[Newton] Fix UTs - #3317
[Newton] Fix UTs#3317AntoineRichard merged 3 commits into
Conversation
adenzler-nvidia
left a comment
There was a problem hiding this comment.
Looks good in general and works. Some stuff I can't judge added some comments - I could approve, question is how final all of these changes need to be.
I'd rather iterate here than having to do another full review when merging to the main dev branch, but I'll let you guys judge that.
| joint_start = builder.joint_count | ||
| articulation_start = builder.articulation_count | ||
|
|
||
| with Timer(name="newton_add_builder", msg="Add builder took:", enable=False, format="ms"): |
There was a problem hiding this comment.
is the timer removal intentional?
There was a problem hiding this comment.
Yes, I need to rework all of this with a new timing method.
| for i in range(num_articulations): | ||
| # since there is a moment applied on the articulation, the articulation should rotate | ||
| assert articulation.data.root_ang_vel_w[i, 2].item() > 0.1 | ||
| assert articulation.data.root_ang_vel_w[i, 2].item() < -1.0 |
There was a problem hiding this comment.
can't judge that change from far - did you double check?
There was a problem hiding this comment.
Should be OK? I'm not sure. It just happens to rotate which is what we want, but the direction is odd.
| cfg = SimulationCfg(gravity=(0.0, 0.0, 0.0)) | ||
|
|
||
| sim = SimulationContext(cfg) | ||
| SimulationContext(cfg) |
There was a problem hiding this comment.
does that line have side-effects I don't know about or is it unnecessary now?
There was a problem hiding this comment.
That's not used in the function anymore, but it's needed to see if the gravity value is properly given to our Newton manager.
Let's merge it into dev then. I don't think its critical ATM |
Description
Fix some of our UTs
Type of change
Checklist
pre-commitchecks with./isaaclab.sh --formatconfig/extension.tomlfileCONTRIBUTORS.mdor my name already exists there