I have been through the ROS Arduino tutorials and been able to get most of them working including the Servo tutorial. I would like to take that code and expand it by adding a second subscriber for a different servo function like sweep instead of just moving the servo once.
When I try to add the second subscriber:
ros::Subscriber<std_msgs::UInt16> sub("once", once_cb);
ros::Subscriber<std_msgs::UInt16> sub("sweep", sweep_cb);
Arduino complains ( I think it as about trying to redefine ros::Subscriber, but I am not running Ubuntu at this point). What is the syntax for defining two or more subscribers.
Thanks
Chuck
--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To post to this group, send email to hbrob...@googlegroups.com.
To unsubscribe from this group, send email to hbrobotics+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hbrobotics?hl=en.