-
Notifications
You must be signed in to change notification settings - Fork 197
fog_params_tutorial
McCarrin, Michael (CIV) edited this page Jul 31, 2023
·
5 revisions
- Fog can be specified as an element of
<scene>
. See the sdformat spec for details.
The steps outlined in this tutorial are not currently producing the expected effect. Thank you for your patience while we troubleshoot this issue.
Open vrx/vrx_gz/worlds/sydney_regatta.sdf
and add fog to the scene:
<scene>
<sky></sky>
<grid>false</grid>
<ambient>1.0 1.0 1.0</ambient>
<background>0.8 0.8 0.8</background>
<fog>
<type>linear</type>
<color>1 1 1 1</color>
<start>1</start>
<end>100</end>
<density>1</density>
</fog>
</scene>
Recompile your workspace:
cd <VRX_WS>
colcon build --merge-install
Launch the simulation:
ros2 launch vrx_gz competition.launch.py world:=sydney_regatta
The scene should now have fog.
Back: Adjusting Wave Parameters | Top: VRX Tutorials | Next: Adjusting Ambient Light |
---|