From de055dbf9311bb0890fd0fd185ce7a1112089691 Mon Sep 17 00:00:00 2001 From: JackM323 Date: Wed, 4 Nov 2026 21:09:41 +0100 Subject: [PATCH] Urdf File Macro + New Dimensions --- JackBotUrdf.xacro | 158 ++++++++++++++++++++++++++++++++++++++++++++++ README.md | 12 +++- requirements.txt | 1 + 3 files changed, 170 insertions(+), 1 deletion(-) create mode 100644 JackBotUrdf.xacro diff --git a/JackBotUrdf.xacro b/JackBotUrdf.xacro new file mode 100644 index 0000000..ceb488a --- /dev/null +++ b/JackBotUrdf.xacro @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/README.md b/README.md index be997c6..167e3da 100644 --- a/README.md +++ b/README.md @@ -113,7 +113,17 @@ The repository contains a few pieces that are still present but not fully connec * **Python:** 3.12 recommended * **OS:** Windows 10/11 or Linux -* **Dependencies:** `pybullet`, `gymnasium`, `stable-baselines3`, `torch`, `numpy`, `pygame`, `ikpy`, `pyserial`, `matplotlib`, `dearpygui` +* **Dependencies:** `pybullet`, `gymnasium`, `stable-baselines3`, `torch`, `numpy`, `pygame`, `ikpy`, `pyserial`, `matplotlib`, `dearpygui`, `xacro` + +## Robot model + +Edit [`JackBotUrdf.xacro`](JackBotUrdf.xacro), which defines shared leg dimensions, coxa starting-position properties, and a reusable leg macro. Regenerate the checked-in URDF after changing the model: + +```bash +xacro JackBotUrdf.xacro -o JackBotUrdf.urdf +``` + +The `xacro` dependency is included in `requirements.txt`. Keep `JackBotUrdf.urdf` as generated output; the simulator and kinematics continue loading that file. --- diff --git a/requirements.txt b/requirements.txt index 9875a2f..87a7187 100644 --- a/requirements.txt +++ b/requirements.txt @@ -13,3 +13,4 @@ stable-baselines3[extra] gymnasium shimmy tensorboard +xacro