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

The answer is Very simple, the field that you need to send is s1.buflist (from the example above): s = String("Hello World".encode('utf-8')) s1 = StringIO() s.serialize(s1) socket.send_multipart(s1.buflist) print "sent: " + data.__str__()

click to hide/show revision 2
No.2 Revision

The answer is Very simple, the field that you need to send is s1.buflist (from the example above): above):

    s = String("Hello World".encode('utf-8'))
     s1 = StringIO()
     s.serialize(s1)
     socket.send_multipart(s1.buflist)
     print "sent: " + data.__str__()

data.__str__()