Skip to content

Conversation

AntoineRichard
Copy link
Collaborator

Description

Modified the FrameTransformer to work with Newton. All the calculations are now done in warp with zero-copy torch bindings.

Run with zero actions:
./isaaclab.sh -p scripts/environments/zero_agent.py --task Isaac-Open-Drawer-Franka-v0 --headless --num_envs 4 --newton_visualizer

Train:
./isaaclab.sh -p scripts/reinforcement_learning/rsl_rl/train.py --task Isaac-Open-Drawer-Franka-v0 --headless --num_envs 4096

"""
quat = quat_1 * quat_2
pos = pos_1 + wp.quat_rotate(quat_1, pos_2)
return wp.transformf(pos, quat)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if you could keep your transforms in a wp.transform object everywhere in this file? Then you can just do tf1 * tf2, or wp.transform_inverse(tf1) * tf2, etc. instead of handling position and rotation separately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants