bulletlab 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. bulletlab-0.1.0/LICENSE +21 -0
  2. bulletlab-0.1.0/MANIFEST.in +6 -0
  3. bulletlab-0.1.0/PKG-INFO +271 -0
  4. bulletlab-0.1.0/README.md +230 -0
  5. bulletlab-0.1.0/bulletlab/__init__.py +48 -0
  6. bulletlab-0.1.0/bulletlab/core/__init__.py +10 -0
  7. bulletlab-0.1.0/bulletlab/core/simulation.py +377 -0
  8. bulletlab-0.1.0/bulletlab/core/world.py +173 -0
  9. bulletlab-0.1.0/bulletlab/logging/__init__.py +9 -0
  10. bulletlab-0.1.0/bulletlab/logging/csv_writer.py +54 -0
  11. bulletlab-0.1.0/bulletlab/logging/json_writer.py +70 -0
  12. bulletlab-0.1.0/bulletlab/logging/logger.py +258 -0
  13. bulletlab-0.1.0/bulletlab/plotting/__init__.py +9 -0
  14. bulletlab-0.1.0/bulletlab/plotting/live_plot.py +364 -0
  15. bulletlab-0.1.0/bulletlab/robot/__init__.py +12 -0
  16. bulletlab-0.1.0/bulletlab/robot/joint.py +363 -0
  17. bulletlab-0.1.0/bulletlab/robot/link.py +401 -0
  18. bulletlab-0.1.0/bulletlab/robot/robot.py +533 -0
  19. bulletlab-0.1.0/bulletlab/telemetry/__init__.py +10 -0
  20. bulletlab-0.1.0/bulletlab/telemetry/channel.py +124 -0
  21. bulletlab-0.1.0/bulletlab/telemetry/manager.py +227 -0
  22. bulletlab-0.1.0/bulletlab/ui/__init__.py +31 -0
  23. bulletlab-0.1.0/bulletlab/ui/app.py +514 -0
  24. bulletlab-0.1.0/bulletlab/ui/panels/__init__.py +16 -0
  25. bulletlab-0.1.0/bulletlab/ui/panels/console.py +189 -0
  26. bulletlab-0.1.0/bulletlab/ui/panels/explorer.py +144 -0
  27. bulletlab-0.1.0/bulletlab/ui/panels/plots.py +143 -0
  28. bulletlab-0.1.0/bulletlab/ui/panels/properties.py +265 -0
  29. bulletlab-0.1.0/bulletlab/ui/panels/telemetry.py +105 -0
  30. bulletlab-0.1.0/bulletlab/ui/widgets.py +348 -0
  31. bulletlab-0.1.0/bulletlab/utils/__init__.py +26 -0
  32. bulletlab-0.1.0/bulletlab/utils/math_utils.py +183 -0
  33. bulletlab-0.1.0/bulletlab/utils/timer.py +107 -0
  34. bulletlab-0.1.0/bulletlab/utils/urdf_utils.py +114 -0
  35. bulletlab-0.1.0/bulletlab.egg-info/PKG-INFO +271 -0
  36. bulletlab-0.1.0/bulletlab.egg-info/SOURCES.txt +72 -0
  37. bulletlab-0.1.0/bulletlab.egg-info/dependency_links.txt +1 -0
  38. bulletlab-0.1.0/bulletlab.egg-info/requires.txt +15 -0
  39. bulletlab-0.1.0/bulletlab.egg-info/top_level.txt +1 -0
  40. bulletlab-0.1.0/docs/api/joint.md +9 -0
  41. bulletlab-0.1.0/docs/api/link.md +5 -0
  42. bulletlab-0.1.0/docs/api/logging.md +5 -0
  43. bulletlab-0.1.0/docs/api/plotting.md +5 -0
  44. bulletlab-0.1.0/docs/api/robot.md +5 -0
  45. bulletlab-0.1.0/docs/api/simulation.md +24 -0
  46. bulletlab-0.1.0/docs/api/telemetry.md +9 -0
  47. bulletlab-0.1.0/docs/api/ui.md +11 -0
  48. bulletlab-0.1.0/docs/developer/architecture.md +85 -0
  49. bulletlab-0.1.0/docs/developer/developer_guide.md +91 -0
  50. bulletlab-0.1.0/docs/guides/example_guide.md +88 -0
  51. bulletlab-0.1.0/docs/guides/plotting_guide.md +62 -0
  52. bulletlab-0.1.0/docs/guides/rl_guide.md +113 -0
  53. bulletlab-0.1.0/docs/guides/robot_guide.md +144 -0
  54. bulletlab-0.1.0/docs/guides/telemetry_guide.md +67 -0
  55. bulletlab-0.1.0/docs/guides/ui_guide.md +117 -0
  56. bulletlab-0.1.0/docs/index.md +59 -0
  57. bulletlab-0.1.0/docs/quickstart.md +125 -0
  58. bulletlab-0.1.0/examples/01_differential_drive_rover.py +183 -0
  59. bulletlab-0.1.0/examples/02_robotic_arm.py +170 -0
  60. bulletlab-0.1.0/examples/03_self_balancing_robot.py +198 -0
  61. bulletlab-0.1.0/examples/04_drone_parameter_tuning.py +278 -0
  62. bulletlab-0.1.0/examples/05_generic_robot_inspector.py +214 -0
  63. bulletlab-0.1.0/examples/demo_ui_control.py +281 -0
  64. bulletlab-0.1.0/pyproject.toml +82 -0
  65. bulletlab-0.1.0/setup.cfg +4 -0
  66. bulletlab-0.1.0/tests/test_joint.py +108 -0
  67. bulletlab-0.1.0/tests/test_link.py +115 -0
  68. bulletlab-0.1.0/tests/test_logging.py +211 -0
  69. bulletlab-0.1.0/tests/test_plotting.py +77 -0
  70. bulletlab-0.1.0/tests/test_robot.py +118 -0
  71. bulletlab-0.1.0/tests/test_simulation.py +134 -0
  72. bulletlab-0.1.0/tests/test_telemetry.py +172 -0
  73. bulletlab-0.1.0/tests/test_ui_panels.py +245 -0
  74. bulletlab-0.1.0/tests/test_utils.py +205 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ranasurya Ghosh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ include README.md
2
+ include LICENSE
3
+ include pyproject.toml
4
+ recursive-include bulletlab *.py *.yaml *.yml *.urdf *.json
5
+ recursive-include docs *.md *.yaml *.yml *.png
6
+ recursive-include examples *.py *.urdf *.yaml
@@ -0,0 +1,271 @@
1
+ Metadata-Version: 2.4
2
+ Name: bulletlab
3
+ Version: 0.1.0
4
+ Summary: A high-level robotics simulation and experimentation framework built on PyBullet.
5
+ Author-email: Ranasurya Ghosh <ranasuryaghosh@gmail.com>
6
+ Maintainer: Ranasurya Ghosh
7
+ License-Expression: MIT
8
+ Project-URL: Repository, https://github.com/NuclearVenom/BulletLab
9
+ Keywords: robotics,simulation,pybullet,reinforcement-learning,physics,ImGui,3D,graphics,research,telemetry,robot-control,robotics-framework
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Education
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Topic :: Scientific/Engineering
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Topic :: Scientific/Engineering
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.10
24
+ Description-Content-Type: text/markdown
25
+ License-File: LICENSE
26
+ Requires-Dist: pybullet>=3.2.6
27
+ Requires-Dist: numpy>=1.24.0
28
+ Requires-Dist: pandas>=2.0.0
29
+ Requires-Dist: pyyaml>=6.0
30
+ Requires-Dist: imgui[glfw]>=2.0.0
31
+ Requires-Dist: pyqtgraph>=0.13.3
32
+ Requires-Dist: PyQt5>=5.15.0
33
+ Provides-Extra: dev
34
+ Requires-Dist: pytest>=7.4.0; extra == "dev"
35
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
36
+ Requires-Dist: pytest-mock>=3.11.0; extra == "dev"
37
+ Requires-Dist: mkdocs>=1.5.0; extra == "dev"
38
+ Requires-Dist: mkdocstrings[python]>=0.23.0; extra == "dev"
39
+ Requires-Dist: mkdocs-material>=9.4.0; extra == "dev"
40
+ Dynamic: license-file
41
+
42
+ # BulletLab
43
+ Developed by [Ranasurya Ghosh](https://github.com/NuclearVenom)
44
+
45
+ >**A fast, extensible robotics experimentation framework built on PyBullet, designed for rapid prototyping, testing, simulation and learning.**
46
+
47
+ [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/)
48
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
49
+
50
+ **Install BulletLab library:** `pip install bulletlab`
51
+
52
+ ![BulletLab example UI](assets/bulletlab_ui.png)
53
+
54
+ ---
55
+
56
+ ## What is BulletLab?
57
+
58
+ BulletLab provides a high-level object-oriented interface to [PyBullet](https://pybullet.org/wordpress/) that simplifies robotics experimentation by exposing joints, links, sensors, and environments as intuitive Python objects instead of raw physics engine IDs. It combines real-time simulation with a [ImGui](https://www.dearimgui.com/)-powered modern interface for interactive control, parameter tuning, telemetry visualization, and experiment management, while also offering reinforcement learning integration for training and evaluating autonomous robotic systems within a unified workflow.
59
+
60
+ **Instead of this:**
61
+ ```python
62
+ p.setJointMotorControl2(
63
+ robot_id, joint_index,
64
+ controlMode=p.VELOCITY_CONTROL,
65
+ targetVelocity=15,
66
+ force=100
67
+ )
68
+ ```
69
+
70
+ **You write this:**
71
+ ```python
72
+ robot.joints["motor"].velocity = 15
73
+ ```
74
+
75
+ ---
76
+
77
+ ## Architecture
78
+
79
+ BulletLab uses a **two-window architecture**:
80
+
81
+ | Window | Purpose |
82
+ |--------|---------|
83
+ | PyBullet Native Window | Physics simulation, 3D rendering, camera |
84
+ | BulletLab ImGui Window | Control panels, telemetry, live plots, console |
85
+
86
+ These windows communicate through Python objects. BulletLab does **not** attempt to replace PyBullet's renderer or embed ImGui inside the simulation viewport.
87
+
88
+ ---
89
+
90
+ ## Quick Start
91
+
92
+ ### Installation
93
+
94
+ ```bash
95
+ pip install bulletlab
96
+ # or from source:
97
+ pip install -e .
98
+ ```
99
+
100
+ ### Basic Example
101
+
102
+ ```python
103
+ from bulletlab import Simulation, Robot
104
+ from bulletlab.ui import BulletLabUI
105
+
106
+ # Create simulation
107
+ sim = Simulation()
108
+ sim.start()
109
+
110
+ # Load robot
111
+ robot = Robot.load("path/to/robot.urdf", sim=sim)
112
+
113
+ # Control joints by name
114
+ robot.joints["wheel_left"].velocity = 10
115
+ robot.joints["wheel_right"].velocity = 10
116
+
117
+ # Modify physics parameters
118
+ robot.links["chassis"].mass = 5.0
119
+ robot.links["wheel_fl"].friction = 1.2
120
+
121
+ # Get robot state
122
+ state = robot.get_state()
123
+ print(f"Position: {robot.base_position}")
124
+ print(f"Roll: {robot.roll:.2f}°")
125
+
126
+ # Build UI
127
+ ui = BulletLabUI(sim=sim)
128
+ ui.register_panel(...)
129
+ ui.run()
130
+ ```
131
+
132
+ ### Telemetry & Logging
133
+
134
+ ```python
135
+ from bulletlab.telemetry import TelemetryManager
136
+ from bulletlab.logging import DataLogger
137
+
138
+ telemetry = TelemetryManager()
139
+ telemetry.watch("Speed", lambda: robot.base_velocity[0])
140
+ telemetry.watch("Roll", lambda: robot.roll)
141
+
142
+ logger = DataLogger()
143
+ logger.watch("speed", lambda: robot.base_velocity[0])
144
+ logger.start("run1.csv")
145
+
146
+ for _ in range(1000):
147
+ sim.step()
148
+ telemetry.update()
149
+ logger.step()
150
+
151
+ logger.stop()
152
+ ```
153
+
154
+ ### Live Plotting
155
+
156
+ ```python
157
+ from bulletlab.plotting import LivePlot
158
+
159
+ plot = LivePlot(title="Robot Speed")
160
+ plot.watch("Speed", lambda: robot.base_velocity[0], color="#00ff88")
161
+ plot.start()
162
+
163
+ for _ in range(1000):
164
+ sim.step()
165
+ plot.update()
166
+ ```
167
+
168
+ ### ImGui Control Panel
169
+
170
+ ```python
171
+ from bulletlab.ui import BulletLabUI
172
+ from bulletlab.ui import widgets as ui
173
+
174
+ app = BulletLabUI(sim=sim, robots=[robot])
175
+
176
+ @app.custom_panel("My Controls")
177
+ def my_panel():
178
+ ui.button("Reset", robot.reset)
179
+ ui.slider("Wheel Mass", robot.links["wheel"].mass, 0.1, 20,
180
+ setter=lambda v: setattr(robot.links["wheel"], "mass", v))
181
+ ui.checkbox("Motors Enabled", lambda: motors_on,
182
+ setter=lambda v: toggle_motors(v))
183
+
184
+ app.run()
185
+ ```
186
+
187
+ ---
188
+
189
+ ## Supported Robot Types
190
+
191
+ BulletLab is completely generic — no code assumes a specific robot type:
192
+
193
+ - 🚗 Cars & rovers
194
+ - ✈️ Drones & quadrotors
195
+ - 🦾 Robotic arms
196
+ - 🤸 Self-balancing robots
197
+ - 🐕 Quadrupeds
198
+ - 🤖 Humanoids
199
+ - ⚙️ Custom mechanisms
200
+
201
+ ---
202
+
203
+ ## Reinforcement Learning
204
+
205
+ BulletLab exposes clean state/action interfaces without depending on any ML framework:
206
+
207
+ ```python
208
+ # Compatible with any RL approach
209
+ state = robot.get_state() # → numpy array
210
+ action = my_policy(state) # → numpy array
211
+ robot.apply_action(action) # → updates joints
212
+
213
+ # Manual Q-learning, SARSA, evolutionary algorithms — all supported
214
+ ```
215
+
216
+ ---
217
+
218
+ ## Examples
219
+
220
+ | Example | Description |
221
+ |---------|-------------|
222
+ | `examples/01_differential_drive_rover.py` | Rover with wheel velocity control |
223
+ | `examples/02_robotic_arm.py` | Joint position control with ImGui sliders |
224
+ | `examples/03_self_balancing_robot.py` | PD controller for balance |
225
+ | `examples/04_drone_parameter_tuning.py` | Thrust/mass parameter exploration |
226
+ | `examples/05_generic_robot_inspector.py` | Load any URDF and inspect it |
227
+
228
+ Run any example:
229
+ ```bash
230
+ python examples/01_differential_drive_rover.py
231
+ ```
232
+
233
+ ---
234
+
235
+ ## Documentation
236
+
237
+ ```bash
238
+ pip install -e ".[dev]"
239
+ mkdocs serve
240
+ ```
241
+
242
+ Then visit http://localhost:8000
243
+
244
+ ---
245
+
246
+ ## Testing
247
+
248
+ ```bash
249
+ pip install -e ".[dev]"
250
+ pytest tests/ -v --cov=bulletlab --cov-report=term-missing
251
+ ```
252
+
253
+ ---
254
+
255
+ ## Technology Stack
256
+
257
+ | Component | Library |
258
+ |-----------|---------|
259
+ | Physics | PyBullet |
260
+ | UI | Dear ImGui (pyimgui) |
261
+ | Data | NumPy, Pandas |
262
+ | Config | PyYAML |
263
+ | Plotting | PyQtGraph |
264
+ | Testing | PyTest |
265
+ | Docs | MkDocs + mkdocstrings |
266
+
267
+ ---
268
+
269
+ ## License
270
+
271
+ MIT License — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,230 @@
1
+ # BulletLab
2
+ Developed by [Ranasurya Ghosh](https://github.com/NuclearVenom)
3
+
4
+ >**A fast, extensible robotics experimentation framework built on PyBullet, designed for rapid prototyping, testing, simulation and learning.**
5
+
6
+ [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/)
7
+ [![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
8
+
9
+ **Install BulletLab library:** `pip install bulletlab`
10
+
11
+ ![BulletLab example UI](assets/bulletlab_ui.png)
12
+
13
+ ---
14
+
15
+ ## What is BulletLab?
16
+
17
+ BulletLab provides a high-level object-oriented interface to [PyBullet](https://pybullet.org/wordpress/) that simplifies robotics experimentation by exposing joints, links, sensors, and environments as intuitive Python objects instead of raw physics engine IDs. It combines real-time simulation with a [ImGui](https://www.dearimgui.com/)-powered modern interface for interactive control, parameter tuning, telemetry visualization, and experiment management, while also offering reinforcement learning integration for training and evaluating autonomous robotic systems within a unified workflow.
18
+
19
+ **Instead of this:**
20
+ ```python
21
+ p.setJointMotorControl2(
22
+ robot_id, joint_index,
23
+ controlMode=p.VELOCITY_CONTROL,
24
+ targetVelocity=15,
25
+ force=100
26
+ )
27
+ ```
28
+
29
+ **You write this:**
30
+ ```python
31
+ robot.joints["motor"].velocity = 15
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Architecture
37
+
38
+ BulletLab uses a **two-window architecture**:
39
+
40
+ | Window | Purpose |
41
+ |--------|---------|
42
+ | PyBullet Native Window | Physics simulation, 3D rendering, camera |
43
+ | BulletLab ImGui Window | Control panels, telemetry, live plots, console |
44
+
45
+ These windows communicate through Python objects. BulletLab does **not** attempt to replace PyBullet's renderer or embed ImGui inside the simulation viewport.
46
+
47
+ ---
48
+
49
+ ## Quick Start
50
+
51
+ ### Installation
52
+
53
+ ```bash
54
+ pip install bulletlab
55
+ # or from source:
56
+ pip install -e .
57
+ ```
58
+
59
+ ### Basic Example
60
+
61
+ ```python
62
+ from bulletlab import Simulation, Robot
63
+ from bulletlab.ui import BulletLabUI
64
+
65
+ # Create simulation
66
+ sim = Simulation()
67
+ sim.start()
68
+
69
+ # Load robot
70
+ robot = Robot.load("path/to/robot.urdf", sim=sim)
71
+
72
+ # Control joints by name
73
+ robot.joints["wheel_left"].velocity = 10
74
+ robot.joints["wheel_right"].velocity = 10
75
+
76
+ # Modify physics parameters
77
+ robot.links["chassis"].mass = 5.0
78
+ robot.links["wheel_fl"].friction = 1.2
79
+
80
+ # Get robot state
81
+ state = robot.get_state()
82
+ print(f"Position: {robot.base_position}")
83
+ print(f"Roll: {robot.roll:.2f}°")
84
+
85
+ # Build UI
86
+ ui = BulletLabUI(sim=sim)
87
+ ui.register_panel(...)
88
+ ui.run()
89
+ ```
90
+
91
+ ### Telemetry & Logging
92
+
93
+ ```python
94
+ from bulletlab.telemetry import TelemetryManager
95
+ from bulletlab.logging import DataLogger
96
+
97
+ telemetry = TelemetryManager()
98
+ telemetry.watch("Speed", lambda: robot.base_velocity[0])
99
+ telemetry.watch("Roll", lambda: robot.roll)
100
+
101
+ logger = DataLogger()
102
+ logger.watch("speed", lambda: robot.base_velocity[0])
103
+ logger.start("run1.csv")
104
+
105
+ for _ in range(1000):
106
+ sim.step()
107
+ telemetry.update()
108
+ logger.step()
109
+
110
+ logger.stop()
111
+ ```
112
+
113
+ ### Live Plotting
114
+
115
+ ```python
116
+ from bulletlab.plotting import LivePlot
117
+
118
+ plot = LivePlot(title="Robot Speed")
119
+ plot.watch("Speed", lambda: robot.base_velocity[0], color="#00ff88")
120
+ plot.start()
121
+
122
+ for _ in range(1000):
123
+ sim.step()
124
+ plot.update()
125
+ ```
126
+
127
+ ### ImGui Control Panel
128
+
129
+ ```python
130
+ from bulletlab.ui import BulletLabUI
131
+ from bulletlab.ui import widgets as ui
132
+
133
+ app = BulletLabUI(sim=sim, robots=[robot])
134
+
135
+ @app.custom_panel("My Controls")
136
+ def my_panel():
137
+ ui.button("Reset", robot.reset)
138
+ ui.slider("Wheel Mass", robot.links["wheel"].mass, 0.1, 20,
139
+ setter=lambda v: setattr(robot.links["wheel"], "mass", v))
140
+ ui.checkbox("Motors Enabled", lambda: motors_on,
141
+ setter=lambda v: toggle_motors(v))
142
+
143
+ app.run()
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Supported Robot Types
149
+
150
+ BulletLab is completely generic — no code assumes a specific robot type:
151
+
152
+ - 🚗 Cars & rovers
153
+ - ✈️ Drones & quadrotors
154
+ - 🦾 Robotic arms
155
+ - 🤸 Self-balancing robots
156
+ - 🐕 Quadrupeds
157
+ - 🤖 Humanoids
158
+ - ⚙️ Custom mechanisms
159
+
160
+ ---
161
+
162
+ ## Reinforcement Learning
163
+
164
+ BulletLab exposes clean state/action interfaces without depending on any ML framework:
165
+
166
+ ```python
167
+ # Compatible with any RL approach
168
+ state = robot.get_state() # → numpy array
169
+ action = my_policy(state) # → numpy array
170
+ robot.apply_action(action) # → updates joints
171
+
172
+ # Manual Q-learning, SARSA, evolutionary algorithms — all supported
173
+ ```
174
+
175
+ ---
176
+
177
+ ## Examples
178
+
179
+ | Example | Description |
180
+ |---------|-------------|
181
+ | `examples/01_differential_drive_rover.py` | Rover with wheel velocity control |
182
+ | `examples/02_robotic_arm.py` | Joint position control with ImGui sliders |
183
+ | `examples/03_self_balancing_robot.py` | PD controller for balance |
184
+ | `examples/04_drone_parameter_tuning.py` | Thrust/mass parameter exploration |
185
+ | `examples/05_generic_robot_inspector.py` | Load any URDF and inspect it |
186
+
187
+ Run any example:
188
+ ```bash
189
+ python examples/01_differential_drive_rover.py
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Documentation
195
+
196
+ ```bash
197
+ pip install -e ".[dev]"
198
+ mkdocs serve
199
+ ```
200
+
201
+ Then visit http://localhost:8000
202
+
203
+ ---
204
+
205
+ ## Testing
206
+
207
+ ```bash
208
+ pip install -e ".[dev]"
209
+ pytest tests/ -v --cov=bulletlab --cov-report=term-missing
210
+ ```
211
+
212
+ ---
213
+
214
+ ## Technology Stack
215
+
216
+ | Component | Library |
217
+ |-----------|---------|
218
+ | Physics | PyBullet |
219
+ | UI | Dear ImGui (pyimgui) |
220
+ | Data | NumPy, Pandas |
221
+ | Config | PyYAML |
222
+ | Plotting | PyQtGraph |
223
+ | Testing | PyTest |
224
+ | Docs | MkDocs + mkdocstrings |
225
+
226
+ ---
227
+
228
+ ## License
229
+
230
+ MIT License — see [LICENSE](LICENSE) for details.
@@ -0,0 +1,48 @@
1
+ """
2
+ BulletLab – A fast, extensible robotics experimentation framework built on PyBullet.
3
+
4
+ Developed by Ranasurya Ghosh (https://github.com/NuclearVenom/BulletLab)
5
+
6
+ BulletLab provides a high-level Python API over PyBullet, making robotics
7
+ experimentation significantly easier by exposing robots as structured Python
8
+ objects rather than raw physics engine primitives.
9
+
10
+ Quick Start::
11
+
12
+ from bulletlab import Simulation, Robot
13
+
14
+ sim = Simulation()
15
+ sim.start()
16
+
17
+ robot = Robot.load("robot.urdf", sim=sim)
18
+ robot.joints["motor"].velocity = 15
19
+ robot.links["wheel"].mass = 2.5
20
+
21
+ while True:
22
+ sim.step()
23
+ """
24
+
25
+ from bulletlab.core.simulation import Simulation
26
+ from bulletlab.core.world import World
27
+ from bulletlab.robot.robot import Robot
28
+ from bulletlab.robot.joint import Joint
29
+ from bulletlab.robot.link import Link
30
+ from bulletlab.telemetry.manager import TelemetryManager
31
+ from bulletlab.logging.logger import DataLogger
32
+ from bulletlab.plotting.live_plot import LivePlot
33
+
34
+ __version__ = "0.1.0"
35
+ __author__ = "Ranasurya Ghosh"
36
+ __url__ = "https://github.com/NuclearVenom/BulletLab"
37
+ __license__ = "MIT"
38
+
39
+ __all__ = [
40
+ "Simulation",
41
+ "World",
42
+ "Robot",
43
+ "Joint",
44
+ "Link",
45
+ "TelemetryManager",
46
+ "DataLogger",
47
+ "LivePlot",
48
+ ]
@@ -0,0 +1,10 @@
1
+ """
2
+ BulletLab core subpackage.
3
+
4
+ Provides the Simulation and World classes — the foundation of every BulletLab session.
5
+ """
6
+
7
+ from bulletlab.core.simulation import Simulation
8
+ from bulletlab.core.world import World
9
+
10
+ __all__ = ["Simulation", "World"]