Arduino Rosserial no/slow communication
Hi everyone.. forgive me if this has been asked/answered and also I am pretty new with ROS.. Anyway my robot is using Arduino mega 1280 to drive the motors, read encoders, calculate speed/velocity etc.. I was able to create a teleop application and subscribe to that with the arduino and read joy commands successfully to drive the robot..
Since my end goal is to implement the navigation stack I began to program that next.. I started with the tf tutorial and was able to get that running and delivering data to ROS, although I started to have problems with losing sync but it seemed if I timed starting the arduino and ros package it would work..Next I setup the odom stuff from the navigation tutorial.. Now whenever I run the package all I seem to get is lost sync messages.. I am calling ros::spinOnce() with a delay of 10millis and my rosserial is setup with a bandwidth of 115200..
I try running rostopic echo tf and I will see the tx light on the arduino blink once and I will see half of the echo on screen then in about(5 secs) it will blink again and then the rest of the message will show up, then if I wait again and I will see the information change but it seems like something is making it hang up.. I can post the code if that will help.. ?? Thanks in advance for any help..