Closed c4cld closed 1 year ago
@LemonPi @powertj Do you have any advice? Thanks for your help in advance ^_^
Should probably be enough to change this line https://github.com/UM-ARM-Lab/pytorch_kinematics/blob/6d2e813b3c46c2990f701f33909aa394f0298798/pytorch_kinematics/mjcf.py#L6 to:
JOINT_TYPE_MAP = {"hinge": "revolute", "slide": "prismatic"}
Though, I decided to convert my mujoco files to urdf using mjcf2urdf
.
We are now using dm_control
's mjcf
parsing library so this should be resolved
Actually this is still a problem my bad; will be resolving this and adding a test for it. For now please consider the mjcf2urdf
as johannespitz suggested
I could only ever find "slide" joints defined between the base link and the world (instead of between links), which are ignored by PK. e41f519 should fix their loading
I try to use build_chain_from_mjcf function to read 'roboschool/mujoco_assets/hopper.xml'.
But I got error information as follows:
In "/root/aliyun/pytorch_kinematics/pytorch_kinematics/mjcf.py", I notice that 'JOINT_TYPE_MAP' is defined as a dictionary {'hinge': 'revolute'} at the beginning of mjcf.py. So 'JOINT_TYPE_MAP' can only receive joint of 'hinge' type.
But in 'roboschool/mujoco_assets/hopper.xml' in following figure, there are some joints of "slide" type.
So how to process joint of "slide" type?