update ros dep install
This commit is contained in:
parent
5e0067ef65
commit
0b130a6056
|
@ -6,24 +6,22 @@ This is a ros package that contains some examples of using Gibson Env with ros n
|
|||
## Preparation
|
||||
|
||||
1. Install ROS: in this package, we use navigation stack from ros kinetic. Please follow the [instructions](http://wiki.ros.org/kinetic/Installation/Ubuntu).
|
||||
2. Install ROS dependencies:
|
||||
```bash
|
||||
sudo apt-get install ros-kinetic-turtlebot-navigation
|
||||
sudo apt-get install ros-kinetic-nav2d
|
||||
sudo apt-get install ros-kinetic-map-server
|
||||
```
|
||||
3. Install gibson __from source__ following [installation guide](../../README.md) in __python2.7__. However, as ros only supports `python2.7` at the moment, you need to create python2.7 virtual environment instead of python3.5.
|
||||
4. If you use annaconda for setting up python environment, some tweaks of `PATH` and `PYTHONPATH` variable are required to avoid conflict. In particular:
|
||||
2. Install gibson __from source__ following [installation guide](../../README.md) in __python2.7__. However, as ros only supports `python2.7` at the moment, you need to create python2.7 virtual environment instead of python3.5.
|
||||
3. If you use annaconda for setting up python environment, some tweaks of `PATH` and `PYTHONPATH` variable are required to avoid conflict. In particular:
|
||||
1. For `PATH`: conda related needs to be removed from `PATH`
|
||||
```bash
|
||||
echo $PATH | grep -oP "[^:;]+" | grep conda ## Remove these paths from $PATH
|
||||
```
|
||||
2. For `PYTHONPATH`: `/usr/lib/python2.7/dist-packages/`, `/opt/ros/kinetic/lib/python2.7/dist-packages`(ros python libraries), `<anaconda installation root>/anaconda2/envs/py27/lib/python2.7/site-packages`(gibson dependencies) and `<gibson root>/gibson` need to be in `PYTHONPATH`.
|
||||
5. Finally, copy (or soft link) gibson-ros folder to your `catkin_ws/src` and run catkin_make to index gibson-ros package.
|
||||
4. Copy (or soft link) gibson-ros folder to your `catkin_ws/src` and run catkin_make to index gibson-ros package.
|
||||
```bash
|
||||
ln -s examples/ros/gibson-ros/ ~/catkin_ws/src/
|
||||
ln -s $PWD/examples/ros/gibson-ros/ ~/catkin_ws/src/
|
||||
cd ~/catkin_ws && catkin_make && cd -
|
||||
```
|
||||
5. Install `gibson-ros` dependencies:
|
||||
```bash
|
||||
rosdep install gibson-ros
|
||||
```
|
||||
|
||||
## Sanity check
|
||||
|
||||
|
|
|
@ -58,6 +58,10 @@
|
|||
<exec_depend>roscpp</exec_depend>
|
||||
<exec_depend>rospy</exec_depend>
|
||||
<exec_depend>std_msgs</exec_depend>
|
||||
<exec_depend>turtlebot_navigation</exec_depend>
|
||||
<exec_depend>map_server</exec_depend>
|
||||
<exec_depend>nav2d</exec_depend>
|
||||
<exec_depend>turtlebot_teleop</exec_depend>
|
||||
|
||||
|
||||
<!-- The export tag contains other, unspecified, tags -->
|
||||
|
|
Loading…
Reference in New Issue