File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ const std::vector<std::string> sensorTypeStrs =
65
65
" segmentation_camera" ,
66
66
" boundingbox_camera" ,
67
67
" custom" ,
68
- " wideanglecamera "
68
+ " wide_angle_camera "
69
69
};
70
70
71
71
class sdf ::Sensor::Implementation
@@ -304,7 +304,7 @@ Errors Sensor::Load(ElementPtr _sdf)
304
304
Errors err = this ->dataPtr ->camera ->Load (_sdf->GetElement (" camera" ));
305
305
errors.insert (errors.end (), err.begin (), err.end ());
306
306
}
307
- else if (type == " wideanglecamera" )
307
+ else if (type == " wideanglecamera" || type == " wide_angle_camera " )
308
308
{
309
309
this ->dataPtr ->type = SensorType::WIDE_ANGLE_CAMERA;
310
310
this ->dataPtr ->camera .emplace ();
Original file line number Diff line number Diff line change @@ -290,7 +290,7 @@ TEST(DOMSensor, Type)
290
290
" wireless_transmitter" ,
291
291
" thermal_camera" ,
292
292
" custom" ,
293
- " wideanglecamera "
293
+ " wide_angle_camera "
294
294
};
295
295
296
296
for (size_t i = 0 ; i < types.size (); ++i)
You can’t perform that action at this time.
0 commit comments