ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Please pay attention to the error message:
ImportError: cannot import name AddTWoIntsResponse
notice how it says: AddTWoIntsResponse
.
The name of your service is AddTwoInts
. The name of the service response type would be AddTwoIntsResponse
.
Both are with a lower-case w
. You wrote it with an uppercase W
:
from service_node.srv import AddTwoInts,AddTWoIntsResponse
Just as in your previous question (#q380524) such details are important. Capitalisation of characters matters, as w
is different from W
.