From 25005a201552f86931767ac9eecd0716995c4754 Mon Sep 17 00:00:00 2001 From: Stone Tao Date: Wed, 1 May 2024 12:16:49 -0700 Subject: [PATCH] update custom robot docs, qol property about checking if gpu sim is enabled instead of checking device, demo robot can test gpu backend (#302) --- docs/source/user_guide/tutorials/custom_robots.md | 5 ++++- mani_skill/envs/sapien_env.py | 10 ++++++++++ mani_skill/envs/tasks/tabletop/pick_single_ycb.py | 4 +++- mani_skill/examples/demo_robot.py | 7 ++++++- 4 files changed, 23 insertions(+), 3 deletions(-) diff --git a/docs/source/user_guide/tutorials/custom_robots.md b/docs/source/user_guide/tutorials/custom_robots.md index e3b76c241..10e7d71bd 100644 --- a/docs/source/user_guide/tutorials/custom_robots.md +++ b/docs/source/user_guide/tutorials/custom_robots.md @@ -131,10 +131,11 @@ class ANYmalC(BaseAgent): The keyframe can also specify `qvel` values as well. Using that keyframe you can set the robot to the given pose, qpos, qvel and you can get the desired predefined keyframe -Running the script again should have correctly loaded poses and joint positions. The script by default picks the first keyframe defined. You can add more and select them shown below. +Running the script again should have correctly loaded poses and joint positions. The script by default picks the first keyframe defined. You can add more and select them shown below. You may also want to check if it is working on the GPU simulation as well ```bash python test.py -r "my_panda" +python test.py -r "my_panda" -b "gpu" # use gpu simulation python test.py -r "my_panda" -k "name_of_keyframe_to_show" ``` @@ -241,6 +242,7 @@ To try this out, simply run the following and unpause the simulation when you ar ```bash python -m test.py -r "my_panda" -c "pd_joint_delta_pos" --random-actions +python -m test.py -r "my_panda" -c "pd_joint_delta_pos" -b "gpu" --random-actions ```