web_video_server
web_video_server copied to clipboard
HOW TO - ROS2
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
- open your terminal (i told you this tuto was for newbie lol)
- run:
sudo apt-get install ros-dashing-web-video-server
to update your package tool - run:
sudo apt-get install ros-dashing-web-video-server
to install the library (you must type 'Y' at some point) - 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
- open your terminal ( again haha)
- run:
ros2 run web_video_server web_video_server
to start the server - open another terminal and...
- 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') - 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.
I'm guessing step 2 was actually supposed to be sudo apt update
there is no web-video-server in foxy ?
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