-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MaterialColor test world and line fix.
Signed-off-by: Benjamin Perseghetti <[email protected]>
- Loading branch information
1 parent
f8f23f9
commit 0e23d42
Showing
3 changed files
with
100 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
<?xml version="1.0" ?> | ||
<sdf version="1.10"> | ||
<world name="material_color"> | ||
<physics name="1ms" type="ode"> | ||
<max_step_size>0.001</max_step_size> | ||
<real_time_factor>0</real_time_factor> | ||
</physics> | ||
<plugin | ||
filename="gz-sim-scene-broadcaster-system" | ||
name="gz::sim::systems::SceneBroadcaster"> | ||
</plugin> | ||
<plugin | ||
filename="gz-sim-user-commands-system" | ||
name="gz::sim::systems::UserCommands"> | ||
</plugin> | ||
<plugin | ||
filename="gz-sim-sensors-system" | ||
name="gz::sim::systems::Sensors"> | ||
<render_engine>ogre2</render_engine> | ||
</plugin> | ||
|
||
<model name="sphere"> | ||
<pose>0 0.0 0.0 0 0 0</pose> | ||
<link name="sphere_link"> | ||
<!-- Added a render sensor to trigger RenderUtil:Update --> | ||
<sensor name="camera" type="camera"> | ||
<pose>1 0 1.3 0 0 0</pose> | ||
<camera> | ||
<horizontal_fov>1.047</horizontal_fov> | ||
<image> | ||
<width>320</width> | ||
<height>240</height> | ||
</image> | ||
<clip> | ||
<near>0.1</near> | ||
<far>100</far> | ||
</clip> | ||
</camera> | ||
<always_on>1</always_on> | ||
<update_rate>30</update_rate> | ||
<visualize>false</visualize> | ||
<topic>camera</topic> | ||
</sensor> | ||
<visual name="sphere_visual"> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
<material> | ||
<ambient>0.3 0.3 0.3 1</ambient> | ||
<diffuse>0.3 0.3 0.3 1</diffuse> | ||
<specular>0.3 0.3 0.3 1</specular> | ||
</material> | ||
</visual> | ||
</link> | ||
</model> | ||
<model name="sphere_1"> | ||
<pose>0.5 1.0 0.0 0 0 0</pose> | ||
<link name="sphere_link"> | ||
<visual name="sphere_visual"> | ||
<geometry> | ||
<sphere> | ||
<radius>0.5</radius> | ||
</sphere> | ||
</geometry> | ||
<material> | ||
<ambient>0.3 0.3 0.3 1</ambient> | ||
<diffuse>0.3 0.3 0.3 1</diffuse> | ||
<specular>0.3 0.3 0.3 1</specular> | ||
</material> | ||
</visual> | ||
</link> | ||
</model> | ||
</world> | ||
</sdf> |