hbrobotics / ros_arduino_bridge

ROS + Arduino = Robot
355 stars 351 forks source link

How and where to call get_encoder_counts in arduino_driver.py? #53

Closed kesava-mani closed 6 years ago

kesava-mani commented 6 years ago

I am using custom encoder by directly connecting it to interrupt pins in Arduino UNO. I have enabled #define ARDUINO_ENC_COUNTER I am able to get encoder's value by sending 'e' on Arduino's serial monitor. How to publish this message to ROS?

As addressed in Issue #34, which states to call function get_encoder_counts in file "arduino_driver.py" in which it sends command to serial and returns data fetching from serial. How to proceed with calling the function?