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

HOW TO - ROS2 #108

Open
AviKenz opened this issue Aug 2, 2020 · 3 comments
Open

HOW TO - ROS2 #108

AviKenz opened this issue Aug 2, 2020 · 3 comments

Comments

@AviKenz
Copy link

AviKenz commented Aug 2, 2020

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
Copy link

duwke commented Jun 21, 2021

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

@vkuehn
Copy link

vkuehn commented Jun 22, 2021

there is no web-video-server in foxy ?

@jgvictores
Copy link

there is no web-video-server in foxy ?

Above #108 (comment) is okay for dashing, but for foxy, currently from source, check: #105 (comment)

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

4 participants