Skip to content

ADVRHumanoids/iit-gazebo-worlds-pkg

Repository files navigation

iit-gazebo-worlds-pkg

Collection of Gazebo worlds useful for simulations. This repo has been though to provide a ready to use launch files to show models in the gazebo world useful for robotics simulations.

Usage

In order to use what the package provides, there are two ways. In particular, you can import and run a new gazebo world (with what you need) running the launch file which have the prefix view. As for example:

roslaunch iit_gazebo_worlds_pkg view_table_box.launch

In this case, you should see something like this

Schermata da 2022-05-13 10-27-24

Indeed, if you just want to add a model stored in this package in your already existing gazebo world, you have to use the launch files with the prefix spawn. In this way, the model you require, it will spawn and loaded into the gazebo world already opened. For example, you can run

roslaunch iit_gazebo_worlds_pkg spawn_table.launch

and the model of the table will be added in the gazebo world. Furthermore, it is possible to change the pose of the object through directly change the parameters inside the launch file. This, it is only possible with the launch files with the prefix spawn since they were meant to be used with the simulation and the launch files with the prefix view are more aimed just to see the model how it looks like.

Then, for example, if you open with an editor the file spawn_table.launch, you should see something like this

<launch>
  <!-- Show Gazebo GUI on launch -->
  <include file="$(find iit_gazebo_worlds_pkg)/launch/spawn_sdf.launch">
    <arg name="robot_name" value="table"/>
    <arg name="x" value="1.12"/>
    <arg name="y" value="0.0"/>
    <arg name="z" value="0.0"/>
    <arg name="roll" value="0"/>
    <arg name="pitch" value="0"/>
    <arg name="yaw" value="1.5708"/>
    <arg name="sdf_robot_file" value="$(find iit_gazebo_worlds_pkg)/models/table/model.sdf"/>
  </include>
</launch>

where changing the params x, y, z, roll, pitch and yaw you can change the pose of the object with respect to the gazebo world frame.

Objects

Objects inside 3DGems are taken from https://data.nvision2.eecs.yorku.ca/3DGEMS/, with sdf modified for easy spawning. Check the util launch 3DGems/object.launch A lot of them require some fixing/testing (like inertial, and fixed joints for models with more links) so feel free to fix them ;). One nice tool to find inertia of dae: https://github.com/vonunwerth/MeshLabInertiaToURDF

To Contribute

Of course, any contribution is super welcomed! The only thing I ask you it is to follow the structure of the repo. In this way, we can keep all the things consistently. In the case, the structure of the repo does not fit your requirement, please create an apposite branch :). Thank you :).

About

Collection of Gazebo worlds useful for simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •