0
$\begingroup$

Rosanswers logo

I wonder what is the normal process of the development of a robot, this would be a broad question and not specific enough.

What I want to know urgently is dependent on what I choose to get URDF by hand OR by Solidworks export plugin.

I heard that using sw_urdf_exporter would introduce error of coordinate etc. and sometimes not work, and the code format is not good for maintenance if exported automatically without xacro. In addition, I notice that the URDF of pr2 robot is written manually, which easier to understand the code.

However, writing a bunch of URDF to develop a robot seems not normal intuitively.


Originally posted by shawnysh on ROS Answers with karma: 339 on 2017-01-12

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I first tried to use SW to URDF and had many problems with meshes coordinates, and some other problems I don't remember now.

By the time I almost fixed everything I had a good understanding of how URDF was working, and I discovered xacro. Now I am only using xacro to produce my URDF.

Some points against using this SW to URDF :

  • everytime you update your file on Solidworks you need to export everything again. In my case I am running Ubuntu on my computer, and am not the one doing the mechanical design. It means I had to install SW on my Windows, and everytime I had to change something I had to restart my computer, go to Windows, run the plugin, etc, etc.

  • The development of the plugin is not supported anymore

  • One day you will need to debug something in your URDF. It will be harder if you don't know how it's made

  • With this plugin you can't use xacro, which is a great tool and will save you some time in the future

The SW to URDF plugin has both positive points and negative points. I think it can be very useful in some cases. But personally, from my experience, I would suggest to create a xacro file instead of using the plugin.


Originally posted by renarded with karma: 161 on 2017-01-13

This answer was ACCEPTED on the original site

Post score: 3


Original comments

Comment by shawnysh on 2017-01-14:
I wonder how to make mesh file to coincident with the urdf you write manually. I think the key to urdf file is the relation of link and joint, which mainly includes origin tag and axis tag. So, the mesh for links should be exported by blender one by one through modifying coordinates, right?

Comment by renarded on 2017-01-16:
@shawnysh Each joint origin depends on the parent link. The origin of a link (in visual) is the origin of the visual part depending on the specific link (it's kind of a local offset origin). You have to export each mesh with a local origin (zero)

Comment by shawnysh on 2017-01-18:
thanks, gotcha

Comment by umar_anjum on 2022-04-23:
through xacro could I make model of an apple?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.