MCPcopy Create free account
hub / github.com/InternRobotics/UniHSI / BasePlotterTask

Class BasePlotterTask

unihsi/poselib/poselib/visualization/core.py:36–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35
36class BasePlotterTask(object):
37 _task_name: str # unique name of the task
38 _task_type: str # type of the task is used to identify which callable
39
40 def __init__(self, task_name: str, task_type: str) -> None:
41 self._task_name = task_name
42 self._task_type = task_type
43
44 @property
45 def task_name(self):
46 return self._task_name
47
48 @property
49 def task_type(self):
50 return self._task_type
51
52 def get_scoped_name(self, name):
53 return self._task_name + "/" + name
54
55 def __iter__(self):
56 """Should override this function to return a list of task primitives
57 """
58 raise NotImplementedError
59
60
61class BasePlotterTasks(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected