Upload folder using huggingface_hub
Browse files- pyproject.toml +3 -0
- src/reachy_mini_maple/main.py +8 -0
pyproject.toml
CHANGED
|
@@ -20,6 +20,9 @@ dependencies = [
|
|
| 20 |
[project.optional-dependencies]
|
| 21 |
dev = ["ruff", "pytest"]
|
| 22 |
|
|
|
|
|
|
|
|
|
|
| 23 |
[tool.setuptools.packages.find]
|
| 24 |
where = ["src"]
|
| 25 |
include = ["reachy_mini_maple*"]
|
|
|
|
| 20 |
[project.optional-dependencies]
|
| 21 |
dev = ["ruff", "pytest"]
|
| 22 |
|
| 23 |
+
[project.entry-points."reachy_mini_apps"]
|
| 24 |
+
reachy_mini_maple = "reachy_mini_maple.main:ReachyMiniMaple"
|
| 25 |
+
|
| 26 |
[tool.setuptools.packages.find]
|
| 27 |
where = ["src"]
|
| 28 |
include = ["reachy_mini_maple*"]
|
src/reachy_mini_maple/main.py
CHANGED
|
@@ -41,3 +41,11 @@ class ReachyMiniMaple(ReachyMiniApp):
|
|
| 41 |
asyncio.run(bridge.start(reachy_mini, stop_event))
|
| 42 |
|
| 43 |
log.info("Reachy Mini Maple stopped.")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
asyncio.run(bridge.start(reachy_mini, stop_event))
|
| 42 |
|
| 43 |
log.info("Reachy Mini Maple stopped.")
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
if __name__ == "__main__":
|
| 47 |
+
app = ReachyMiniMaple()
|
| 48 |
+
try:
|
| 49 |
+
app.wrapped_run()
|
| 50 |
+
except KeyboardInterrupt:
|
| 51 |
+
app.stop()
|