Inside this folder, you can find various scripts for data collection and robot teleoperation. This folder contains:
.scripts/
|-- episode_generator_picking # Controls the simulated robot during data collection
|-- episode_manager # Manages data saving in real environments
|-- episode_recorder # Saves episodes during data collection
|-- keyboard_teleop # Controls the robot via keyboard teleoperation
|-- lite6_parallel_gripper_controller # Run this to open/close the gripper
|-- save_parquet # Saves collected data in parquet format
|-- sixd_speed_limiter # Splits the path into smaller segments to prevent jerks
|-- space_teleop # Controls the robot via space mouse teleoperation
Note
We support two datasets in Parquet format, collected from both real and simulated environments. You can find these datasets inside the imitation/data folder. Currently, we support the collection of:
- Images: RGB images sized 96x96 pixels
- Current Pose and Actions: Vectors containing six values in the format [x,y,z,yaw,pitch,roll].
If you want to change the data format, you can do so directly during data collection in the episode_recorder script or while saving in parquet format.
To collect data in a simulated environment, follow these steps:
- Run the script to save the episode data:
./episode_recorder --data_dir FILE_NAME
- Run the script to control the simulated robot:
./episode_generator_picking
To collect data from a real robot, use the following steps:
- Start the episode manager to manage data saving:
./episode_manager
- Record the episode data:
./episode_recorder --data_dir FILE_NAME
- Choose a teleoperation method to control the robot:
- Space Mouse Teleoperation:
./space_teleop
- Keyboard Teleoperation:
./keyboard_teleop
Note:
- Using the episode_manager, you can control when an episode starts, ends, and where breakpoints occur during an episode.
To save the collected data in the proper format, run the following command:
./save_parquet --data_path DATA_PATH
This will save your data in parquet format, ensuring efficient storage and compatibility for further processing. Saved file you need to move inside imitation/data
folder.