Code Monkey home page Code Monkey logo

rosbot-demo-wifi-heatmap's Introduction

rosbot-demo-wifi-heatmap

This project allows to measure and display RSSI (Received Signal Strength Indication) of a given Wi-Fi network in the desired area, using ROSbot 2 PRO and PC, connected over a peer-to-peer Husarnet VPN network. The entire software is based on rosbot-pro-demo

Setup

  1. Create Husarnet network according to this tutorial
  2. Clone contents of this repository to pc and ROSbot:
git clone https://github.com/husarion/rosbot-demo-wifi-heatmap.git
  1. Create '.env' file inside 'docker-compose' folder, paste your Husarnet joincode and generate DDS config files:
    ./generate-vpn-config.sh
    

This will create secrets file, which you need to copy to the same directory on another device.

  1. On ROSbot: Run bash script exposing /proc/net/wireless data to the container:
    chmod +x rosbot-demo-wifi-heatmap/net_expose.sh
    rosbot-demo-wifi-heatmap/net_expose.sh &
  2. On pc: Run script enabling RViz:
    xhost local:root

Launch

On pc:

cd rosbot-demo-wifi-heatmap/docker-compose
docker compose -f compose.pc.yaml -f compose.pc.husarnet.yaml up

On rosbot:

cd rosbot-demo-wifi-heatmap/docker-compose
docker compose -f compose.rosbot.yaml -f compose.rosbot.husarnet.yaml up

Usage

  1. Mapping: At first an appropriate map of the desired area needs to be created using RViz goal pose, which allows the user to pass waypoints to the robot. While reaching those waypoints ROSbot will map the area around it thanks to the SLAM toolbox. Several important things must be considered while mapping and choosing environment to map:
    • Points too close to obstacles or unknown areas will not be marked as waypoints
    • The fewer obstacles, the better because ROSbot will be able to measure RSSI in a more waypoints, resulting in more accurate heatmap at the end
    • Remember that some obstacles are invisible to ROSbot's lidar for example transparent surfaces or obstacles located under the lidar's view
  2. Measuring: After the desired area is mapped, execute the following command on your pc to start the process of autonomous measurement:
 docker exec docker-compose-mappers-1 /run.sh

After running this command a map will be displayed with waypoints marked. Green ones are actual waypoints marked for measurement, while the red ones were considered too close to obstacles or unknown areas. Remember that in the areas with fewer waypoints, data will also be less accurate (less data for interpolation). ROSbot will start going through all green waypoints, measuring RSSI for ten seconds in each one and sending data to a ROS2 node on pc.

  1. After all the waypoints have been achieved, two heatmaps will be generated based on the collected data. Raw images will be saved in '/heatmaps' repository. For full figures with heatbars use the SAVE button in matplotlib GUI and save images in '/heatmaps' directory, which at default is mounted on the folder with the same name in your home directory.

Results

Here are the results of RSSI measurement in our office: result1 result2

rosbot-demo-wifi-heatmap's People

Contributors

dominikn avatar janbrzyk avatar pawelirh avatar sdudiak avatar sdudiak-husarion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.