Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcos-moura97/video_stream_ros2
Flask based webinterface for ROS2 Video Stream
https://github.com/marcos-moura97/video_stream_ros2
flask python ros2
Last synced: about 1 month ago
JSON representation
Flask based webinterface for ROS2 Video Stream
- Host: GitHub
- URL: https://github.com/marcos-moura97/video_stream_ros2
- Owner: marcos-moura97
- Created: 2020-11-14T23:42:00.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-14T23:59:10.000Z (about 4 years ago)
- Last Synced: 2024-11-08T17:11:52.697Z (3 months ago)
- Topics: flask, python, ros2
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-ROS2 video stream
Flask based webinterface for ROS2 Video Stream## Prerequisite
There are some libraries and frameworks required for the program work properly.**Frameworks**
- ROS2 Eloquent
- Flask
- Gunicorn
- OpenCV
**Python3 Libraries**
- Cvbridge
- Threading
- Signals## Building
To build the project, we must follow this steps:
**Terminal 1:**
```sh
$ cd ~/your_workspace/
$ colcon build
$ . install/setup.bash
```After that, the two packages of the workspace are builded and the cam2imge node is initialized.
For run the subscriber node and host the website, we must follow this steps in another terminal.
**Terminal 2:**
```sh
$ cd src/video_stream_ros2/video_stream_ros2/
$ gunicorn --threads 5 --workers 1 --bind your_ip:8080 app:app
```The last command uses the [Gunicorn](https://gunicorn.org/), a framework that act like a Python WSGI HTTP Server for UNIX. Replace **your_ip** by yours machine ip.