Skip to content

Show what the camera sees #10

Description

@TheDinner22

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.

  1. make this toggle-able since it might take up too much of the screen, or be computationally expensive.
  2. Maybe make it so we can specify the topic name in a text box at runtime (there are other camera topics)
  3. make the video (probably a canvas element) resize-able
  4. 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

  1. checkout this branch
  2. run cb front_cam
  3. run ros2 run front_cam web_cam
  4. your webcam (assuming you have one) is now being published live as compressed and uncompressed image data to two different topics
  5. 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)

Metadata

Metadata

Labels

enhancementNew feature or request

Fields

No fields configured for Feature.

Projects

Status
In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions