ros package for simple motor control for DC motor and Servo motor
pip install pyserial
See pyserial website
cd <Your Work Space/src>
git clone https://github.com/msc9533/serial_control.git
cd .. && catkin_make
Open arduino-uno.ino
by Arduino IDE, and Upload to Arduino
serial_control.py
node subscribe cmd_vel
topic, and transfer data to Uno by serial.
rosrun serial_control serial_control.py
rosrun serial_control teleop.py
W
A S D
X
Control your DC motor and servo motor by keyboard
W : vel + 10
A, D : pos - 5, +5
S : Stop
X : vel - 10