-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can we use keyframes to Initialize the panda robot arm posture. #868
Comments
This method is correct. Do you have a script or an example image of what happened? I just tried this myself and it looks fine for me. |
Thanks for your help! There is my
The code in the script "panda" is identical to the original code; I have not made any modifications. The following are my error messages:
|
a keyframe object is a dataclass consisting of a root pose for the root link and the qpos. Do |
Thanks for your help. But why are the robot's grippers not in a closed state when I set the last two dimensions of |
Did you take an action perhaps? |
Yes. But I believe the actions in my simulator should not affect the closure of the grippers. |
Meanwhile, is there a way for us to initialize the Panda robot's initial pose by defining the end-effector pose?I saw some code in another discussion:
It use |
you should the last dimension to either -1 or 1 to open/close (i forget which is which) |
overall it shouldn't be that slow since this is only during episode initialization? compute_ik was tuned by default for accuracy to align with the CPU simulation more closely (the pinnochio CLIK solver uses quite a few iterations). It is possible to lower the number of optimization iterations but I did not expose that API in the compute_ik function. I presume you are using the GPU simulation? If so I can maybe expose the API to enable user to modify the ik configs to run faster but less accurate. |
Okay, thanks for your replay! |
I previously used CPU simulation, and this function worked. I am just curious about the performance of this function on the GPU. Thanks very much for your detailed replay. |
However, I have recently encountered some issues when using GPU simulation for robot pose initialization. The problems are as fellows.
However, when I run the code, the simulator throws the following error:
|
In previous discussions, it was mentioned that setting the statement
self.agent.robot.set_qpos(self.agent.keyframes["rest"])
under thedef _initialize_episode
function can initialize the Panda robot's pose. However, when I run this program, I encounter many errors and can't Initialize the pose successfully.Is this direct method correct? What can I do to use keyframes to Initialize the panda robot arm posture?
The text was updated successfully, but these errors were encountered: