waitForService fails if service implemented in arduino board [closed]
Hello, In my setup I have an arduino board connected to a PC. The arduino board have a service to enable/disable some digital outputs. In the PC I have several nodes that use this service. Before calling it I wait for the service to be announced. If I use the python call rospy.wait_for_service('...') it works as expected. However, if in C++, I use ros::service::waitForService("..."); the function returns before the service is announced and when I call it fails.
This happens to me ONLY with the service announced by the arduino board (not the services in the PC).
Any idea?
Thank you!
Which versions of ROS, Ubuntu and rosserial are you using?
Ubuntu 11.10, ROS electric. I don't know how to look the rosserial version.