ROS Service Client C++
Hi,
Can anybody please suggest how I could publish matrix data values from a ros client? My srv declaration has float64[] as the response data type.
Not sure how I could write the client.call(srv) block.
Thanks in advance!
You're question title mentions 'service client', then your question text talks about 'publishing'. That is confusing. Can you perhaps clarify a bit what it is that you're exactly trying to do?
And 'matrix' doesn't exist as a msg type. Either use a list, an array or a vector. Or
MultiArray
. But all of this seems to lead to loss of semantics, so it might not be the best way to approach this.Hi, sorry, you are correct, my question is incorrectly worded. I implied, the response of the service, would be a matrix. Thank you for suggesting MultiArray, I will look into it.