-
Notifications
You must be signed in to change notification settings - Fork 154
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
if joint.occurrenceTwo.component.name == 'base_link': AttributeError #51
Comments
Your component name is "base_link (2)", while the body name is "base_link". Change the component name to "base_link" and the body name can be whatever you want Close the issue if this solves the problem. |
What if there is a version number always appended to the body name? |
@chasebrignac, good question. I had a doubt and checked it out. When you copy-paste the component directly ( Note that you cannot remove the As you can see below, when I edit Due to these subtleties, I suggest you plan the way you import and work with the parts as explained in the README. I will create a PR in the README for this. -Rohit |
Precautions about certain workflows while assembling and generating urdf added to the readme. Also referenced in Issue syuntoku14#51
@rohit-kumar-j Thank you so much! |
Suppose anyone is still having this error. I found that the problem was that the joints were not well created. To check if your joints are well-designed, follow the steps below:
|
@rohit-kumar-j I am encountering the same isue, |
Error-
![image](https://user-images.githubusercontent.com/59415338/125658380-f37fb0c9-22f3-482a-834d-13d76d257c95.png)
Failed:
Traceback (most recent call last):
File "C:/Users/rukshan/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/URDF_Exporter/URDF_Exporter.py", line 59, in run
joints_dict, msg = Joint.make_joints_dict(root, msg)
File "C:/Users/rukshan/AppData/Roaming/Autodesk/Autodesk Fusion 360/API/Scripts/URDF_Exporter\core\Joint.py", line 172, in make_joints_dict
if joint.occurrenceTwo.component.name == 'base_link':
AttributeError: 'NoneType' object has no attribute 'component'
The text was updated successfully, but these errors were encountered: