Joint not accessible

Joint not accessible

Anonymous
Not applicable
314 Views
0 Replies
Message 1 of 1

Joint not accessible

Anonymous
Not applicable

So I am trying to build an urdf model (http://wiki.ros.org/urdf) from our robotic arm design by traversing the whole assembly and checking for rigid groups, rigid joints, normal joints and creating STL files, links and joint elements for the urdf definition.

Here is what I've done so far (https://github.com/GummiArmCE/fusion360_scripts).

A problem I am having, is that sometimes when going through properties of these joints, I can't read anything from them, I get the error:

>>>>  File "C:/Users/Frederico/AppData/Local/Autodesk/webdeploy/production/957ce16f9555f92925985b77abe440de715ead70/Api/Python/packages\adsk\fusion.py", line 2405, in _get_occurrenceOne
    return _fusion.AsBuiltJoint__get_occurrenceOne(self)
RuntimeError: 2 : InternalValidationError : occPath1.valid()

I am catching this, so it is still kind of working, but I have tried .isValid (with the same error) and adding

 

health = j.healthState

if health == adsk.fusion.FeatureHealthStates.ErrorFeatureHealthState or health == adsk.fusion.FeatureHealthStates.WarningFeatureHealthState:

message = j.errorOrWarningMessage

as suggested by the examples, but it also does not seem to catch it.

What am I doing wrong?

INB4: I am going through both components and occurrences to do this and checking normal .joints elements and .asBuiltJoints


0 Likes
315 Views
0 Replies
Replies (0)