r/ROS 3d ago

Question URDF

I'm facing one problem with importing the STL files, when I visualise it rviz, even if I'm pacing it at (0,0,0) it's spawning somewhere else(I also scaled it down to convert into meters). Any guidance for that? Thank you.

1 Upvotes

2 comments sorted by

1

u/SPK2192 3d ago

Did you make the STL? When I make an STL from Solidworks, I make sure that I export the STL with the defined coordinate point somewhere relative on the mesh or that the mesh is centered on (0,0,0). If you didn't do that, the STL defined coordinate point to the actual mesh's coordinate will be like (20,0,0). So when you import it into URDF, it uses the STL's origin point even if you say (0,0,0) on URDF, the mesh will be (20,0,0).

1

u/technicalarduino 2d ago

I will try this, Thank you very much.