Authored and maintained by Stephen Brawner. Past supporters include PickNik Consulting, Verb Surgical, Open Robotics, and Willow Garage.
SolidWorks 2021
https://github.com/ros/solidworks_urdf_exporter/releases/tag/1.6.1
SolidWorks 2020
https://github.com/ros/solidworks_urdf_exporter/releases/tag/1.6.0
SolidWorks 2019 on 2018 SP 5
https://github.com/ros/solidworks_urdf_exporter/releases/tag/1.5.1
- The minimum required version of SolidWorks for use with this add-in is 2018 Service Pack 5. SolidWorks 2017 or earlier may work. See this issue.
See the ROS Wiki and associated tutorials.
- Install Visual Studio 2017
- Install .NET desktop development
- From Visual Studio:
Tools > Get Tools and Features...
- Check
.NET desktop development
package - Select
Modify
- From Visual Studio:
- Install the SolidWorks API tools
- Launch Visual Studio with admin privileges. Right click and select
Run as Administrator
- Open
sw2urdf/SW2URDF.sln
- Enable Debugging
- Right click
SW2URDF
in the Solution Explorer - Click the
Debug
Tab - Ensure
Configuration:
is set toDebug
- Ensure
Start external program:
is pointing to the SolidWorks executable. For exampleC:\Program Files\SOLIDWORKS Corp\SOLIDWORKS\SLDWORKS.exe
- Right click
Executing the following command will convert the format of the exported mesh from 3DXML to DAE, and rewrite the URDF, allowing you to display colored meshes in visualization tools like RViz:
pip3 install scikit-robot -U
convert-urdf-mesh <URDF_PATH> --output <OUTPUT_URDF_PATH>
AxImp.exe
error - Check the installation of the .Net Tools. If there is no error, install the Windows 10 SDK.Resourse.resx
error - Check ifsw2urdf/SW2URDF/Resources.resx
exists and is empty. If empty, delete this file then right click theSW2URDF
in the Solution Explorer and selectProperties
. Navigate to the Resources tab and click the button to create a new file.