syuntoku14 / fusion2urdf

A Fusion 360 Script to export URDF
MIT License
481 stars 163 forks source link

File "C:/Users/ashfa/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/URDF_Exporter\core\Joint.py", line 176, in make_joints_dict joint_dict['child'] = re.sub('[ :()]', '_', joint.occurrenceOne.name) AttributeError: 'NoneType' object has no attribute 'name' #52

Open AshfakYeafi opened 3 years ago

AshfakYeafi commented 3 years ago

I am new to ROS and fusion 360. Can anyone explain why I am having this error?

rohit-kumar-j commented 3 years ago

Could be due to many reasons. General problem solving that I figured out after much trial and error:

  1. Get the latest version of the exporter
  2. Re-check the joint creation order (which component is the parent and which is the child... in README)
  3. Check the names of the joints: If the joint names are "Joint 1" change it to "joint_1" (remove spaces and make 1st letter lower case, replace spaces with underscores)
  4. Check the names of the links: If the link names are "Link 1" change it to "link_1" (remove spaces and make 1st letter lower case, replace spaces with underscores)
  5. Create a milestone before using the exporter (revert model back to this if export failed)
  6. For complex joints, kinematic loops, etc, follow this README file (It is a fork of trial and error and constant iterations that I have created for my own project)
  7. Finally before URDF export, click on " DO NOT CAPTURE DESIGN HISTORY " Close the issue if this solves the problem