ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Solidworks to URDF export incorrect wheel location

asked 2020-01-29 05:33:47 -0500

GEPATRON gravatar image

updated 2020-01-30 12:09:14 -0500

Dear all, I am trying 2 days now to export a simple model from Solidoworks 2018 to Gazebo, using URDF exporter. I have tried several ways as listed bellow:

a. Defining global coordinate systems for base_link in Assembly and Coordinate/Axis systems for each link both on Assembly and on part level. b. Defining global coordinate systems for base_link on Part level and Coordinate/Axis systems for each link both on Assembly and on part level c. Designing a point on base_link and attaching coordinate system on it at the Assembly level and Coordinate/Axis systems for each link both on Assembly and on part level

  • Export the URDF and Mesh letting the software create a ROS package.
  • Turning to ROS and placing the package at the correct WS
  • Executing catkin_make to account for changed headers and build the package

Executing ros_launch robot gazobo.launch {where robot is my package name} but the result are terrible no matter what method of the above I use.

If anyone is able to provide some help, please do.

edit retag flag offensive close merge delete

Comments

1

I really believe this is most unmatured piece of software I have ever used (this is not a middleware this is a junkware and this goes to both ROS, Gazebo and the URDF exporter).

I understand your experience with the exporter has not been too positive.

If anyone is able to provide some help, please do.

So after first bashing all components involved, you now expect people to start helping you?

Remember: this is a volunteering based community. That doesn't mean you're not allowed to criticise, but being polite about it may help incentivise others to help you.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-29 07:43:26 -0500 )edit

Dear all,

Apologies for my frustration expressed in a very bad way. I had no intent to criticize anyone especially when knowing the volunteer base of those projects and the massive amount of hours spent.

Solidworks2URDF doesn't seem to work in any way; at least for my configuration which is the simplest possible 4wheel small car (4 wheels and a chassi). So, the question is how does any one create URDF for Gazebo? Is it by hand (literally writing the XML required)? Is it by any other software I am not aware of? Am I doing something wrong when using the software?

BR

GEPATRON gravatar image GEPATRON  ( 2020-01-29 10:12:38 -0500 )edit

The exporter should pick up on mates to determine where coordinate origins should be placed, and what types of joints should be used.

Does your model have any mates defined?

gvdhoorn gravatar image gvdhoorn  ( 2020-01-29 13:13:40 -0500 )edit

Yes it is. But I can always make "easier" mates. For example I can replace some tangent mates with more "specific" mates which would include sketches, to better define the location of my wheels. I'll try that and come back with results. Thank you for the suggestion.

GEPATRON gravatar image GEPATRON  ( 2020-01-30 09:34:58 -0500 )edit

I'm not sure how sophisticated it all is. The simpler the better. Concentric mates would be a good start I believe.

And I would suggest to get in touch with the author/maintainer by posting an issue on the issue tracker. Especially if you keep running into these issues.

gvdhoorn gravatar image gvdhoorn  ( 2020-01-30 10:21:52 -0500 )edit

No, it didn't work. I placed specific points in center locations just to make things "easier". The result wes the same as before, from the only 2 wheels I place, the 1st is located correctly but the second is bouncing near the axle, off by both the centerline as well as the distance from the correct position. Yes I'll send a message to the author together possibly with some pictures.

GEPATRON gravatar image GEPATRON  ( 2020-01-30 10:28:45 -0500 )edit

What service pack of SolidWorks are you using? SW 2018 SP 1-4 has known issues with mesh exports. You need SP 5. It's difficult to tell if that is your issue though.

brawner gravatar image brawner  ( 2020-01-30 12:22:08 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-02-03 18:54:05 -0500

brawner gravatar image

I've downloaded the model you gave me, exported it with version 1.5.1 of the exporter in SolidWorks 2019 and have found no issues with the result. The configuration you set up in your SW model appears to be fine.

If you were able to successfully export the model, but it looked "terrible" in ROS then I would suspect this is a result of the mesh export bug that existed in SolidWorks 2018 service packs 1-4 and was not due to the URDF exporter add-in. You will need to upgrade to service pack 5, or SolidWorks 2019.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-01-29 05:33:47 -0500

Seen: 540 times

Last updated: Feb 03 '20