Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark...

14
Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018

Transcript of Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark...

Page 1: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Gazebo renders the moon

Ian Chen & Mark Allan

September 29th, 2018

Page 2: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

RP Driving ConOps Simulator

Resource Prospector

Goal: send a rover to the moon to mine volatiles such as hydrogen, oxygen and water

Simulation

End-to-end lunar rover driving simulation to assist in the development of the RP Driving Concept of Operations

● ROS used to emulate flight software and ground software functionality

● Simulated rover is 4 wheel steer platform scaled to RP rover dimensions with RP chassis and mast

Page 4: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Visual Simulation

Lunar scene from Gazebo Lunar scene from Apollo 12 mission

Page 5: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Large Scale, High Fidelity Terrain Simulation

Synthetic Terrain Generation● High resolution (~4cm) to simulate obstacles:

positive (rocks), negative (craters)

Large DEMs rendered too slow in Gazebo● 8K resolution, 213MB● load time ~5min

Improvements● Enabled caching of terrain data● Added Level-Of-Details ● Background tiles - coarse meshes

○ 6 layers

Mesh

Digital Elevation Map(DEM)

Page 6: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Lunar Appearance

Default shading model - inadequate to model the unique reflective properties of lunar surface

Added support for applying custom shaders to heightmaps

Page 7: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Terrain Material Shader Components

DEM Normal Map

Pre-Rendered Shadows

DEM Rock Mask

DEM Albedo (diffuse) map

Regolith Detail Normal Rock normal

Real time shadows set up by Gazebo

Hapke Lunar regolith reflectance model

Page 8: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Shader ParametersWheel Tracks Plugin Camera Exposure

Page 9: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Lens Flares

Sun is few degrees above horizon at lunar pole

Camera often points at sun or sees long dark shadows

Implementation● Post processing effect● Works with wide angle

cameras● Sparse ray based occlusion

checking

Page 10: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Real Time Shadows

Problem: Poor quality overallesp. when camera view angle is coincident with light direction

Improvements● Override shadow map

generation step● Increased shadow texture

resolution● Hardware Percentage Closer

Filtering + Poisson disk blur filter● Lowered “built-in ambient” light

Before

After

Page 12: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

WARP

Page 13: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Team

Open Robotics

Brian GerkeyIan Chen

Steven PetersMorgan Quigley

NASA Ames Intelligent Robotics GroupSGT/KBRwyle

Mark AllanUland WongTerry Welsh

Michael FurlongScott McMichael

Arno Rogg

Page 14: Gazebo renders the moon - ROSCon 2020 · 2018-10-12 · Gazebo renders the moon Ian Chen & Mark Allan September 29th, 2018. RP ... oxygen and water Simulation End-to-end lunar rover

Questions?