ros_x_habitat
ros_x_habitat copied to clipboard
Installation Issues
ROS x Habitat Installation Instructions
Create and Activate Conda Environment
cd ~
mkdir rosxhab
cd rosxhab
mkdir src
cd src
git clone https://github.com/ericchen321/ros_x_habitat.git
cd ros_x_habitat
conda create -n rosxhab python=3.6.13 cmake=3.14.0 -y
conda activate rosxhab
pip install --upgrade pip
pip install -r requirements.txt
Install Habitat-Sim
cd ~
git clone https://github.com/facebookresearch/habitat-sim.git
cd habitat-sim
git checkout v0.2.0
pip install -r requirements.txt
conda install habitat-sim=0.2.0 withbullet -c conda-forge -c aihabitat -y
Install Habitat-Lab
cd ~
git clone https://github.com/facebookresearch/habitat-lab.git
cd habitat-lab
git checkout v0.2.0
pip install -r requirements.txt
python setup.py develop --all
Build ROS Package
cd ~/rosxhab
pip install empy==3.3.4
catkin build
Error at ros_x_hab
: Unable to install dependencies using pip install -r requirements.txt
When attempting to install dependencies with the command pip install -r requirements.txt
, the following error is encountered:
INFO: pip is looking at multiple versions of gitpython to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 3) and numpy==1.19.5 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested numpy==1.19.5
imageio 2.16.0 depends on numpy>=1.20.0
Hi @AnshShah3009 thanks for reporting the issue. I tried downgrading imageio
to 2.15.0 and changed requirements.txt
, and it seems to work. Could you try starting from Step 3 again?
I modified the requirements.txt file and executed the script in a fresh conda environment. Everything proceeded smoothly until the catkin build. Should I build the workspace with our conda environment activated? Additionally, we need to include a step to install ROS and Empy into our environment. but still the build did not complete. Any suggestions?
Update: I installed a particular version of empy and it got built, I will let you know if the package is functional at my end.
pip install empy==3.3.4
@AnshShah3009 I recall it not building within the conda environment. I had to do so from outside it.
@AnshShah3009 I don't have a machine to test that step but if I remeber correctly ROS Noetic's Python dependency builds upon Python 2 whereas the conda environment runs Python 3.6. So I guess the proper way to build is doing so from outside conda.