neurali:gazebo_realizzare_un_world
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
neurali:gazebo_realizzare_un_world [2015/04/01 14:51] – profpro | neurali:gazebo_realizzare_un_world [2020/06/08 22:20] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Realizzare un world ====== | ||
+ | ===== Termini ===== | ||
+ | |||
+ | |||
+ | * world: insieme di robot, oggetti, parametri ambientali e proprietà fisiche | ||
+ | * static/ | ||
+ | * < | ||
+ | |||
+ | ===== Oggetti ===== | ||
+ | creare cartella e avviare gazebo (non è indispensabili usare due comandi separati) | ||
+ | mkdir ~/ | ||
+ | gzserver | ||
+ | gzclient | ||
+ | |||
+ | per aggiungere oggetti, si può usare il menu //insert// (model database) | ||
+ | - tab // | ||
+ | {{: | ||
+ | |||
+ | Ci sono anche strumenti per la traslazione/ | ||
+ | |||
+ | Al termine | ||
+ | - File-> | ||
+ | - File-> | ||
+ | |||
+ | |||
+ | ===== Proprietà scena ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | - tab //world// -> scene | ||
+ | * phisics (enable physics) | ||
+ | * models | ||
+ | * lights | ||
+ | |||
+ | ==== Phisics ==== | ||
+ | |||
+ | * enable physics | ||
+ | * real time update rate (hertz) | ||
+ | * max step size (sec) | ||
+ | * il prodotto permette di eseguire eventi temporalmente accelerati | ||
+ | * gravity | ||
+ | * solver (iteration, Successive Over-Relaxation) | ||
+ | * constraints (Constraint Force Mixing, Error Reduction Parameter) | ||
+ | * http:// | ||
+ | |||
+ | ===== Terreno simulato | ||
+ | requisiti | ||
+ | sudo apt-get install gdal-bin libgdal-dev libgdal1h python-gdal | ||
+ | |||
+ | DEM (Digital Elevation Model) è un termine generico utilizzato per indicare il terreno, ma non corrisponde ad un formato di dati. Gazebo supporta solo formato raster data (griglia di quote) GDAL. | ||
+ | * come ottenere //path// e //row// | ||
+ | * http:// | ||
+ | * come ottenere dem partendo da path e row | ||
+ | * http:// | ||
+ | |||
+ | Il formato [[https:// | ||
+ | |||
+ | Problema: si può simulare una palla che rotola? | ||
+ | |||
+ | esempio che riduce la risoluzione | ||
+ | gdalwarp -ts 129 129 file-in.dem file-out.dem | ||
+ | | ||
+ | <code xml> | ||
+ | <?xml version=" | ||
+ | <sdf version=" | ||
+ | <world name=" | ||
+ | <!-- A global light source --> | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | <model name=" | ||
+ | < | ||
+ | <link name=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | | ||
+ | <visual name=" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | </ |
neurali/gazebo_realizzare_un_world.txt · Last modified: 2020/06/08 22:20 by 127.0.0.1