show what the camera see's
Topic name: front_cam/image_compressed
Topic msg type
what we want
Live camera feed in the browser! Subscribe to the topic and display the video.
- make this toggle-able since it might take up too much of the screen, or be computationally expensive.
- Maybe make it so we can specify the topic name in a text box at runtime (there are other camera topics)
- make the video (probably a
canvas element) resize-able
- the ability to record video from here an download straight from the browser to our computer and/or the Jetson would be legendary
the hard part
the hard part will be converting the ros2 image message to something the browser can actually support/display (I asked gpt and this "from roslibjs i listen to an image topic in the browser, how can i turn this into a video stream" and it knows how to do it :).
making ur life ez (im the best)
I made a branch in mil2 (the sub's repo, not the gui repo) called joe-compressed-webcam
- checkout this branch
- run
cb front_cam
- run
ros2 run front_cam web_cam
- your webcam (assuming you have one) is now being published live as compressed and uncompressed image data to two different topics
- now you can test ur code with real image data
you can use
ros2 topic list to find the topic names
ros2 topic info <some_topic_name> to find the msg types
ros2 run rqt_image_view rqt_image_view to view these image topics live (compare your gui implementation to the ros's)
show what the camera see's
Topic name:
front_cam/image_compressedTopic msg type
what we want
Live camera feed in the browser! Subscribe to the topic and display the video.
canvaselement) resize-ablethe hard part
the hard part will be converting the ros2 image message to something the browser can actually support/display (I asked gpt and this "from roslibjs i listen to an image topic in the browser, how can i turn this into a video stream" and it knows how to do it :).
making ur life ez (im the best)
I made a branch in mil2 (the sub's repo, not the gui repo) called
joe-compressed-webcamcb front_camros2 run front_cam web_camyou can use
ros2 topic listto find the topic namesros2 topic info <some_topic_name>to find the msg typesros2 run rqt_image_view rqt_image_viewto view these image topics live (compare your gui implementation to the ros's)