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