ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Glad you got it working!
Have you typed 'make' in [srv_counter]?
This seems to be FAQ on this forum. You may find other threds that explain this well e.g. #q254699.
ROS Service
is server-client system, which consists of Service server and Service client. What rosservice list
returns is a list of currently running Services, so in other words those are the list of Service server nodes. On the other hand, rosservice call
creates a Service client node. As #q254699 explains, the environment for both nodes needs to know about the same Service definition, which in your case source ./devel/setup.bash
resolves.
2 | No.2 Revision |
Glad you got it working!
Have you typed 'make' in [srv_counter]?
This seems to be FAQ on this forum. You may find other threds that explain this well e.g. #q254699.
ROS Service
is server-client system, which consists of Service server and Service client. What rosservice list
returns is a list of currently running Services, so in other words those are the list of Service server nodes. On the other hand, rosservice call
creates a Service client node. As #q254699 explains, the environment for both nodes needs to know about the same Service definition, which in your case source ./devel/setup.bash
resolves.