Revision bbd41216
| client/python/hlrc_client/MiddlewareRSB.py | ||
|---|---|---|
| 95 | 95 |
|
| 96 | 96 |
# create emotion & fill it with values: |
| 97 | 97 |
rsb_em = EmotionExpression() |
| 98 |
|
|
| 99 |
#set value |
|
| 100 |
rsb_em.value = self.convert_emotiontype_to_rsbval(emotion.value) |
|
| 101 |
|
|
| 102 |
#set duration |
|
| 98 |
rsb_em.emotion = self.convert_emotiontype_to_rsbval(emotion.value) |
|
| 103 | 99 |
rsb_em.duration = int(emotion.time_ms) |
| 104 | 100 |
|
| 105 | 101 |
with rsb.createRemoteServer(self.base_scope + '/set') as server: |
Also available in: Unified diff