mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
42 lines
1.7 KiB
Markdown
42 lines
1.7 KiB
Markdown
# 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.
|
||
|
||

|
||
|
||
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`:
|
||
|
||

|
||
|
||
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:
|
||
|
||

|
||
|
||
Refer to [more about rviz and rqt](rviz.md).
|