Closed Th-Havy closed 3 years ago
Thanks for the bug report, we'll look into this.
Hi @Th-Havy, This issue has been resolved in the latest commit. https://github.com/Unity-Technologies/URDF-Importer/commit/68d91b3551f4c8073e03d6e5f48c5e909d121228 Vidur
Hi @Th-Havy,
I wanted to check in and see if Vidur's fix was able to resolve your issue?
Hi @mpinol ,
Thanks, it works well now, the bug has been corrected. I'll close the issue.
I encounter a bug with the URDF robot, which can occurs spuriously both in edit and play mode.
I am running Unity 2020.2.1f1.
The bug occurs when the field
Axis Type
of theUrdf Robot
script is set toZ Axis
, and it is shown in the following video:https://user-images.githubusercontent.com/31824065/104349311-0c9fe380-5503-11eb-812c-d34552b1b326.mp4
Basically, this spurious axis switching can occur when the gameobject to which the UrdfRobot is attached is selected in the inspector.
I have traced the source of the bug in
UrdfRobot.cs
. Basically at line 26 there is:But
currentOrientation
should instead be initialised with the value ofchoosenAxis
[sic] e.g. inOnEnable()
and/or inAwake()
.