waitForService fails if service implemented in arduino board [closed]

asked 2012-06-04 05:01:01 -0500

narcispr gravatar image

updated 2014-01-28 17:12:34 -0500

ngrennan gravatar image

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!

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-09-18 14:07:31


Which versions of ROS, Ubuntu and rosserial are you using?

ahendrix gravatar image ahendrix  ( 2012-06-04 07:45:46 -0500 )edit

Ubuntu 11.10, ROS electric. I don't know how to look the rosserial version.

narcispr gravatar image narcispr  ( 2012-06-06 03:06:43 -0500 )edit