GithubHelp home page GithubHelp logo

a4aleem / gazebo_models_worlds_collection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leonhartyao/gazebo_models_worlds_collection

0.0 1.0 0.0 322.01 MB

collection of gazebo models and worlds

License: GNU General Public License v3.0

CMake 16.85% GLSL 83.15%

gazebo_models_worlds_collection's Introduction

Gazebo models and worlds collection

License

This repository contains models and worlds files for Gazebo, which are collected from several public projects.

Usage

To use the models, the models directory needs to be added to the GAZEBO_MODEL_PATH environment variable. To do so, add the following line to the end of ~/.bashrc:

export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:<path to this repo>/models

It is also possible to add model path in the Gazebo Client GUI.

Adding worlds directory to the GAZEBO_RESOURCE_PATH environment variable allows you to specify the world without absolute path. To do so, add the following line to ~/.bashrc:

export GAZEBO_RESOURCE_PATH=$GAZEBO_RESOURCE_PATH:<path to this repo>/worlds

Preview

Gazebo screenshots are provided in screenshots to preview the worlds.

Exporting sketchup to Gazebo

Exporting sketchup (*.skp) to Gazebo is not straightforward, it is often necessary to fix the collada file to make the model render correctly. This is an overview of the most common fixes that were used to create the models in this repository:

Textures appear dark

The default ambient color is too dark, this can be fixed by explicitly setting it to white. In the .dae file, replace </diffuse> by </diffuse><ambient><color>1 1 1 1</color></ambient>.

Emissive textures appear gray

The default ambient color is not black but dark gray. Set the emissive color to white using <emissive><color>1 1 1 1</color></emissive> and set the ambient color to black: <ambient><color>0 0 0 1</color></ambient>.

Transparency is ignored or causes depth sorting issues

Separately export the transparent object. Use an OGRE material script to set up the transparency:

material Cyberzoo/Poles
{
	technique
	{
		pass
		{
			alpha_rejection greater 128
			
			texture_unit
			{
				texture pole.png
			}
		}
	}
}

The material script needs to be included in the model's .sdf file:

<material>
  <script>
    <uri>model://cyberzoo/cyberzoo_poles</uri>
    <name>Cyberzoo/Poles</name>
  </script>
</material>

See the cyberzoo model as an example.

Incorrect smooth shading

Incorrect smoothing can sometimes be fixed by removing the <input semantic="NORMAL" source="..."/> lines from the .dae file.

Source

gazebo_models_worlds_collection's People

Contributors

leonhartyao avatar ifabottud avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.