diff --git a/ros_tcp_endpoint/server.py b/ros_tcp_endpoint/server.py index 5954994..2f93c28 100644 --- a/ros_tcp_endpoint/server.py +++ b/ros_tcp_endpoint/server.py @@ -122,7 +122,7 @@ def handle_syscommand(self, topic, data): if function is None: self.send_unity_error("Don't understand SysCommand.'{}'".format(topic)) else: - message_json = data.decode("utf-8")[:-1] + message_json = data.decode("utf-8") params = json.loads(message_json) function(**params)