Gazebo | Ignition | Community
Ask Your Question
0

Has anyone run a camera sensor with L_INT16 format without an error?

asked 2022-09-26 13:26:36 -0500

bperseghetti gravatar image

I'm trying to create a 16bit mono image to match the output of a real world sensor. Ex:

  <sensor name="gray_image" type="camera">
    <pose>0 0 0 0 0 0</pose>
    <camera>
      <horizontal_fov>0.977384</horizontal_fov>
      <image>
        <width>224</width>
        <height>172</height>
        <format>L_INT16</format>
      </image>
      <clip>
        <near>0.1</near>
        <far>4.0</far>
      </clip>
    </camera>
    <always_on>1</always_on>
    <update_rate>30</update_rate>
    <visualize>true</visualize>
    <topic>/royale_camera/gray_image</topic>
  </sensor>

It correctly matches the enumeration type for L_INT16 (second entry) but seems to not to be able to "convert/support" it and defaults to RGB_INT8: image description

Not sure really where the issue might be coming from as it does appear to be a supported image type used in the thermal cam by default and recognizes the type: https://github.com/search?q=org%3Agaz...

So I'm perplexed why it might be throwing the error of:

[Err] [CameraSensor.cc:221] Unsupported pixel format [2]

and was curious if this is regression or just not complete implementation yet. I don't mind "fixing it" and creating a PR if someone has a better Idea where/why it might be failing.

Here are the open issues: https://github.com/gazebosim/gz-senso... https://github.com/gazebosim/gz-sim/i...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-28 13:46:44 -0500

azeey gravatar image
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-09-26 13:26:36 -0500

Seen: 99 times

Last updated: Sep 26 '22