hbrobotics / ros_arduino_bridge

ROS + Arduino = Robot
349 stars 342 forks source link

How to use encoder sensor in ros arduino bridge #32

Closed roboticsai closed 7 years ago

roboticsai commented 7 years ago

How can i read the encoder position by using the ros arduino bridge. I want to read the position of the servo motor by using the encoder by connecting encoder to the shaft of the servo motor. Does ros arduino bridge provides encoder as a sensor also. If no, how can i implement it? I am using ros arduino bridge instead of ros_serial because i also want to run other programs like image processing and kinematics in the main computer. arduino is only acting as the bridge which connects the main computer and the sensors / motors.