Integrate Habitat simulator with ROS
- ROS version at least Kinetic
- CMake version at least 2.8.3
- Python version at least 3.4
- Habitat simulator
- Python packages: numpy, gym, keyboard, cv_bridge
-
Install ROS on your system (https://www.ros.org/install/).
-
Clone this repo into your ROS workspace (e.g.
~/catkin_ws/src
), and runcatkin_make
. -
Download and build Habitat-sim and Habitat-lab.
-
Install required Python packages:
pip install -r requirements.txt
-
In file
habitat-lab/habitat/tasks/nav/nav.py
, find methodstep
in classStopAction
, and change linetask.is_stop_called = True
totask.is_stop_called=False
in code of this method. -
Rebuild habitat-lab.
-
Open terminal and enable root (e.g. via
sudo su
command). -
Run agent in simulator with keyboard operation via
roslaunch habitat_ros keyboard_agent.launch
.
- rgb_topic (default: None) - topic to publish RGB image from simulator
- depth_topic (default: None) - topic to publish depth image from simulator
- camera_info_topic (default: None) - topic to publish information about camera calibration (read from file)
- camera_calib (default: None) - path to camera calibration file