https://github.com/advrhumanoids/iit-gazebo-worlds-pkg
Collection of Gazebo worlds useful for simulations
https://github.com/advrhumanoids/iit-gazebo-worlds-pkg
Last synced: 5 months ago
JSON representation
Collection of Gazebo worlds useful for simulations
- Host: GitHub
- URL: https://github.com/advrhumanoids/iit-gazebo-worlds-pkg
- Owner: ADVRHumanoids
- Created: 2022-04-20T06:32:45.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-09T11:19:38.000Z (6 months ago)
- Last Synced: 2024-12-09T12:25:17.177Z (6 months ago)
- Language: Python
- Size: 27.5 MB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:```bash
roslaunch iit_gazebo_worlds_pkg view_table_box.launch
```In this case, you should see something like this

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
```bash
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
```html
```
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 :).