This project is a simplified remote control for an RC Automobile base on the ESP32 microcontroller, MicroROS framework and the Arduino development environment.
This project is the control for the automobile in the rc-automobile-ros project.
The following diagram shows the communication between the ROS 2 control node and the Micro-ROS automobile.
For the hardware setup, read the README.md file in the rc-automobile-ros project.
For the software setup, follow the steps below:
-
Clone the repository:
NOTE: clone this repository in the
src
folder of your ROS workspace.git clone https://www.github.com/SmallBotic/rc-automobile-controller
-
Edit the config.py file to match your setup. This settings should be the same as the one in the Config.hpp file in the rc-automobile-ros project.
-
Build and source the workspace:
colcon build source install/setup.zsh # or .bash if you are using bash
-
Run the project:
ros2 run rc_automobile_controller rc_automobile_controller