Skip to content
This repository was archived by the owner on Nov 12, 2025. It is now read-only.

Commit 3880676

Browse files
committed
format code
1 parent 54936e5 commit 3880676

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

experiments/7_franka/eval_franka.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def main(args: Args):
125125
replay_images.append(frame)
126126
frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
127127
ego_frame_rgb = cv2.cvtColor(ego_frame, cv2.COLOR_BGR2RGB)
128-
replay_images.append(frame_rgb.copy()) # 只复制需要保存的帧
128+
replay_images.append(frame_rgb.copy())
129129

130130
eef_pose = np.asarray(last_state.O_T_EE, dtype=np.float32).reshape(4, 4).T
131131
eef_state = np.concatenate(
@@ -166,10 +166,10 @@ def main(args: Args):
166166

167167
pred_action_chunk = action_plan.popleft()
168168
action = pred_action_chunk
169-
# rotation_matrix = dft.euler2mat(action[3:6])
170-
# quat = dft.mat2quat(rotation_matrix)
171-
# axis_angle = dft.quat2axisangle(quat)
172-
# action[3:6] = axis_angle
169+
rotation_matrix = dft.euler2mat(action[3:6])
170+
quat = dft.mat2quat(rotation_matrix)
171+
axis_angle = dft.quat2axisangle(quat)
172+
action[3:6] = axis_angle
173173
action = convert_gripper_action(action)
174174

175175
robot_interface.control(

0 commit comments

Comments
 (0)