Skip to content

Project #4: MicroROS Controlled Differential Drive Bot

Muhammad Luqman edited this page Sep 19, 2023 · 8 revisions

Issue Link #4

This projects runs on ESP32 using Platformio. We will drive our robot over WiFi usinf MicroROS interface

Requirments

Software

  • VScode
  • Platformfio extension
  • UBUNTU 22.04 LTS
  • ROS2 Humble

Hardware

Installations

  • Clone repository

    git clone -b running_projects https://github.com/Robotisim/mobile_robotics_ROS2.git
    
  • Open MicroROS_bot package in Vscode to intiate Platformio

  • MicroROS Agent into a ROS2 workspace and build

    git clone -b humble https://github.com/micro-ROS/micro_ros_setup
    colcon build
    
  • Build Agent

    source install/setup.bash
    ros2 run micro_ros_setup create_agent_ws.sh
    ros2 run micro_ros_setup build_agent.sh
    
  • Upload MicroROS based code into MicroController by pressing "->" on PlatformIO

    • Verify your WiFi Credentials and IP address
  • Start Agent Wifi

    • Start Agent
      ros2 run micro_ros_agent micro_ros_agent udp4 --port 8888
      

Learning Outcomes

  • MicroRos interface for ESP32
  • Robot Wireless Driving
  • Custom Libraries Integeration

Clone this wiki locally