Connect IR Sensor to ROS2

Contents

Why

  • Outdated documentation of how to do it - rosserial is ROS1, ros2arduino was updated 2 years ago
  • Beginner-friendly python interface vs more complex frameworks - micro-ros, arduino-cli, johnny-five requires nodejs install
  • No need to code in Arduino C - enabled by the Firmata protocol

Software

  • ROS2 Humble
  • pyFirmata
  • Arduino IDE

Hardware

Questions

  • Is this the right way to do it?
  • I’d like to implement Nav2 by using 3 IR Sensors. would it work using this method?

[EDIT] added questions