Skip to content
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

Do you how to get observation as same as issacgym's obervation ? #5

Open
heartInsert opened this issue Jun 21, 2024 · 6 comments
Open

Comments

@heartInsert
Copy link

hey , bro, I trained a RL model in issacgym , and I run this al_sim_py sucessfully , there is a observation called dof_state in issacgym , maybe it is called joint_state in gazebo , how can I get this joint_state ?

@lnotspotl
Copy link
Owner

lnotspotl commented Jun 21, 2024

You should be able to get the joint angles from the "a1_gazebo/joint_states" topic, see here

By the way, I am curious, what kind of a policy have you trained?

@heartInsert
Copy link
Author

Thanks for your relpy , bro . After I subscribe the topic a1_gazebo/joint_states , I get WARNING: no messages received and simulated time is active. Is /clock being published? . I don't know why it happend. So I use service /gazebo/get_joint_properties 12 times to get my joint state .

@heartInsert
Copy link
Author

I have trained a PPO model in Isaacgym and I have to deploy this PPO model in A1 , the biggest problem right now is how to change gazebo's observation to Isaacgym's observation . I have accomplish the whole workflow ,
my model walks well in Isaacgym but the doesn't walk well in gazebo . I try to figure it out.

@lnotspotl
Copy link
Owner

It's paramount your model is fed the same input it was given during the training phase. It's a bit tricky, I am talking from my own experience. Take a look at the tbai project where I was trying to deploy a trained walking policy in Gazebo, exactly what you are trying to achieve.

@heartInsert
Copy link
Author

Thanks for your reply , bro. After carefully reading a lot of different projects , I finally overcome this problem , my PPO model could walks in Gazebo right now . Thanks for your help again.

@lnotspotl
Copy link
Owner

lnotspotl commented Jun 27, 2024

That's awesome. Congratulations

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

No branches or pull requests

2 participants