Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve office world #75

Merged
merged 10 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion andino_gz/config_gui/default.config
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<scene>scene</scene>
<ambient_light>0.4 0.4 0.4</ambient_light>
<background_color>0.8 0.8 0.8</background_color>
<camera_pose>-2 0 1 0 0 0</camera_pose>
<camera_pose>-2 0 3 0 0.6 0</camera_pose>
<horizontal_fov>80</horizontal_fov>
<view_controller>orbit</view_controller>
</plugin>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
76 changes: 76 additions & 0 deletions andino_gz/models/office/meshes/tiles.dae

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions andino_gz/models/office/meshes/walls.dae

Large diffs are not rendered by default.

76 changes: 76 additions & 0 deletions andino_gz/models/office/meshes/wood.dae

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions andino_gz/models/office/model.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0"?>

<model>
<name>office</name>
<version>1.0</version>
<sdf version="1.6">model.sdf</sdf>

<author>
<name>lrodriguez22</name>
</author>

<description>
Office model
</description>

</model>
89 changes: 89 additions & 0 deletions andino_gz/models/office/model.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" ?>
<sdf version="1.6">
<model name='office'>
<static>1</static>
<link name='walls'>
<collision name='collision'>
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>meshes/walls.dae</uri>
</mesh>
</geometry>
<surface>
<friction>
<ode/>
</friction>
<bounce/>
<contact/>
</surface>
</collision>
<visual name='visual'>
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>meshes/walls.dae</uri>
</mesh>
</geometry>
<material>
<diffuse>1 1 1 1</diffuse>
<specular>0 0 0 0</specular>
<pbr>
<metal>
<albedo_map>materials/textures/walls/macro_flour_diff_4k.jpg</albedo_map>
<normal_map>materials/textures/walls/macro_flour_nor_gl_4k.exr</normal_map>
<roughness_map>materials/textures/walls/macro_flour_rough_4k.exr</roughness_map>
<metalness>0.</metalness>
</metal>
</pbr>
</material>
</visual>
</link>
<link name='wood_floor'>
<visual name='visual'>
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>meshes/wood.dae</uri>
</mesh>
</geometry>
<material>
<diffuse>1 1 1 1</diffuse>
<specular>1 1 1 1</specular>
<pbr>
<metal>
<albedo_map>materials/textures/wood/wood_floor_diff_4k.jpg</albedo_map>
<normal_map>materials/textures/wood/wood_floor_nor_gl_4k.exr</normal_map>
<roughness_map>materials/textures/wood/wood_floor_rough_4k.exr</roughness_map>
<metalness>0.</metalness>
</metal>
</pbr>
</material>
</visual>
</link>
<link name='tiles'>
<visual name='visual'>
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>meshes/tiles.dae</uri>
</mesh>
</geometry>
<material>
<diffuse>1 1 1 1</diffuse>
<specular>1 1 1 1</specular>
<pbr>
<metal>
<albedo_map>materials/textures/tiles/Tiles054_1K-JPG_Color.jpg</albedo_map>
<normal_map>materials/textures/tiles/Tiles054_1K-JPG_NormalDX.jpg</normal_map>
<roughness_map>materials/textures/tiles/Tiles054_1K-JPG_Roughness.jpg</roughness_map>
<metalness>0.</metalness>
</metal>
</pbr>
</material>
</visual>
</link>

<pose>0 0 0 0 0 0</pose>
</model>
</sdf>
62 changes: 6 additions & 56 deletions andino_gz/worlds/office.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<ambient>0.4 0.4 0.4 1</ambient>
<background>0.7 0.7 0.7 1</background>
<shadows>1</shadows>
<grid>0</grid>
</scene>
<light name='sun' type='directional'>
<cast_shadows>1</cast_shadows>
Expand Down Expand Up @@ -63,66 +64,15 @@
</surface>
<max_contacts>10</max_contacts>
</collision>
<visual name='visual'>
<cast_shadows>0</cast_shadows>
<geometry>
<plane>
<normal>0 0 1</normal>
<size>100 100</size>
</plane>
</geometry>
<material>
<ambient>0.0 0.0 1.0 1.0</ambient>
<diffuse>1.0 1.0 1.0 1.0</diffuse>
<specular>0.1 0.1 0.1 1.0</specular>
<emissive>0.0 0.0 0.0 1.0</emissive>
</material>
</visual>
<self_collide>0</self_collide>
<enable_wind>0</enable_wind>
<kinematic>0</kinematic>
</link>
</model>
<model name='hq'>
<link name='walls'>
<pose>1e-06 -5e-06 0 0 -0 0</pose>
<self_collide>0</self_collide>
<enable_wind>0</enable_wind>
<kinematic>0</kinematic>
<visual name='visual'>
<pose>0 0 0 0 -0 0</pose>
<geometry>
<mesh>
<uri>model://office.stl</uri>
<scale>1 1 1</scale>
</mesh>
</geometry>
<material>
<lighting>1</lighting>
<ambient>1.0 1.0 1.0 1.0</ambient>
<diffuse>1.0 1.0 1.0 1.0</diffuse>
<specular>0.1 0.1 0.1 1.0</specular>
<emissive>0.0 0.0 0.0 1.0</emissive>
<shader type='pixel'/>
</material>
<transparency>0</transparency>
<cast_shadows>1</cast_shadows>
</visual>
<collision name='collision'>
<laser_retro>0</laser_retro>
<max_contacts>10</max_contacts>
<pose>0 0 0 0 -0 0</pose>
<geometry>
<mesh>
<uri>model://office.stl</uri>
<scale>1 1 1</scale>
</mesh>
</geometry>
</collision>
</link>
<static>1</static>
<allow_auto_disable>1</allow_auto_disable>
<pose>-1.90399 -7.35802 0 0 -0 0</pose>
</model>
<include>
<uri>
model://office
</uri>
</include>
</world>
</sdf>
Loading
Loading