RobotDescriptor icon indicating copy to clipboard operation
RobotDescriptor copied to clipboard

Error while running sdfExport.FCmacro

Open suraj2596 opened this issue 4 years ago • 1 comments

writing to file/home/suraj/.gazebo/models/testing/testing.sdf
b_sicissor_unit_001_
b_sicissor_unit_001_001
circularEdge_001
circularEdge_001_mirror
Joint
Joint: Joint with label Joint detected!
Traceback (most recent call last):
  File "/home/suraj/.FreeCAD/Mod/RobotCreator/Macros/sdfExport.FCMacro", line 63, in <module>
    sdfFile.write(' <joint name="'+bodyLabelFromObjStr(obj.Parent)+bodyLabelFromObjStr(obj.Child)+'" type="revolute">\n')
  File "/home/suraj/.FreeCAD/Mod/RobotCreator/Macros/sdfExport.FCMacro", line 22, in bodyLabelFromObjStr
    return c.Label
<class 'AttributeError'>: 'NoneType' object has no attribute 'Label'

suraj2596 avatar May 10 '20 11:05 suraj2596

Have you used assembly plugins like Assembly2, 3, 4 and A2plus? RobotCreator Workbench cannot read those parametric object now.

More detail, it is caused from parent and children object parsing. obj.TypeId == 'PartDesign::Body' in bodyFromPad() may be worse. It needs to fix the object parsing function to handle parametric information such assembly plugins.

realteck-ky avatar Apr 22 '23 02:04 realteck-ky