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

    voxl2 portal source code

    Ask your questions right here!
    2
    4
    390
    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.
    • R
      relevinsky
      last edited by

      Hi,
      Could you help me to understand in your voxl-portal source code, how I should modify code for adding in for e.g. in Camera : TFlite tab near "FPS" and "Inference" strings will appear my string "Hello world"?
      Please help me. I know, where is a source code of voxl-portal("https://gitlab.com/voxl-public/voxl-sdk/services/voxl-portal").
      Thank you for your help.

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

        Do you want to add a static string or something that is sent from VOXL?

        The html source for the camera page is here : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-portal/-/blob/master/web_root/video.html, you could add static context in the <body> tag.

        R 1 Reply Last reply Reply Quote 0
        • R
          relevinsky @Alex Kushleyev
          last edited by

          @Alex-Kushleyev Hi,
          Yes,
          I want send some new string from VOXL2, that should appear near "FPS:....".
          Thanks

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

            @relevinsky , i don't have a good example to point you to.. you would need to modify the code on the web GUI side and the code that is running on voxl-portal Voxl.

            VOXL sends all the information to the browser via web sockets. Here is where video stats (including fps) are sent : https://gitlab.com/voxl-public/voxl-sdk/services/voxl-portal/-/blob/master/src/video_group_manager.cpp?ref_type=heads#L313 and there is the browser code that parses the video stats https://gitlab.com/voxl-public/voxl-sdk/services/voxl-portal/-/blob/master/web_root/video.html#L588.

            I would suggest first experimenting with existing data structure, such as VideoStats and see if you change the data on the VOXL side, make sure it shows up correctly in voxl-portal. After that, you could change the VideoStats structure add a message to it and also print it in the browser.

            After understanding how the message passing works, you could add your own message definition on both sides and display the contents.

            I hope this helps.

            Alex

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB | Contributors