Open LuckierDodge opened 5 years ago
I'm currently in the works of obtaining CAD files from the chassis team so I can convert them to URDF files. If you were a sane person you'd use the Solidworks to URDF Exporter add-in to automatically convert Solidworks files into the URDF models necessary for this issue. I don't have solidworks installed though and I don't wanna go through the hassle of obtaining and installing that from NIU Robotics, so I'm gonna do a bit of a bootstrap thing instead and hope it works.
My plan is such:
rosrun collada_urdf collada_to_urdf <input.dae> <output.urdf>
to convert our collada file into URDF now.This plan is either big brain or thick skull, but I hope it works either way. Wish me luck.
Outstanding! The workflow we need, but not the one we deserve.
Notes I learned about my process I described:
Rover.zip
and then you'll have to either ask or unzip it, skim through the couple hundred files, and take a lucky guess on which .SLDASM file is the root one. New Rover 2.08 12.18.18.zip
was the right one for me, but it's easier if you just skip this ordeal and ask them to name it the same as the root assembly file.Sad news--I don't think this collada_urdf package is worth the extra hassle. It was a pain to get CAD files in the correct format for Onshape to accept the import, it took me like 7 tries to export it without my anti-virus software blocking the download (which was obnoxious to sort out), I had to google a lot to figure out I had to sudo apt-get install ros-<distro>-collada-urdf
since the collada_urdf package documentation does not say anything about it, and now when I just did rosrun collada_urdf collada_to_urdf New-Rover-v2_08-12_18_18.dae Rover-2018dec18.urdf
, it gave back:
;; Input file is: New-Rover-v2_08-12_18_18.dae
Error: Error document empty.
at line 71 in /build/urdfdom-ACOcA8/urdfdom-1.0.0/urdf_parser/src/model.cpp
ERROR: Model Parsing the xml failed
At this point I'm running against a sunk cost fallacy and I think I'm just wasting my time with something that is more hassle than it's worth, so I guess I'm gonna bite the bullet and install solidworks. This package was worth a shot, but it seems to be a bigger ordeal than I was hoping and I think I should just move on to something more likely to work.
Currently have done 2 attempts of making the ad astra URDF model with the SolidWorks URDF exporter. The first attempt (which you can find in the commit history if you'd like) has 0 joints if I remember correctly so it's basically just a really fancy brick, and the second attempt has around 7 or so joints at places I thought they belonged, but I could be wrong with how I set them up. At this point, the next steps would be to: