rrb.Spatial2DView(
origin="/depth",
name="grayscale",
overrides={
"/depth": [
rrb.VisualizerOverrides([rrb.visualizers.DepthImage]),
rr.components.Color([0, 255, 0]), ## this is legal -- auto upcasted to ColorBatch
rr.components.Colormap(rr.components.Colormap.Grayscale), ## this is illegal
rr.components.ColormapBatch(rr.components.Colormap.Grayscale), ## have to do this instead
]
},
),