Ejemplo n.º 1
0
 def _newCommandMessage(self, commandName, **commandArgs):
     commandId = newUUID()
     self.sentCommands.add(commandId)
     commandArgs['commandId'] = commandId
     commandArgs['collectionId'] = self.collectionId
     commandArgs['command'] = commandName
     msg = lcmdrc.affordance_collection_t()
     msg.name = numpyjsoncoder.encode(commandArgs)
     msg.utime = getUtime()
     return msg
Ejemplo n.º 2
0
 def prettyPrintCollection(self):
     print json.dumps(json.loads(numpyjsoncoder.encode(self.collection)), indent=2)