0
$\begingroup$

I'm currently working on a simulation in Gazebo and have encountered a bit of a challenge. I'm trying to create a drone for the simulation and was considering using a URDF file, but I don't have much experience with it yet. I've learned how to create STP files using CAD systems like SolidWorks.

So, my question is: Which is better for a Gazebo simulation, a URDF file or an STP file?

Thanks in advance for your help!

$\endgroup$

1 Answer 1

1
$\begingroup$

Perhaps it would help if I explain a bit what these two file formats are, as .stp and .urdf can not be used interchangeably, as they are very different formats made for different purposes.

  • URDF stands for universal robotics Description format, which is a xml based file where you can describe your robot. Which elements or sensor it has, which parts it contains and what type of joints it has. URDF models are mostly used within the ROS (2) framework. Within this file, you can also assign mesh files to the way it looks, its collision model or physics model.
  • STEP (or stp) stands for Standard for the Exchange of Product, which is a standardized format between CAD programs (like catia and solidworks) to share 3D models with. One of the main features is that all features are retained, and assembly information is included as well (like with links/arms ect.). It now sounds perhaps a bit more similar than what an urdf is, but a step file is purely visual and doesn't contain anything in terms of collision or physics (at least what I know of). Also it is made as a standard for CAD programs but not simulations like Gazebo.

So as of your question, I am close to sure that you can not use .stp as is in Gazebo and you'll need to convert it to either an URDF or SDF (the latter is gazebo's standard). That can be either done by finding an step-urdf or step-sdf converter online, or by exporting each part as a mesh file (.stl or .dae) and importing them manually into the urdf yourself.

For a massive multilink robot I would suggest finding a converter if you already have a step file, but for a drone (a quadcopter I assume), the file will be quite simple as that only contains 5 parts (1 body and 4 props). For a reference, you can check the gazebo fuel models for the X3 model, which is in SDF but I'm sure that it will be possible to convert that to URDF easily: https://app.gazebosim.org/OpenRobotics/fuel/models/X3%20UAV

$\endgroup$
1
  • $\begingroup$ Ty very much. After a lot of searching in the internet i found out that i cant use STEP in Gazebo but stl. i convert my step to stl and now i am facing the issue to connect my stl-files with my code. i am doing "mesh" and everything that i found in the internet but it dose not work. to descripe the problem: when i use "mesh" Gazebo shows me nothing but it gives me that there should be smth there. there is no Errors. i think i am not linking the file well. Do you know a tutro. or can you help me out to be able to do it ? $\endgroup$
    – Alba
    Commented Aug 15 at 8:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.