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
When trying to create new elements the end tag sometimes does not match the start tag. If I create a new element named hardwareInterface, the end tag makes hardwareinterface. As you can see it made the entire word lower case. It appears the code is changing it to lower case. Also the transmission joint tag comes through as follows: <joint name="joint_1>. I tried a work around by creating my own elements, then I ran into the code making my end tag lower case.
The text was updated successfully, but these errors were encountered:
Hello, this issue is caused becuase of a small bug in the urdf generation where the explicitly named elements with element_name is overruled, for example in the case of a TransJoint. This line overrides the already mentioned name and simply reads the element name again, i.e., instead of reading it as joint, it reads it as transjoint, which causes the joint element to not close. This can be fixed by changing,
s +=" "*depth + "</" + type(self).__name__.lower() + ">\n"
to
s +=" "*depth + "</" + name + ">\n"
And to preserve the capitalisation of the tag of the hardwareInterface, youll need to simply make it into a named element by using the element_name argument.
Both of the issues are now fixed in the PR, which you can use if you still have the problem: a8df303
When trying to create new elements the end tag sometimes does not match the start tag. If I create a new element named hardwareInterface, the end tag makes hardwareinterface. As you can see it made the entire word lower case. It appears the code is changing it to lower case. Also the transmission joint tag comes through as follows: <joint name="joint_1>. I tried a work around by creating my own elements, then I ran into the code making my end tag lower case.
The text was updated successfully, but these errors were encountered: