def getEmotionStates(): return msg.EmotionStates([ msg.EmotionState(name, vals['magnitude'], rospy.Duration(vals['duration'])) for name, vals in api.getEmotionStates().items() ])
def getEmotionStates(): return msg.EmotionStates([ # Emotion state has no current duration msg.EmotionState(name, vals['magnitude'], 0) for name, vals in api.getEmotionStates().items() ])