Is there a way to know how many dof from a xml file?
As title mentioned,I want to know how many joints and dof does franka_sim/bi-franka_panda have,to let it move.
But it didn't say in its github page or readme.md. So is there any solution?
Thanks!
By the way if anyone know standard dataset of robots(especially two arm) plz tell me :sob:
Do you mean inside genesis or by just reading the xml?
In genesis, you can simply do entity.n_dofs, or simply type entity in a interactive shell (like ipython)
see https://genesis-world.readthedocs.io/en/latest/user_guide/getting_started/interactive_debugging.html
Also, you can use gs view <path to file> to check the asset and moveable dof
ty for telling me info about inside genesis,how about reading the xml? SInce I may need to import objects from other dataset.
You can read the XML using Genesis and access its DoFs as mentioned in the answer above. If you do not want to load it into Genesis, you can also use MuJoCo's API to load the XML and retrieve the DoFs from MuJoCo.