Getting encoder data to ros for localization odometry [closed]

asked 2020-11-09 10:39:26 -0500

Robot_fox gravatar image

I am using an Arduino mega with 2 dc motor and Arduino motor shield rev 3 with built in hall effect sensor to gather data on how much distance is traveled from starting point and set up odometry for ROS so i can start scanning and mapping with my Slamtech lidar A1M8. What i want to know is how to transfer the distance traveled data from the Arduino to ros. I know i have to use rosserial but i have heard the amount of processing is too much for an Arduino. Just want to make sure this is true Any advice on how to proceed with this or has anyone have a similar project

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Robot_fox
close date 2020-11-22 21:13:35.984988

Comments

1

I've never used ROS Serial but I send encoder data over serial port from micro-controller so I'm certain it's not required that you use ROS serial. In my case I use a home-brew node for parsing data on the PC coming in on serial port, of which some of the data is encoder data. But my understanding is that ROS Serial is intended for use with microcontrollers so while I have no experience with it, I suspect it would work with the MEGA. Maybe the Arduino caution you heard was related to the UNO, which I think is less capable than the MEGA. But haven't used it either.

billy gravatar image billy  ( 2020-11-09 15:35:13 -0500 )edit