This ROS package allows control of a differential drive robot's PWM and direction via joystick inputs. It sends a direction and PWM array to a microcontroller via I2C.
This file contains a class that subscribes to ROS Joy node and maps the joystick data to direction and PWM for the motors.
This file publishes PWM and direction through a custom message type topic.
This file writes the array to the Arduino via I2C.
- Install ROS and Joy package.
- Clone this repository into the
src
directory of your ROS workspace. - Run
catkin_make
to build the package. - Connect the microcontroller via I2C.
- Launch the node by running
rosrun <package_name> main.py
. - Use the joystick to control the robot's movement.
This package was created by Devanshu Sharma for personal Project