提交 ba9c6ecf 编写于 作者: S storypku 提交者: Xiangquan Xiao

cyber_py3: workground for cyber_py3 service & client examples

上级 82ae6f54
......@@ -290,7 +290,9 @@ class Node(object):
return Client(c, response_data_type)
def service_callback(self, name):
v = self.services[name]
# Temporary workaround for cyber_py3 examples: service & client
v = self.services[name.decode("utf-8")]
msg_str = _CYBER.PyService_read(v[0])
if (len(msg_str) > 0):
proto = v[3]()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册