You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WideAngleCameraSensor is currently supporting only RGB8 format. The same sensor in Gazebo Classic supported RGB8 and gray (L8) images. I am porting some robot simulation code for Astrobee from Gazebo classic to Gazebo, where one of the robot's sensors is defined as a wideanglecamera of type mono8, which seems not to be supported (line 330 of WideAngleCameraSensor.cc indicates that the L8 type is an unsupported format)
Alternatives considered
The easiest option would be for me to create a custom sensor that is a copy-and-paste of wideanglecamerasensor and just allow both RGB8 and L8 as valid pixel formats. Before doing this however, I wanted to check if there was the possibility of adding support for gray images, as it might be useful for other users with similar setups and it seems as if it might be relatively easy to do (just add a case in the switch (line 324-333 of WideAngleCameraSensor.cc) to allow L8 to be accepted:
Test setup: Ubuntu 24.04, gz-sensors 8.8.2. ROS2 Jazzy (the issue is exclusively regarding the sensor, nothing to do with ROS, but adding that piece of info for completeness).
Thanks!
The text was updated successfully, but these errors were encountered:
Desired behavior
WideAngleCameraSensor is currently supporting only RGB8 format. The same sensor in Gazebo Classic supported RGB8 and gray (L8) images. I am porting some robot simulation code for Astrobee from Gazebo classic to Gazebo, where one of the robot's sensors is defined as a wideanglecamera of type mono8, which seems not to be supported (line 330 of WideAngleCameraSensor.cc indicates that the L8 type is an unsupported format)
Alternatives considered
The easiest option would be for me to create a custom sensor that is a copy-and-paste of wideanglecamerasensor and just allow both RGB8 and L8 as valid pixel formats. Before doing this however, I wanted to check if there was the possibility of adding support for gray images, as it might be useful for other users with similar setups and it seems as if it might be relatively easy to do (just add a case in the switch (line 324-333 of WideAngleCameraSensor.cc) to allow L8 to be accepted:
Additional context
Test setup: Ubuntu 24.04, gz-sensors 8.8.2. ROS2 Jazzy (the issue is exclusively regarding the sensor, nothing to do with ROS, but adding that piece of info for completeness).
Thanks!
The text was updated successfully, but these errors were encountered: