Open akhilsathuluri opened 4 months ago
When adding the elements of SimpleTransmission there are no problems. But when loading the modified urdf back to amo_urdf DSL, we get the issue:
SimpleTransmission
urdf
amo_urdf
File <string>:167 Type(xmltext= "SimpleTransmission",xmltext = " ^ SyntaxError: unterminated string literal (detected at line 167)
The issue is because of the way SimpleTransmissions are currently added. When adding the tag adds the following element in the urdf
SimpleTransmissions
<transmission name="transmissionankle" > <type xmltext="SimpleTransmission" > SimpleTransmission </type> <actuator name="actuator_ankle" > <mechanicalreduction xmltext="1" > 1 </mechanicalreduction> </actuator> <joint name="ankle" > <hardwareInterface name="EffortJointInterface" /> </joint> </transmission>
When parsing it back some elements are not recognised,
Transmission(\n Type(xmltext= "SimpleTransmission",xmltext = "\n SimpleTransmission\n "),\n Actuator(\n Mechanicalreduction(xmltext= "1",xmltext = "\n 1\n "),\n name= "actuator_ankle")
Problem
When adding the elements of
SimpleTransmission
there are no problems. But when loading the modifiedurdf
back toamo_urdf
DSL, we get the issue:Problem origin
The issue is because of the way
SimpleTransmissions
are currently added. When adding the tag adds the following element in the urdfWhen parsing it back some elements are not recognised,