Skip to content

Commit 8ba4c8c

Browse files
committed
docs: fix typos
1 parent 30c2696 commit 8ba4c8c

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ episode = reader.get_episode(3) # all frames of episode 3
209209
210210
### Example Episode Visualization
211211

212-
https://github.com/user-attachments/assets/b4b8d807-4bc1-4c4d-9b3d-b7d674a4e251
212+
https://github.com/user-attachments/assets/d135a30a-fc5f-43e1-8cfd-616440e7180d
213213

214214
You can render any episode locally:
215215

@@ -231,7 +231,7 @@ The transform below is provided as a reference for aligning with the UMI coordin
231231

232232
| Dataset | World Forward | World Left | World Up | Local Forward | Local Left | Local Up | Gripper Open | Gripper Close |
233233
| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
234-
| **UMI** | +X | +Y | +Z | +Y | +Z | +X | 0 | 90 |
234+
| **UMI** | +X | +Y | +Z | +Z | +X | +Y | 0 | 90 |
235235
| **RoboTwin** | +Y | -X | +Z | +X | +Y | +Z | 1 | 0 |
236236
> **Note:** The gripper value represents the travel distance of the parallel gripper in millimeters (mm). `0` indicates the gripper is fully open, and `90` indicates it is fully closed.
237237

scripts/vis_robodojo_episode.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,6 @@ def _plot_triad(ax, origin, rot, length, colors):
497497
rot_l = R.from_quat(quat_l[t]).as_matrix()
498498
rot_r = R.from_quat(quat_r[t]).as_matrix()
499499

500-
sc_l._offsets3d
501500
sc_l._offsets3d = ([float(p_l[0])], [float(p_l[1])], [float(p_l[2])])
502501
sc_r._offsets3d = ([float(p_r[0])], [float(p_r[1])], [float(p_r[2])])
503502

@@ -508,19 +507,6 @@ def _plot_triad(ax, origin, rot, length, colors):
508507
if col not in (sc_l, sc_r): # preserve current-position markers
509508
col.remove()
510509

511-
if t == 455:
512-
DN = {0: "X", 1: "Y", 2: "Z"}
513-
def fmt(v):
514-
ma = np.argmax(np.abs(v)); s = "+" if v[ma] > 0 else "-"
515-
return f"{s}{DN[ma]}"
516-
print(f"\n[DEBUG frame {t}] UMI={umi_coord_frame}")
517-
if umi_coord_frame:
518-
print(f" LEFT UMI: red(left)={fmt(rot_l[:,0])} green(up)={fmt(rot_l[:,1])} blue(fwd)={fmt(rot_l[:,2])}")
519-
print(f" RIGHT UMI: red(left)={fmt(rot_r[:,0])} green(up)={fmt(rot_r[:,1])} blue(fwd)={fmt(rot_r[:,2])}")
520-
else:
521-
print(f" LEFT native: red(fwd)={fmt(rot_l[:,0])} green(left)={fmt(rot_l[:,1])} blue(up)={fmt(rot_l[:,2])}")
522-
print(f" RIGHT native: red(fwd)={fmt(rot_r[:,0])} green(left)={fmt(rot_r[:,1])} blue(up)={fmt(rot_r[:,2])}")
523-
print()
524510
_plot_triad(ax_mk, p_l, rot_l, triad_len, TRIAD_L_COLORS)
525511
_plot_triad(ax_mk, p_r, rot_r, triad_len, TRIAD_R_COLORS)
526512

@@ -690,7 +676,6 @@ def render_video(
690676

691677
writer = imageio.get_writer(output_path, fps=fps, codec="libx264", format="FFMPEG")
692678
cursor_color = (40, 40, 40)
693-
font = cv2.FONT_HERSHEY_SIMPLEX
694679

695680
try:
696681
for t in tqdm(range(T), desc=f"Ep{episode_id}", unit="frame"):

0 commit comments

Comments
 (0)