- Home robot - Demo branch
- Spot sim2real - Jay's fork with no_habitat branch
git clone https://github.com/facebookresearch/home-robot.git --recursive
cd home-robot && git checkout demo_grasp
echo 'alias HOME_ROBOT_ROOT=<path/to/home-robot>' >> ~/.bashrc
source ~/.bashrc
git submodule update --init --recursive src/home_robot/home_robot/perception/detection/detic/Detic src/third_party/detectron2 src/third_party/contact_graspnet src/third_party/habitat-lab src/third_party/spot-sim2real src/third_party/MiDaS src/home_robot/home_robot/agent/imagenav_agent/SuperGluePretrainedNetwork
- If this command doesn't add all the submodules
git submodule update -f src/home_robot/home_robot/perception/detection/detic/Detic src/third_party/detectron2 src/third_party/contact_graspnet src/third_party/habitat-lab src/third_party/spot-sim2real src/third_party/MiDaS src/home_robot/home_robot/agent/imagenav_agent/SuperGluePretrainedNetwork
mamba env create -n home-robot -f projects/vlm_planning/environment.yaml
If mamba
not found, conda install -c conda-forge mamba --yes
conda activate home-robot
pip install -e src/home_robot/.
pip install -e src/home_robot_hw/.
pip install -e src/home_robot_spot/.
Change this env variable to your cuda -- CUDA_HOME=/usr/local/cuda-<version_tag>
cd src/third_party/spot-sim2real
git checkout no_habitat
cd bd_spot_wrapper/
python generate_executables.py
pip install -e .
cd ../spot_rl_experiments
python generate_executables.py
pip install -e .
pip install bosdyn-api bosdyn-client transforms3d einops gym==0.23.1 vtk scikit-image open3d natsort scikit-fmm pandas==2.1.1 atomicwrites loguru
- Make sure you are on the master branch
cd $HOME_ROBOT_ROOT/src/third_party/MiDaS
git checkout master
git pull origin
- Install weights
cd weights
wget https://github.com/isl-org/MiDaS/releases/download/v3_1/dpt_beit_large_512.pt
- Packages
cd ../
pip install -e .
pip install imutils
cd $HOME_ROBOT_ROOT/src/third_party/habitat-lab
pip install -e habitat-lab
mamba install habitat-sim headless -c conda-forge -c aihabitat --yes
pip install -r src/home_robot/home_robot/agent/imagenav_agent/SuperGluePretrainedNetwork/requirements.txt
cd src/home_robot/home_robot/perception/detection/detic/Detic
pip install -r requirements.txt
mkdir models
wget https://dl.fbaipublicfiles.com/detic/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth -O models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth
wget https://eecs.engin.umich.edu/~fouhey/fun/desk/desk.jpg
python demo.py --config-file configs/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.yaml --input desk.jpg --output out.jpg --vocabulary lvis --opts MODEL.WEIGHTS models/Detic_LCOCOI21k_CLIP_SwinB_896b32_4x_ft4x_max-size.pth
cd $HOME_ROBOT_ROOT
pip install -e src/third_party/detectron2/.
Set CUDA_HOME=/usr/local/cuda-<VERSION>/
and install again
- Install cuda from this website and select the correct version tag when installing cuda.
pip install --no-binary opencv-python opencv-python
git clone https://github.com/pybind/pybind11.git
cd pybind11
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install/
make -j8
make install
pybind11_DIR=$PWD/../install/share/cmake/pybind11/ pip3 install --user sophuspy