ModalAI Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Hires camera rotation

    Seeker
    2
    2
    303
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JustinDev23
      last edited by

      Having issues with Hires camera. Is there a way to rotate the camera similar to the rotate_tracking and rotate_stereo? I also assumed the default seeker_voxlcam would have hires as well but it only has TOF/Stereo/Tracking (ID #7).

      d7decb62-fb2a-4a68-b3d4-15a4de13f645-image.png
      d9424089-aa7c-453e-ad6b-cfb4dcb6ba33-image.png

      1 Reply Last reply Reply Quote 0
      • Alex KushleyevA
        Alex Kushleyev ModalAI Team
        last edited by

        Hello @JustinDev23 ,

        Rotating Hires camera is not an option in the configuration menu, however you can still do this pretty easily.

        When you run voxl-configure-cameras, based on your use case, the script writes an appropriate configuration file to /system/etc/camera/camera_config.xml. In that file, you will see entries for all the cameras expected for the particular use case.

        Since you have already enabled the hires camera (IMX214), you already have an entry for it in camera_config.xml, so if you find it, you should see something like this <SensorName>imx214_rot180</SensorName> . What this does it tells the camera framework to load a dynamic library /usr/lib/libmmcamera_imx214_rot180.so - our default is the rotated version. To remove the rotation, you simply change the entry to <SensorName>imx214</SensorName>, which will in turn use /usr/lib/libmmcamera_imx214.so library after you reboot and the image should be right side up.

        Please remember that running voxl-configure-cameras again will overwrite the camera_config.xml that you may edit.

        Hope this helps!

        Alex

        1 Reply Last reply Reply Quote 0
        • H hmlow referenced this topic on
        • H hmlow referenced this topic on
        • First post
          Last post
        Powered by NodeBB | Contributors