ros/solidworks_urdf_exporter

"Reference sketch does not exist"

HWang-Orion opened this issue · 9 comments

Hi,

I was encountering a problem with a configuration property manager that the " reference sketch does not exist" during SOLIDWORKS exported a model to urdf.

This happened when I tried to add several reference geometries such as coordinate systems for export preparation to urdf.

Though this would not occur when I export directly with the axes and coordinate systems left as automating generated, the model would not perform correctly in this case, signifying the necessity of defining these by myself.

Therefore the previous question comes again.

Could anyone provide any help regarding this problem? (I did not find related problems in the tutorials. Thus I hope someone might help with this issue.)

Thank you for all this.

So the problem may be reconsidered as in what condition the reference geometry is invalid during the export, I think. How to avoid this and create valid reference geometries?

Hey @wh366666648,

I had the same problem, after I deleted the URDF Export Configuration, the URDF Refernce and the Origins and Axis for the Joints from the assembly. Unfortunately i found no smart solution. So what has worked for me was to create a new assembly for my robot from scratch again and then do the URDF export again. It's a bit unconvenient but it works.

Thanks @marv-le
Actually, I found that this problem DISAPPEARS when I tried to export again from an unconfigured assembly. The procedures were almost the same. Therefore I think perhaps that would be a bug of the exporter (?)
And I now believe that saving the assembly before the file is added with reference geometries might be useful and necessary.

Thank you for replying regarding this issue. Best regards.

你好,我也遇到了这个问题。
我想我应该是解决了。在为link选择转轴和坐标系时,不要使用自动生成的坐标系。为每个单独的Link设置其自己的坐标系。这样在导出的时候就不会出错了。

Hello, I have the same problem.
I think I have it figured out. Do not use an automatically generated coordinate system when selecting the rotation axis and coordinate system for Link. Set up its own coordinate system for each individual Link. So that you don't make mistakes when you export.

Thanks @marv-le Actually, I found that this problem DISAPPEARS when I tried to export again from an unconfigured assembly. The procedures were almost the same. Therefore I think perhaps that would be a bug of the exporter (?) And I now believe that saving the assembly before the file is added with reference geometries might be useful and necessary.

Thank you for replying regarding this issue. Best regards.

i don't understand please can you exlplain how to resolve this problem

I had created a global coordinate system that I wanted to use, that caused this issue. By not using it I was able to use the local coordinate systems and axis

i set automatically generate in the end-effector of the robot (which is a fixed joint)
give that link a coordinate system and axis and not use automatically generate solves my problem

Delete URDF Reference and axis solved my problem.
图片

"
I had created a global coordinate system that I wanted to use, that caused this issue. By not using it I was able to use the local coordinate systems and axis

"

This solved the problem for me (I deleted that configuration). So likely if you found a video on youtube that uses the creation of a global coordinate systems, the best way to solve this is assembling your robot with the ROS convention of XYZ.

More for info here:

https://www.ros.org/reps/rep-0103.html