0
$\begingroup$

Rosanswers logo

operation=['addition','subtraction','multiplication','division']

I want to publish each element in the array from one node and subscribe those elements by other node. What should be the proper python syntax for publishing and subscribing ?


Originally posted by mhharshal on ROS Answers with karma: 21 on 2016-12-04

Post score: 0

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

Read The Friendly Manual: Publishers and Subscribers


Originally posted by NEngelhard with karma: 3519 on 2016-12-04

This answer was ACCEPTED on the original site

Post score: 1


Original comments

Comment by mhharshal on 2016-12-04:
I was able to publish simple data such as integers, but when I tried for arrays, ros was giving some error. How can we publish it properly?

Comment by NEngelhard on 2016-12-04:
" ros was giving some error. " It would be easier if you'd tell exactly(!) which error is returned. And do you want to publish an array or "each element in the array"?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.