Gazebo | Ignition | Community
Ask Your Question

Use arguments in sdf files in gazebo

asked 2020-10-22 11:22:16 -0500

Alia gravatar image


I want to know if it is possible to pass arguments to the sdf files from the launch file. I know it is possible with urdf files but I already structured my code with sdf files. I'm using gazebo-ros-pkgs with ros eloquent to simulate Px4 flights.

Also, is it possible to use xacro files with sdf files?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-10-25 21:43:57 -0500

wongrufus gravatar image

updated 2020-10-25 21:48:19 -0500

The xacro equivalent for sdf is embedded ruby which should be more expressive given ruby is a full blown programming language.

More details can be found here with the this example

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2020-10-22 11:22:16 -0500

Seen: 77 times

Last updated: Oct 25 '20