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

Revision history [back]

click to hide/show revision 1
initial version

then the service returned a station as a destination point for both robots. What i have gone wrong? What should I do to avoid this conflict?

This doesn't seem to be a ROS issue. In general, when a service is requested "simultaneously", the requests are queued.

station is 'busy' if there was already a robot in there or there is a robot is going to that station [...] service returned a station as a destination point for both robots.

From the wording it sounds like the same available-station was returned as a response to both robots. To fix this conflict, I'd look into how the service server updates its record of available stations. If I had to hazard a guess, a station that is sent back as a response is not immediately transitioned to "busy", and then when the next request comes through the same station is sent back.