Prerequisites
- Setup lasr-robot environment - https://github.com/lasr-lab/lasr-robot
- Setup sparsh environment - https://github.com/facebookresearch/sparsh
- Download mae_vit base checkpoint file and place it in checkpoints folder
For teleoperating the arm pose and allegro hand [Data Collection]
- Launch Allegro hand node (rossallegro env)
- Launch Plucking_nodes node (rossallegro env)
- Run cetiglove/mainTeleoperate.py (test env)
- Run cetiglove/simpleAllegro.py (test env)
- Run cetiglove/mainSubscriber.py (test env) Note - Glove publisher should be uncommented in Plucking_nodes launch file
For training model [Imitation Learning]
- Activate tactile_ssl env (from Sparsh setup)
- Run each class script placed in the sparsh folder, uncommenting the main function using the command shown below in terminal python modelxxxxx.py +experiment=mae_vit
For Realtime inference and deployment [Demonstrations]
- Launch Allegro hand node (rossallegro env)
- Launch Plucking_nodes node (rossallegro env)
- Run sparsh/pluckingModelInference.py +experiment=mae_vit (tactile_ssl env)
- Run cetiglove/allegroPubsSubs.py (test env)
- Run cetiglove/xArmPubsSubs.py (test env) Note - Glove publisher should be commented and Yolo camera node uncommented in Plucking_nodes launch file