summaryrefslogtreecommitdiff
path: root/murl/world/__init__.py
diff options
context:
space:
mode:
authorGreg Brown <gmb60@cam.ac.uk>2022-01-30 23:50:36 +0000
committerGreg Brown <gmb60@cam.ac.uk>2022-01-30 23:51:00 +0000
commitf6ee0e36c9cc075e5f007c44e95dc3aaa7736a57 (patch)
tree0fb6437bf04884ca7da38299d30b37ad6f9b4ee3 /murl/world/__init__.py
Initial commit
Diffstat (limited to 'murl/world/__init__.py')
-rw-r--r--murl/world/__init__.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/murl/world/__init__.py b/murl/world/__init__.py
new file mode 100644
index 0000000..254a0f6
--- /dev/null
+++ b/murl/world/__init__.py
@@ -0,0 +1,15 @@
+from abc import ABC, abstractmethod
+
+class World(ABC):
+ ROBOT_RADIUS = 0.105 / 2.
+ @abstractmethod
+ def is_valid(self, pose):
+ raise NotImplementedError
+
+ @abstractmethod
+ def get_dist(self, sources, angles):
+ raise NotImplementedError
+
+ @abstractmethod
+ def sample(self, particles):
+ raise NotImplementedError