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?
Have you taken a look at this http://wiki.ros.org/ROS/Tutorials/Wri... Section 2.1