RobotWebTools / web_video_server

HTTP Streaming of ROS Image Topics in Multiple Formats
http://ros.org/wiki/web_video_server
Other
269 stars 187 forks source link

HOW TO - ROS2 #108

Open AviKenz opened 4 years ago

AviKenz commented 4 years ago

I know this can sound useless. but i am sure its not when you are newbie in ROS2. i struggle 2 days on this. and i would like to help others. sorry for my english im not a native speaker lol.

so lets go :)

HOW TO INSTALL

  1. open your terminal (i told you this tuto was for newbie lol)
  2. run: sudo apt-get install ros-dashing-web-video-server to update your package tool
  3. run: sudo apt-get install ros-dashing-web-video-server to install the library (you must type 'Y' at some point)
  4. run: 'ros2 pkg list | grep web_video_server' to check if it was installed. 'web_video_server' should be outputed.

tips: step 1: very important. :) step 3: if you cant see 'web_video_server', source ros workspace by running in terminal(for ros2-dashing): source /opt/ros/dashing/setup.bash

HOW TO TEST

  1. open your terminal ( again haha)
  2. run: ros2 run web_video_server web_video_server to start the server
  3. open another terminal and...
  4. start the node which output the camera stream for e.g.: ros2 run image_tools cam2image (image_tools is builtin in ros2-dashing. he output the webcam stream on topic 'image')
  5. open a web browser and navigate to url: http://0.0.0.0:8080/stream?topic=/image where '/image' is the image topic.

you can find more informations here: https://msadowski.github.io/ros-web-tutorial-pt3-web_video_server/

so thats all. no need of 'colcon build' or something like that when you just want to use the library.

duwke commented 3 years ago

I'm guessing step 2 was actually supposed to be sudo apt update

vkuehn commented 3 years ago

there is no web-video-server in foxy ?

jgvictores commented 1 year ago

there is no web-video-server in foxy ?

Above https://github.com/RobotWebTools/web_video_server/issues/108#issue-671608565 is okay for dashing, but for foxy, currently from source, check: https://github.com/RobotWebTools/web_video_server/issues/105#issuecomment-1400439009