Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get roll/pitch/yaw angles of occurrence & joints ? (not transform matrix)

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
devemin
1111 Views, 2 Replies

How to get roll/pitch/yaw angles of occurrence & joints ? (not transform matrix)

Hello.

 

I like the Fusion 360, and I'm beginner.

 

I want to get the angles of occurrence. (roll / pitch / yaw )

I will use it for making the URDF files. (for ROS (Robot Operating System) ).

 

So, I get the occurrence 's transform (Matrix3D) property.

I can convert the matrix to angles.

 

But I t think that this may occur gimbal lock (loss of axis).

And It's not simple way.

 

Can anybody suggest me the another way of getting angles of occurrences ?

Thanks.

 

 

devemin_0-1612852428632.png

devemin_1-1612853851312.png

 

ref: 

1.

https://github.com/KobayashiRui/Fusion360_SDF_Export/blob/master/URDF_Export/urdf_export.py

2.

https://help.autodesk.com/view/fusion360/ENU/?guid=GUID-7fb9ea55-5c24-4c27-b1c4-2e92f42774f7

3.

https://github.com/SpaceMaster85/fusion2urdf

 

Labels (1)
  • API
2 REPLIES 2
Message 2 of 3
debreuil
in reply to: devemin

I'm not sure I fully understand, but maybe the coordinateSystem methods on Matrix3D would help? They work in the vectors of the coordinate systems, with an offset origin. Apologies if you've seen this and mean something else...

 

getAsCoordinateSystem: Gets the matrix data as the components that define a coordinate system.
setWithCoordinateSystem: Sets the matrix based on the components of a coordinate system.
setToAlignCoordinateSystems: Sets this matrix to be the matrix that maps from the 'from' coordinate system to the 'to' coordinate system.



Message 3 of 3
devemin
in reply to: devemin

Hello debreuil.

 

Thanks for your reply.

Maybe it is right way of getting angles.

 

I will check the properties from now on! I will try it.

 

devemin_0-1612947584828.png

 

 

Thanks. 🙂

devemin

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report