Storing service response into a variable
How do i store a service response into a variable..
I made a custom service which service response is a string.
.srv is defined as such:
---
string response
How do make store that response into a variable in c++, such that i process the string?..
Basically..
how do i
std::string received = X.response
Or is possible to process each character in the X.response somehow?
Asked by 215 on 2016-11-23 16:31:57 UTC
Comments
Have you taken a look at this http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28c%2B%2B%29 Section 2.1
Asked by DavidN on 2016-11-23 22:27:48 UTC