pycozmo.emotions

Emotion representation and reading.

Functions

load_emotion_events(resource_dir)
load_emotion_types(resource_dir)

Classes

DecayGraph(nodes)
EmotionEvent(name, affectors, float]) EmotionEvent representation class.
EmotionType(name, decay_graph, repetition_penaly) Emotion type class.
Node(x, y)
class pycozmo.emotions.EmotionType(name: str, decay_graph: pycozmo.emotions.DecayGraph, repetition_penaly: pycozmo.emotions.DecayGraph)

Bases: object

Emotion type class.

decay_graph
name
repetition_penalty
update()

Update from decay function.

class pycozmo.emotions.EmotionEvent(name: str, affectors: Dict[str, float])

Bases: object

EmotionEvent representation class.

affectors
classmethod from_json(data: Dict[KT, VT])
name
pycozmo.emotions.load_emotion_types(resource_dir: str) → Dict[str, pycozmo.emotions.EmotionType]
pycozmo.emotions.load_emotion_events(resource_dir: str) → Dict[str, pycozmo.emotions.EmotionEvent]