ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I never got the Multiline part to work either. The only way I figured th send multiline strings using rostopic pub is to make a file like such:

"first line

I never got the Multiline part multi-line pub to work either. The only way I figured th out how to send multiline strings using rostopic pub is to make a file like such:this (named test.txt):

"first line

second line

third line"

and then use rostopic pub /send_BTSVR std_msgs/String -f test.txt

Note that there is an empty line between the lines. I am pretty sure there's an easier/better way, but I don't know it and would love to hear if anyone has an idea?

I never got the multi-line pub to work either. The only way I figured out how to send multiline strings using rostopic pub is to make a file like this (named test.txt):test.yaml):

"first line

second line

third line"

and then use rostopic pub /send_BTSVR std_msgs/String -f test.txttest.yaml

Note that there is an empty line between the lines. I am pretty sure there's an easier/better way, but I don't know it and would love to hear if anyone has an idea?