forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Transition to creating local copy of lerobot and copying overlay files
- Loading branch information
Showing
17 changed files
with
21,864 additions
and
1,522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
1,444 changes: 0 additions & 1,444 deletions
1,444
data/lerobot/notebooks/7-2_real-robot_configure-motors.ipynb
This file was deleted.
Oops, something went wrong.
60 changes: 0 additions & 60 deletions
60
data/lerobot/notebooks/7-3_real-robot_record-and-visualize.ipynb
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory where the script resides | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# Define the relative target directory (3 levels up, then into "data" directory based on script location) | ||
RELATIVE_TARGET_DIR="$SCRIPT_DIR/../../../data" | ||
|
||
# Resolve the absolute path to the target directory | ||
TARGET_DIR="$(realpath "$RELATIVE_TARGET_DIR")" | ||
|
||
# Define the GitHub repository URL | ||
REPO_URL="https://github.com/huggingface/lerobot.git" | ||
|
||
# Extract the repo name from the URL | ||
REPO_NAME=$(basename -s .git "$REPO_URL") | ||
|
||
# Full path to the target directory where the repo will be cloned | ||
CLONE_PATH="$TARGET_DIR/$REPO_NAME" | ||
|
||
# Check if the directory already exists | ||
if [ -d "$CLONE_PATH" ]; then | ||
echo "Directory $CLONE_PATH already exists. Skipping clone." | ||
else | ||
# Clone the repository | ||
git clone "$REPO_URL" "$CLONE_PATH" | ||
|
||
# Check if cloning was successful by verifying if the directory exists | ||
if [ ! -d "$CLONE_PATH" ]; then | ||
echo "Error: Failed to clone repository to $CLONE_PATH" | ||
exit 1 | ||
else | ||
echo "Repository cloned successfully to $CLONE_PATH." | ||
fi | ||
fi |
33 changes: 33 additions & 0 deletions
33
packages/robots/lerobot/copy_overlay_files_in_data_lerobot.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Get the directory where the script resides | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
|
||
# Define the overlay source directory (relative to where the script is located) | ||
OVERLAY_DIR="$SCRIPT_DIR/lerobot_overlay" | ||
|
||
# Define the relative target directory (3 levels up, then into "data/lerobot") | ||
RELATIVE_TARGET_DIR="$SCRIPT_DIR/../../../data/lerobot" | ||
|
||
# Resolve the absolute path to the target directory | ||
TARGET_DIR="$(realpath "$RELATIVE_TARGET_DIR")" | ||
|
||
# Check if the overlay directory exists | ||
if [ ! -d "$OVERLAY_DIR" ]; then | ||
echo "Overlay directory $OVERLAY_DIR does not exist." | ||
exit 1 | ||
fi | ||
|
||
# Check if the target directory exists | ||
if [ ! -d "$TARGET_DIR" ]; then | ||
echo "[Error] Target directory $TARGET_DIR does not exist." | ||
echo " " | ||
echo "Run 'clone_lerobot_dir_under_data.sh' first." | ||
exit 1 | ||
fi | ||
|
||
# Copy the contents from the overlay directory to the target directory | ||
echo "Copying files from $OVERLAY_DIR to $TARGET_DIR" | ||
cp -r "$OVERLAY_DIR"/* "$TARGET_DIR" | ||
|
||
echo "Files copied successfully!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
packages/robots/lerobot/lerobot_overlay/.cache/calibration/koch/main_follower.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"homing_offset": [ | ||
2048, 3072, 3072, 2048, -1024, 2048 | ||
], | ||
"drive_mode": [ | ||
1, 1, 1, 1, 0, 1 | ||
], | ||
"start_pos": [ | ||
2024, 3067, 2987, 2079, 1012, 2080 | ||
], | ||
"end_pos": [ | ||
-1034, -2065, -2047, -1013, 1979, -1072 | ||
], | ||
"calib_mode": [ | ||
"DEGREE", "DEGREE", "DEGREE", "DEGREE", "DEGREE", "DEGREE" | ||
], | ||
"motor_names": [ | ||
"shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper" | ||
] | ||
} |
20 changes: 20 additions & 0 deletions
20
packages/robots/lerobot/lerobot_overlay/.cache/calibration/koch/main_leader.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"homing_offset": [ | ||
2048, 3072, -1024, -2048, 1024, -2048 | ||
], | ||
"drive_mode": [ | ||
1, 1, 0, 0, 0, 0 | ||
], | ||
"start_pos": [ | ||
2033, 2957, 1119, 1967, -1037, 1920 | ||
], | ||
"end_pos": [ | ||
-1054, -2034, 2095, 3063, -63, 2680 | ||
], | ||
"calib_mode": [ | ||
"DEGREE", "DEGREE", "DEGREE", "DEGREE", "DEGREE", "DEGREE" | ||
], | ||
"motor_names": [ | ||
"shoulder_pan", "shoulder_lift", "elbow_flex", "wrist_flex", "wrist_roll", "gripper" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.