From f6ee0e36c9cc075e5f007c44e95dc3aaa7736a57 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Sun, 30 Jan 2022 23:50:36 +0000 Subject: Initial commit --- murl/world/__init__.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 murl/world/__init__.py (limited to 'murl/world/__init__.py') 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 -- cgit v1.2.3