Skip to content

Using ROSbot for automatically creation of a Wi-Fi signal strength (RSSI) heatmap of the given area.

License

Notifications You must be signed in to change notification settings

linorobot/rosbot-demo-wifi-heatmap

 
 

Repository files navigation

rosbot-demo-wifi-heatmap

Using ROSbot for automatically creation of a Wi-Fi signal strength (RSSI) heatmap of the given area. 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 and 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 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 dseired area needs to be created using rviz goal pose, which allows user to pass waypoints to robot. While reaching those waypoints ROSbot will map area around it thanks to SLAM toolbox. Several imortant 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 less obstacles, the better because ROSbot will be able to measure RSSI in more waypoints, resulting in more accurate heatmap at the end
    • Remember that some obstacles are invisible to ROSbot's lidar for exemple transparent surfaces, or obstacles located under lidar's view
  2. Measuring: After desired area is mapped execute following command on your pc will 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 less waypoints, data will also be less acurate (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 waypoints have been achieved, two heatmaps will be generated based on collected data. Raw images will be saved in '/heatmaps' repistory. For full figures with heatbars use SAVE button in matplotlib GUI and save images in '/heatmaps' directory, which at default is mounted on folder with the same name in your home directory.

Results

Here are results of rssi measurement in our office: result1 result2

About

Using ROSbot for automatically creation of a Wi-Fi signal strength (RSSI) heatmap of the given area.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 63.4%
  • C++ 15.4%
  • CMake 12.4%
  • Dockerfile 5.3%
  • Shell 3.5%