Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running sdfExport.FCmacro #8

Open
suraj2596 opened this issue May 10, 2020 · 1 comment
Open

Error while running sdfExport.FCmacro #8

suraj2596 opened this issue May 10, 2020 · 1 comment

Comments

@suraj2596
Copy link

suraj2596 commented May 10, 2020

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'
@realteck-ky
Copy link
Contributor

realteck-ky commented Apr 22, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants