How to connect ROS with my Parallax microcontroller?

asked 2019-02-19 03:48:23 -0500

geistmate gravatar image

Hi,

I have almost no experience writing sorts of serial communication protocols. So far, I have been using rosserial but I keep running into an issue where it states [ERROR] [1550568650.647942]: Lost sync with device, restarting... , and I have searched up this issue but there is no one definite way. I am trying to publish encoder counts but I'm guessing it's just updating way too quickly to ROS, since the arduino mega only has 8KB of dynamic memory. (I will open another question for this, because I still think rosserial is very convenient for me.)

I want to connect my Parallax ActivityBoard WX Microcontroller from my Arlo Robot to publish messages. I looked at this question, https://answers.ros.org/question/1011... , and it suggests that I write simply push out messages to a serial port, and use an individual ros node in order to convert those messages.

I am simply just trying to use the microcontroller for the odometry of my wheeled robot. What I was originally doing over rosserial was sending out encoder tick values and then subscribing to cmd_vel messages. Is bridging this connection between microprocessor and ROS feasible for someone with limited serial protocol experience, and if so how should I do it?

edit retag flag offensive close merge delete

Comments

Well, i have a simple comment for you. I have an Arlo robot and after some research, i choose to replace for Arduino board (Leonardo), but you can use a Arduino Mega also (its better). I suggest for you. Then, you can use rosserial to establish a communication between them.

cesarhcq gravatar imagecesarhcq ( 2019-06-26 20:19:32 -0500 )edit