a1_sim_py icon indicating copy to clipboard operation
a1_sim_py copied to clipboard

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

Open heartInsert opened this issue 1 year ago • 6 comments

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 ?

heartInsert avatar Jun 21 '24 07:06 heartInsert

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?

lnotspotl avatar Jun 21 '24 10:06 lnotspotl

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 avatar Jun 22 '24 12:06 heartInsert

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.

heartInsert avatar Jun 22 '24 13:06 heartInsert

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.

lnotspotl avatar Jun 22 '24 15:06 lnotspotl

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.

heartInsert avatar Jun 27 '24 07:06 heartInsert

That's awesome. Congratulations

lnotspotl avatar Jun 27 '24 16:06 lnotspotl