Skip to content

a simple flask webapp that allows to change an image when received a message on a topic

Notifications You must be signed in to change notification settings

hci-unimelb/flask_ros2_webapp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask ROS2 WebApp - README

This is a minimal template for a Flask application that subscribes to a ROS topic and changes the image rendered full screen on the client side.

Requirements

  • Python 3.x installed on your machine
  • Flask and other dependencies (check the requirements.txt file)

Installation

  1. Clone the repository:
git clone https://github.com/hci-unimelb/flask_ros2_webapp
  1. Navigate to the project directory:
cd flask_ros_webapp
pip install -r requirements.txt

Usage

To start the Flask App, execute the following command:

python3 app.py

The application will be accessible at http://localhost:5000 or using the PC IP address at http://IP:5000

To publish a new image called image1.jpg:

ros2 topic pub /image_name std_msgs/String 'data: image1.jpg' -1

Note that the image must be placed in the folder /static to be accessible.

Contributing

Contributions are welcome! If you find any bugs or have suggestions for improvement, please open an issue or submit a pull request to the repository.

License

This app is licensed under the MIT License.

About

a simple flask webapp that allows to change an image when received a message on a topic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 65.9%
  • HTML 34.1%