Giter VIP home page Giter VIP logo

esp32_micro_ros's Introduction

ESP32_MICRO_ROS

Description

Repository to learn to use plataformio_microros with the ESP32 DEV KIT miccrocontorller.

Dependencies

Software

PlatfotmIO

Hardware

Install

sudo apt-get install python3-venv

install the repository as a platformIO project:

Note: if the micro_ros_platformio doesn't install, comment any ROS pkg source in your .bashrc, like this:

# Setup ROS2
#source /opt/ros/humble/setup.bash
#source /opt/vulcanexus/humble/setup.bash

Delet the /.pio/libdeps/esp32doit-devkit-v1/micro_ros_platformio folder and restart the computer.

Open the proyect with VSC again, the microros_ros_platformio should install correctly.

Tutorials

One you are ready with the turorials checks the examples:

Demo

Go to your platformio.ini file to set the build_src_filter:

build_src_filter = +<examples/pub_sub_timer/*> -<.git/> -<.svn/>

Now compile and upload the firmware.uf2 file to raspberry PI pico, use the one that is inside the .pio/build/pico/ folder.

Find your serial [device name]:

ls /dev/serial/by-id/*

Add access to USB port

sudo chmod a+wr [device name]

Start micro_ros_agent:

ros2 run micro_ros_agent micro_ros_agent serial --dev [device name]

visualice msgs with ros Qt tools

rqt 

Turn down the LED low

ros2 topic pub /micro_ros_subscriber std_msgs/msg/Int16 data:\ 0\

Turn down the LED high

ros2 topic pub /micro_ros_subscriber std_msgs/msg/Int16 data:\ 1\

esp32_micro_ros's People

Contributors

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