Gazebo | Ignition | Community
Ask Your Question

How to make a simple straight road in gazebo?

asked 2018-02-19 21:31:17 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi, I am new to gazebo and trying to load a simple road on the ground. Can someone help the process and any existing code will be appreciated. Thanks!!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2018-02-21 16:41:11 -0500

chapulina gravatar image

Try running the following example world:

gazebo worlds/

Here is the world's SDF file.

image description

edit flag offensive delete link more


Thanks a lot Chapulina. I am able to insert this road from the command line by giving $gazebo .gazebo/worlds/ But is it possible to get it directly in gazebo tool as a model like this( I need to add grass and trees into this. Any suggestion is appreciated.

Saroj gravatar imageSaroj ( 2018-02-23 00:33:39 -0500 )edit

You can choose models from the insert panel on the left, the [Sonoma Raceway]( model already has roads and grass and all. There are models for [trees](;q=tree), [houses](;q=house) and others there too.

chapulina gravatar imagechapulina ( 2018-02-23 11:34:30 -0500 )edit

Hi.. any idea how to replace the 2 lines on the middle of road with a single line?

Athulyank gravatar imageAthulyank ( 2021-06-21 07:51:35 -0500 )edit

answered 2018-02-23 00:24:16 -0500

Saroj gravatar image

Hi, I got the solution in one more way ie following the process of adding a mesh into gazebo. Hereis the link:

Download a 3D road model in dae format and rename it into my_mesh.dae according to the code. Its working fine. Otherwise change the code according to the name of your dae model.

edit flag offensive delete link more

answered 2018-02-20 06:39:38 -0500

just click cylinder icon at top of your gazebo, than a cylinder will appera in your gazebo window/workspace. than click scale mode icon at top of gazebo workspace. simple.

edit flag offensive delete link more


Thanks Dinesh. I tried it, it appears like a curved road virtually. Is it possible to make it as straight road by giving any link parameters? Also I am not able to place my robot on this to run it.

Saroj gravatar imageSaroj ( 2018-02-20 23:54:07 -0500 )edit

Question Tools

1 follower


Asked: 2018-02-19 21:31:17 -0500

Seen: 6,580 times

Last updated: Feb 23 '18