Skip to content

Commit d5f4270

Browse files
committed
change pre-commit hook config and format
1 parent 7af364c commit d5f4270

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ repos:
55
- id: black
66
args:
77
- --line-length=120
8-
- genesis
8+
- .

examples/tutorials/draw_debug.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -38,27 +38,19 @@ def main():
3838
) # Red
3939

4040
# Debug arrow
41-
debug_arrow = scene.draw_debug_arrow(
42-
pos=(1, 0, 0), vec=(0, 0, 1), radius=0.02, color=(1, 0, 0, 0.5)
43-
) # Green
41+
debug_arrow = scene.draw_debug_arrow(pos=(1, 0, 0), vec=(0, 0, 1), radius=0.02, color=(1, 0, 0, 0.5)) # Green
4442

4543
# Debug sphere
46-
debug_sphere = scene.draw_debug_sphere(
47-
pos=(1.5, 0, 0.5), radius=0.1, color=(0, 0, 1, 0.5)
48-
) # Blue with alpha
44+
debug_sphere = scene.draw_debug_sphere(pos=(1.5, 0, 0.5), radius=0.1, color=(0, 0, 1, 0.5)) # Blue with alpha
4945

5046
# Debug multiple spheres
5147
sphere_positions = np.array([[2, 0, 0.3], [2, 0, 0.5], [2, 0, 0.7]])
52-
debug_spheres = scene.draw_debug_spheres(
53-
poss=sphere_positions, radius=0.05, color=(1, 1, 0, 0.5)
54-
) # Yellow
48+
debug_spheres = scene.draw_debug_spheres(poss=sphere_positions, radius=0.05, color=(1, 1, 0, 0.5)) # Yellow
5549

5650
# Transformation matrix for frame (identity matrix with translation)
5751
T = np.eye(4)
5852
T[:3, 3] = [2.5, 0, 0.5]
59-
debug_frame = scene.draw_debug_frame(
60-
T=T, axis_length=0.5, origin_size=0.03, axis_radius=0.02
61-
)
53+
debug_frame = scene.draw_debug_frame(T=T, axis_length=0.5, origin_size=0.03, axis_radius=0.02)
6254

6355
# Simulation loop
6456
for step in range(500):

0 commit comments

Comments
 (0)