Skip to content

Commit a1d0eab

Browse files
committed
Fix concatenation script
1 parent 5f80553 commit a1d0eab

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

scripts/concatenate_joint_data.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ def main():
3939
if not dir.is_dir():
4040
continue
4141
logging.info(f"Loading joint data from {dir}.")
42-
joint_data_raw = JointData.load_from_disk(dir)
43-
joint_data_raw.joint_accelerations = (
44-
np.zeros_like(joint_data_raw.joint_positions) * np.nan
45-
)
46-
joint_data = joint_data_raw.remove_duplicate_samples()
42+
joint_data = JointData.load_from_disk(dir)
4743
joint_datas.append(joint_data)
4844

4945
sample_period = joint_datas[0].sample_times_s[1] - joint_datas[0].sample_times_s[0]

scripts/evaluate_traj_torque_error.py

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def main():
2828
parser.add_argument(
2929
"--joint_data_path",
3030
type=Path,
31+
required=True,
3132
help="Path to the joint data folder. The folder must contain "
3233
+ "`joint_positions.npy`, `joint_velocities.npy`, `joint_accelerations.npy`, "
3334
+ "`joint_torques.npy`, and `sample_times_s.npy`. NOTE: Only one of "

0 commit comments

Comments
 (0)