Rhoban / onshape-to-robot

Converting OnShape assembly to robot definition (SDF or URDF) through OnShape API
MIT License
257 stars 59 forks source link

Unable to convert all of parts #113

Open drmwnrafi opened 1 year ago

drmwnrafi commented 1 year ago

I've renamed the revolute joint to "dof_" but it only shows 1 part image This all parts robot preview on onshape: image Output : image

This is the terminal log: image

Gregwar commented 1 year ago

Hello,

Can you share the output as a zip file?

From what I see you appear to have many parts in your top level assembly, I would recommend to pre assemble the robot parts as sub assemblies

Also, can you see the joints in the produced URDF file?

Le sam. 11 nov. 2023 à 08:41, ziczac @.***> a écrit :

I've renamed the revolute joint to "dof_" but it only shows 1 part [image: image] https://user-images.githubusercontent.com/115781654/282227388-33563d5c-c763-480d-824e-94d9bfc86d15.png This all parts robot preview on onshape: [image: image] https://user-images.githubusercontent.com/115781654/282227439-75717ce9-3e1f-44ba-baf0-cd131ec14602.png Output : [image: image] https://user-images.githubusercontent.com/115781654/282227463-453d404d-9d40-429b-9f2a-5c25f2e395c6.png

This is the terminal log: [image: image] https://user-images.githubusercontent.com/115781654/282227599-61ae96a6-e1e4-45be-ba1b-0952d60d1b54.png

— Reply to this email directly, view it on GitHub https://github.com/Rhoban/onshape-to-robot/issues/113, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZTLVDCIPQ3RXBBI4IFT3YD4T27AVCNFSM6AAAAAA7HCNKVKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DQOBRG44TOMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

drmwnrafi commented 1 year ago

Hello,

Can you share the output as a zip file?

From what I see you appear to have many parts in your top level assembly, I would recommend to pre assemble the robot parts as sub assemblies

Also, can you see the joints in the produced URDF file?

Le sam. 11 nov. 2023 à 08:41, ziczac @.***> a écrit :

Hello, This is the file : outputs.zip

Gregwar commented 1 year ago

Indeed only one joint is appearing in the URDF itself

Did you click children first when creating DOFs?

drmwnrafi commented 1 year ago

Indeed only one joint is appearing in the URDF itself

Did you click children first when creating DOFs?

Yes, i clicked child first. The parts for the revolute joint come from different documents, is that the problem?

Gregwar commented 1 year ago

From what I see in your screenshot, I think the problem is that you dont have subassemblies for the rigid parts of your robot

You cant have complex relations in your top level assembly, try having your dofs only here

This is a current limitation of onshape to robot

Le sam. 11 nov. 2023 à 09:37, ziczac @.***> a écrit :

Indeed only one joint is appearing in the URDF itself

Did you click children first https://onshape-to-robot.readthedocs.io/en/latest/design.html#specifying-degrees-of-freedom when creating DOFs?

Yes, i clicked child first. The parts for the revolute joint come from different documents, is that the problem?

— Reply to this email directly, view it on GitHub https://github.com/Rhoban/onshape-to-robot/issues/113#issuecomment-1806751241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACZTLRKJB3XIAUSGIYF453YD42LNAVCNFSM6AAAAAA7HCNKVKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBWG42TCMRUGE . You are receiving this because you commented.Message ID: @.***>