merge Position changer into main for report #11

Merged
SemvdH merged 83 commits from position_changer into main 2023-05-26 21:15:20 +00:00
Showing only changes of commit 61cd779f5e - Show all commits

View File

@@ -111,7 +111,11 @@ class ApiListener(Node):
{'type': ResponseMessage.ALL_REQUESTS_RESPONSES, 'data': result}))
def consume_message(self, message):
message_json = json.loads(message)
try:
message_json = json.loads(message)
except TypeError:
self.get_logger().error('Received unknown command')
self.send_available_commands()
if not message_json['command']:
self.get_logger().error('Received message without command')
self.send_available_commands()