ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

http://wiki.ros.org/rosserial/Overview/Limitations Part 1.4 talks about issues with arrays and the need to specify the length of the array explicitly - this may be the issue

This page http://wiki.ros.org/rosserial_arduino/Tutorials/Blink shows you how to implement a subscriber.

http://wiki.ros.org/rosserial/Overview/Limitations Part 1.4 talks about issues with arrays and the need to specify the length of the array explicitly - this may be the issue

This page http://wiki.ros.org/rosserial_arduino/Tutorials/Blink shows you how to implement a subscriber.

http://wiki.ros.org/rosserial/Overview/Limitations Part 1.4 talks about issues with arrays and the need to specify the length of the array explicitly - this may be the issue

http://wiki.ros.org/rosserial/Overview/Publishers%20and%20Subscribers

shows how to read the data in a message

void messageCb(const std_msgs::Float64& msg)
  if(msg.data > 1.0)
    digitalWrite(13, HIGH-digitalRead(13));   // blink the led
}

http://wiki.ros.org/rosserial/Overview/Limitations Part 1.4 talks about issues with arrays and the need to specify the length of the array explicitly - this may be the issue

http://wiki.ros.org/rosserial/Overview/Publishers%20and%20Subscribersexample here http://wiki.ros.org/rosserial/Overview/Messages of generating messages that contain arrays

http://wiki.ros.org/rosserial/Overview/Publishers%20and%20Subscribers shows how to read the data in a message

void messageCb(const std_msgs::Float64& msg)
  if(msg.data > 1.0)
    digitalWrite(13, HIGH-digitalRead(13));   // blink the led
}

http://wiki.ros.org/rosserial/Overview/Limitations Part 1.4 talks about issues with arrays and the need to specify the length of the array explicitly - this may be the issue

example here http://wiki.ros.org/rosserial/Overview/Messages of generating messages that contain arraysarrays, and instructions on how to send them as messages

http://wiki.ros.org/rosserial/Overview/Publishers%20and%20Subscribers shows how to read the data in a message

void messageCb(const std_msgs::Float64& msg)
  if(msg.data > 1.0)
    digitalWrite(13, HIGH-digitalRead(13));   // blink the led
}