Ros indigo serial to Arduino UNO but unable to sync

asked 2015-06-01 14:36:02 -0600

crazymumu gravatar image

I connect UNO to ROS indigo , ROS publish message to UNO. have problems like this:

[ERROR] [WallTime: 1433186203.033925] Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

But I use ROS indigo and rosserial-indigo-devel. Actually, code sometimes works, and "lose sync" again. sometimes have error like that.
Is the problem of publish rate in ROS and subscribe rate in UNO?
Somebody can help me, thanks so much.

node "determine_path" in ros publish an angle with rate 0.09,
then another node "zumo_controller " in ros subscribe it and publish to UNO with rate 0.019. UNO subscribe like this:

  void loop(){

Launch file:

    <group ns = "space1">
            pkg = "rosserial_python"
            type = ""
            name = "serial_node"
            <param name = "port" value = "/dev/ttyACM1"/>

            pkg = "jl"
            type = "zumo_controller"
            name = "zumo_controller"
            pkg = "jl"
            type = "determine_path"
            name = "hokuyo_analyze"
            pkg = "hokuyo_node"
            type = "hokuyo_node"
            name = "hokuyo"
            <param name = "port" value = "/dev/ttyACM0"/>
edit retag flag offensive close merge delete


If your code "sometimes" works maybe you run out of SRAM, see

Wolf gravatar image Wolf  ( 2015-06-02 04:58:39 -0600 )edit

you could also try using something like the teensy that has a lot more RAM, amongst other things

nickw gravatar image nickw  ( 2015-06-02 07:37:01 -0600 )edit

thanks all

crazymumu gravatar image crazymumu  ( 2015-06-04 19:45:34 -0600 )edit