Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Topic A web video server #975

Open
kavikode opened this issue Jun 17, 2024 · 3 comments
Open

Image Topic A web video server #975

kavikode opened this issue Jun 17, 2024 · 3 comments

Comments

@kavikode
Copy link

Is it possible to stream a image topic on a webpage using rclnodejs? Any examples please to get the camera view from a robot displayed on the webpage?

@minggangw
Copy link
Member

You cannot run rclnodejs in a browser because nodejs is not supported, instead, you could:

  1. Leverage Electron which support nodejs to develop desktop apps.
  2. Leverage something like web video server, but I'm not sure if it can work for ROS2.
  3. Leverage roslibjs that can run in a browser to receive ROS2 topics.

@chfritz
Copy link
Contributor

chfritz commented Jun 17, 2024

Hi @kavikode, I strongly recommend learning about webrtc. I recently wrote a blog post on the various approaches people have used for streaming video to the web and why webrtc is the way to go: https://transitiverobotics.com/blog/streaming-video-from-robots.

PS: and yes, you can use rclnodejs on the robot to get the image stream. That's what we do in our solution.

@kavikode
Copy link
Author

thank you so much @minggangw and @chfritz! I will try the provided solutions. I appreciate your time to help me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants