{"id":21274030,"url":"https://github.com/flexrobotics/roboflex_visualization","last_synced_at":"2025-07-11T06:33:36.978Z","repository":{"id":202841831,"uuid":"707418819","full_name":"flexrobotics/roboflex_visualization","owner":"flexrobotics","description":"Roboflex support for visualizing rgb and depth streams using SDL2.","archived":false,"fork":false,"pushed_at":"2024-01-16T16:23:17.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-06T14:46:00.124Z","etag":null,"topics":["roboflex","sdl2"],"latest_commit_sha":null,"homepage":"https://github.com/flexrobotics/roboflex_visualization","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexrobotics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-19T21:24:53.000Z","updated_at":"2023-11-01T00:47:02.000Z","dependencies_parsed_at":"2023-11-20T00:21:53.660Z","dependency_job_id":"96dede9c-bf11-4c67-8a38-12745dd2e688","html_url":"https://github.com/flexrobotics/roboflex_visualization","commit_stats":null,"previous_names":["flexrobotics/roboflex_visualization"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_visualization","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_visualization/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_visualization/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexrobotics%2Froboflex_visualization/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexrobotics","download_url":"https://codeload.github.com/flexrobotics/roboflex_visualization/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225701187,"owners_count":17510502,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["roboflex","sdl2"],"created_at":"2024-11-21T09:18:40.164Z","updated_at":"2024-11-21T09:18:41.193Z","avatar_url":"https://github.com/flexrobotics.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roboflex.visualization\n\nA thin wrapper of various display nodes over SDL2. For now just supplies\none node: RGBImageTV. It can display rgb tensors of the form (H,W,3) uint8.\n\n## System requirements\n\n* libsdl: SDL (Simple Directmedia Layer)\n\n        # search for existing libsdl packages\n        dpkg -l | grep sdl # -\u003e shows nothing\n\n        # install libsdl\n        sudo apt-get install libsdl2-dev\n\n        # search for existing libsdl packages again\n        dpkg -l | grep sdl # -\u003e shows:\n        ii  libsdl2-2.0-0:amd64                        2.0.20+dfsg-2ubuntu1.22.04.1                                        amd64        Simple DirectMedia Layer\n        ii  libsdl2-dev:amd64                          2.0.20+dfsg-2ubuntu1.22.04.1                                        amd64        Simple DirectMedia Layer development files\n\n        THIS, for me on ubuntu22, puts headers in /usr/include/SDL2 and libs in /lib/x86_64-linux-gnu/libSDL2-2.0.so\n\n        # to remove it:\n        sudo apt-get -y purge libsdl2-dev\n\n## Import\n\n    import roboflex.visualization as rv\n\n## Nodes \n\nThere are three: **RGBImageTV**, **BlackAndWhiteTV**, and **DepthTV**\n\n\n    # RGBImageTV will redraw rgb images at some\n    # frequency (refresh rate). It will look into\n    # all messages it receives - those that contain\n    # the key \"rgb\", mapping to a (3,H,W) tensor\n    # will be rendered. Messages get propagated.\n\n    rgb_tv = rcw.RGBImageTV(\n\n        # mandatory (refresh rate)\n        frequency_hz: float,\n\n        # optional; defaults are:\n        width = 640,\n        height = 480,\n        image_key = \"rgb\",\n        initial_pos = (-1, -1),\n        mirror = False,\n        debug = False,\n        name = \"RGBImageTV\"\n    )\n\n    # must be started!\n    rgb_tv.start()\n\n\n    # BlackAndWhiteTV will redraw rgb images at some\n    # frequency (refresh rate). It will look into\n    # all messages it receives - those that contain\n    # the key \"ir1\", mapping to a (H,W) tensor\n    # will be rendered. Messages get propagated.\n\n    black_and_white_tv = rcw.BlackAndWhiteTV(\n\n        # mandatory (refresh rate)\n        frequency_hz: float,\n\n        # optional; defaults are:\n        width = 640,\n        height = 480,\n        image_key = \"ir1\",\n        initial_pos = (-1, -1),\n        mirror = False,\n        debug = False,\n        name = \"BlackAndWhiteTV\"\n    )\n\n    # must be started!\n    black_and_white_tv.start()\n\n\n    # DepthTV will redraw depth images at some\n    # frequency (refresh rate). It will look into\n    # all messages it receives - those that contain\n    # the key \"depth\", mapping to a (H,W) tensor\n    # will be rendered. Messages get propagated.\n\n    depth_tv = rcw.DepthTV(\n\n        # mandatory (refresh rate)\n        frequency_hz: float,\n\n        # optional; defaults are:\n        width = 640,\n        height = 480,\n        image_key = \"depth\",\n        initial_pos = (-1, -1),\n        mirror = False,\n        debug = False,\n        name = \"RGBImageTV\"\n    )\n\n    # must be started!\n    depth_tv.start()\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_visualization","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexrobotics%2Froboflex_visualization","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexrobotics%2Froboflex_visualization/lists"}