Files
clover/docs/en/web_video_server.md
2020-05-07 19:43:25 +03:00

42 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Viewing images from cameras
To view images from cameras (or other ROS topics), you can use [rviz](rviz.md), rqt, or watch them in a browser using web_video_server.
See read more about [using rqt](rviz.md).
## Viewing in a browser
To view a video-stream, you have to [connect to Wi-Fi network](wifi.md) of the Clover (`clover-xxxx`), navigate to page [http://192.168.11.1:8080/](http://192.168.11.1:8080/), and choose the topic.
![Viewing web_video_server](../assets/web_video_server.png)
If the image is transmitted too slow, you can speed it up by changing GET parameter `quality` (from 1 to 100), which is responsible for video-stream compression, for example:
http://192.168.11.1:8080/stream_viewer?topic=/main_camera/image_raw&quality=1
At the URL above, a stream from the main camera will be available in the minimum possible quality.
Parameters `width`, `height`, etc. re also available. Read more about `web_video_server`: http://wiki.ros.org/web_video_server.
## Browse with rqt_image_view
To browse images with the rqt tools the user needs a computer with Ubuntu 18.04 and [ROS Melodic](http://wiki.ros.org/melodic/Installation/Ubuntu).
[Connect to the Clover Wi-Fi network](wifi.md) an run `rqt_image_view` with its IP-address:
```bash
ROS_MASTER_URI=http://192.168.11.1:11311 rqt_image_view
```
Choose a topic for browsing, for example `/main_camera/image_raw`:
![rqt_image_view](../assets/rqt_image_view.jpg)
To reduce network load and reduce latency, use a compressed version of the topic `/main_camera/image_raw/compressed`.
To change the compression settings use the rqt-plugin Dynamic Reconfigure:
![rqt_image_view+rqt_dynamic_reconfigure](../assets/rqt_image_view_dyn_rec.jpg)
Refer to [more about rviz and rqt](rviz.md).