How to make a simple straight road in gazebo?
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!!
Asked by Saroj on 2018-02-19 22:31:17 UTC
Answers
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.
Asked by hari1234 on 2018-02-20 07:39:38 UTC
Comments
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.
Asked by Saroj on 2018-02-21 00:54:07 UTC
Try running the following example world:
gazebo worlds/road.world
Here is the world's SDF file.
Asked by chapulina on 2018-02-21 17:41:11 UTC
Comments
Thanks a lot Chapulina. I am able to insert this road from the command line by giving $gazebo .gazebo/worlds/road.world. But is it possible to get it directly in gazebo tool as a model like this(https://github.com/osrf/car_demo/tree/master/car_demo/models)? I need to add grass and trees into this. Any suggestion is appreciated.
Asked by Saroj on 2018-02-23 01:33:39 UTC
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, houses and others there too.
Asked by chapulina on 2018-02-23 12:34:30 UTC
Hi.. any idea how to replace the 2 lines on the middle of road with a single line?
Asked by Athulyank on 2021-06-21 07:51:35 UTC
Hi, I got the solution in one more way ie following the process of adding a mesh into gazebo. Here is the link: http://gazebosim.org/tutorials?tut=import_mesh&cat=build_robot
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.
Asked by Saroj on 2018-02-23 01:24:16 UTC
Comments