Giter Club home page Giter Club logo

esp32_ros2's Introduction

esp32-microros-husarnet

Build a firmware

ESP32 + Micro-ROS + Husarnet demo

Prerequisites

Install Visual Studio Code with PlatformIO extension.

Quick start

Clone the repo and open it in Visual Studio Code. Platformio should automatically install all project dependencies

Laptop (ROS 2 listener + Micro-ROS Agent)

  1. In a demo/ folder rename .env.template to .env and place Husarnet Join Code here (you will findyour Husarnet Join Code at https://app.husarnet.com).

  2. Launch micro-ROS agent (TCPv6 on port 8888), listener (from demo_nodes_cpp) and Husarnet container for VPN connectivity:

cd demo
docker-compose up

ESP32 (ROS 2 talker)

  1. Rename credentials-template.h to credentials.h and type your WiFi an Husarnet Join Code here (the same as in .env file before)

  2. Click "PlatformIO: upload" button to flash your ESP32 board connected to your laptop. You will find the following log in the serial monitor:

    **************************************
    micro-ROS + Husarnet example
    **************************************
    
    ๐Ÿ“ป 1. Connecting to: FreeWifi Wi-Fi network . done
    
    โŒ› 2. Waiting for Husarnet to be ready ........ done
    
    Known hosts:
    esp32-talker (fc94:4050:1fc5:dc02:d27f:97b9:7f13:e215)
    master (fc94:4050:1fc5:dc02:d27f:97b9:7f13:e215)
    microros-agent (fc94:ffd0:3cd7:d104:2917:ae5c:a719:9e71)

Tips

Erasing flash memory of ESP32

  1. Connect ESP32 to your laptop

  2. Install platformio CLI

    pip install -U platformio
  3. Make flash erase:

    pio run --target erase

Monitoring network traffic on hnet0 interface

sudo tcpflow -p -c -i hnet0

esp32_ros2's People

Contributors

shnx 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.