You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2023. It is now read-only.
I'm trying to convert the attached asf/ amc files (from the CMU dataset) to bvh. However the output bvh euler angles don't match the input ones. I'm trying to load the animation in MuJoCo similarly to what has been done here: parse_amc but for bvh.
I've also attached a script that prints the possible euler angles from the transformation matrix for a joint in the first frame, (as a newbie) I would expect one of the conversions to match almost perfectly the amc data. But since it doesn't I think I don't fully understand the conversions so any hint/help would be fantastic!
In the same script I also made a check with conversions from dm_control and they match.
E2R uses an extrinsic rotations format when initialising an euler angle, so I created a new function E2R_intrinsic and used that one.
After implementing point 1 most of the joints already match but others like rhumerus or lhumerus are completely off. The issue comes from joint.Cinv which I don't fully understand. I guess everything boils down to why when setting a joint rotation matrix we do CRC^-1?
Anyhow when replacing the product CRC^-1 with just R the joint angles match perfectly. However now that the joint angles match when I save a bvh file using those and try to load it back in the visualizer the mocap is broken.
I'm confused I thought that in both file formats the mocap was saved as euler angles per joint, so I would expect that after defining the skeletons the joint angles should match to some extent.... am I missing something very basic?
Hello,
I'm trying to convert the attached asf/ amc files (from the CMU dataset) to bvh. However the output bvh euler angles don't match the input ones. I'm trying to load the animation in MuJoCo similarly to what has been done here: parse_amc but for bvh.
I've also attached a script that prints the possible euler angles from the transformation matrix for a joint in the first frame, (as a newbie) I would expect one of the conversions to match almost perfectly the amc data. But since it doesn't I think I don't fully understand the conversions so any hint/help would be fantastic!
In the same script I also made a check with conversions from dm_control and they match.
asf_amc.zip
angle_checks.py.zip
Thanks in advance for your time,
-Vittorio
The text was updated successfully, but these errors were encountered: