Commit 3714786e authored by YaningGao's avatar YaningGao
Browse files

Merge branch 'main' of github.com:RAGEN-AI/vagen

parents 9947e439 78a55f1c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -64,7 +64,10 @@ cd ../
git clone https://github.com/RAGEN-AI/VAGEN.git
cd VAGEN
bash scripts/install.sh
# This script installs dependencies for Frozenlake and Sokoban, for other environments, please refer to vagen/env/README.md and uncomment the registration in vagen/env/__init__.py
```


## Examples

**Note:** VAGEN currently supports several environments: sokoban, frozenlake, svg, navigation, and primitive skill. 
+1 −11
Original line number Diff line number Diff line
@@ -32,14 +32,4 @@ echo "Installing Frozenlake dependencies"
pip install 'gymnasium'
pip install "gymnasium[toy-text]"

# echo "Installing Navigation dependencies"
# pip install ai2thor==5.0.0
# pip install numpy==1.25.1

# echo "Installing SVG dependencies"
# pip install "bs4"
# pip install "svgpathtools"
# pip install "cairosvg"
# pip install "dreamsim"

echo "Installation complete!"
 No newline at end of file
echo "Installation complete, to install dependencies for other environments, refer to env/readme!"
+25 −10
Original line number Diff line number Diff line
## For Development Usage
## For Debugging
```
# Start a General Server in debug mode
python vagen/env/server.py --debug
```

## Environment Installation
### SVG
```
pip install "bs4"
pip install "svgpathtools"
pip install "cairosvg"
pip install "dreamsim"

# Probably you also need:
sudo apt-get update && sudo apt-get install -y libcairo2
```

### Navigation
```
pip install ai2thor==5.0.0
pip install numpy==1.25.1

# Refer to https://github.com/EmbodiedBench/EmbodiedBench, probably you also need:
sudo apt-get update && sudo apt-get -y install libvulkan1
sudo apt install vulkan-tools
```

Below is outdated for backup purpose:
```
# For headless servers, additional setup is required:
# Install required packages
#apt-get install -y pciutils
#apt-get install -y xorg xserver-xorg-core xserver-xorg-video-dummy
apt-get install -y pciutils
apt-get install -y xorg xserver-xorg-core xserver-xorg-video-dummy
#Start X server in a tmux window
#python vagen/env/navigation/startx.py 1

sudo apt-get -y install libvulkan1
sudo apt install vulkan-tools
python vagen/env/navigation/startx.py 1
```

### Manipulation
### PrimitiveSkill
```
#sudo apt-get update && sudo apt-get install -y libx11-6
#sudo apt-get update && sudo apt-get install -y libgl1-mesa-glx
pip install --upgrade mani_skill
python -m mani_skill.utils.download_asset "PickSingleYCB-v1"
python -m mani_skill.utils.download_asset partnet_mobility_cabinet

# Refer to https://github.com/haosulab/ManiSkill, probably you also need:
sudo apt-get update && sudo apt-get install -y libx11-6
sudo apt-get update && sudo apt-get install -y libgl1-mesa-glx
```
+4 −4
Original line number Diff line number Diff line
from .sokoban import SokobanEnv,SokobanEnvConfig
from .frozenlake import FrozenLakeEnv,FrozenLakeEnvConfig, FrozenLakeService
from .navigation import NavigationEnv, NavigationEnvConfig, NavigationServiceConfig, NavigationService
from .svg import SVGEnv, SvgEnvConfig, SVGService, SVGServiceConfig
from .primitive_skill import PrimitiveSkillEnv, PrimitiveSkillEnvConfig, PrimitiveSkillService, PrimitiveSkillConfig
# from .navigation import NavigationEnv, NavigationEnvConfig, NavigationServiceConfig, NavigationService
# from .svg import SVGEnv, SvgEnvConfig, SVGService, SVGServiceConfig
# from .primitive_skill import PrimitiveSkillEnv, PrimitiveSkillEnvConfig, PrimitiveSkillService, PrimitiveSkillServiceConfig

REGISTERED_ENV = {
    "sokoban": {
@@ -30,6 +30,6 @@ REGISTERED_ENV = {
    #     "env_cls": PrimitiveSkillEnv,
    #     "config_cls": PrimitiveSkillEnvConfig,
    #     "service_cls": PrimitiveSkillService,
    #     "service_config_cls": PrimitiveSkillConfig
    #     "service_config_cls": PrimitiveSkillServiceConfig
    # }
}
 No newline at end of file
+1 −1
Original line number Diff line number Diff line
from .env import PrimitiveSkillEnv
from .env_config import PrimitiveSkillEnvConfig
from .service import PrimitiveSkillService
from .service_config import PrimitiveSkillConfig
 No newline at end of file
from .service_config import PrimitiveSkillServiceConfig
 No newline at end of file
Loading