Commit d80d6d2
Remove support for custom unobserved values
### What change is being made
Removes the deprecated `unobserved_value` field from spherical range image metadata.
### Why this change is being made
All image APIs now use `NaN` to represent unobserved pixels. For details, see the [Camera and LiDAR Conventions](https://app.notion.com/p/theaiinstitute/Camera-and-LiDAR-conventions-32ced28d384980f6a9e8f32030ba275d) in Notion.
The metadata field is therefore no longer needed. Removing it avoids ambiguity and also avoids having to represent and parse `NaN` floating-point values in JSON, which is not natively supported by the [nlohmann/json](https://github.com/nlohmann/json) library.
### Tested
Tested in MuJoCo with:
* A modern navigation policy using `NaN` for unobserved pixels
* Legacy policies using `-1` for unobserved pixels
Legacy policy compatibility is temporarily provided by control [PR #4332](https://github.com/rai-inst/control/pull/4332) to support the transition.
GitOrigin-RevId: e4ab29ddfb800de6c929b9767bc328c73d15ba171 parent f5241e0 commit d80d6d2
4 files changed
Lines changed: 6 additions & 12 deletions
File tree
- control
- include/exploy
- src
- test/testdata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
166 | 165 | | |
167 | 166 | | |
168 | 167 | | |
169 | 168 | | |
170 | | - | |
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
| |||
182 | 180 | | |
183 | 181 | | |
184 | 182 | | |
185 | | - | |
186 | 183 | | |
187 | 184 | | |
188 | 185 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
172 | 172 | | |
173 | 173 | | |
174 | 174 | | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
427 | | - | |
428 | 427 | | |
429 | 428 | | |
430 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | 185 | | |
187 | 186 | | |
188 | 187 | | |
| |||
0 commit comments