Skip to main content

This is an environment for RL purposes

Project description

Household-env

This is a gym environment that represents a robot agent in a household environment for RL purposes.

Table of Contents

How to run it
Observation space
Action space
Tasks

How to run it

To run an example of the environment first install it and then run the dummy file.

#!/bin/bash
pip install -e Household-env 
python3 dummy.py

Observation space

The robot has a vision grid of 7x7. The vision grid inputs will return values that represent the content of that cell.

The tasks encoding is binary instead of label encoding (0: task1, 1: task2...) because there is no ordering for the tasks, but the alg. might think there is.

Note: We could do the same for the vision grid, but then the observation space would increase a lot (48*3=147 for for only 7 representable objects )

Num Observation Min Max
0 x_coord_robot 0 19
1 y_coord_robot 0 19
2 task_encoding 0 1
... ...
6 task_encoding 0 1
7 1st action 0 8
8 2nd action 0 8
9 3rd action 0 8
10 4th action 0 8
(vision not yet)
11 vision_grid 0 1
.. .. 0 1
58 vision_grid 0 1

Objects will return the following values when within range of the 7x7 vision grid.

Num Object
0 Nothing
1 wall
2 TV
3 couch
4 bed
5 fridge
6 dishwasher
7 person

Action space

Only one action can be taken at each time step. The Num of the action to be taken is passed as the argument to the step function.

Num Action Min Max
0 move_up 0 1
1 move_down 0 1
2 move_left 0 1
3 move_right 0 1
4 (A) extend_arm 0 1
5 (B) retract_arm 0 1
6 (C) grasp 0 1
7 (D) drop 0 1
8 (E) push 0 1

Tasks

The tasks encoding is binary instead of label encoding (0: task1, 1: task2...) because there is no ordering for the tasks, but the alg. might think there is. We currently use 5 units so up to 31 tasks.

Num Action Binary encoded
0 No tasks 00000
1 Turn on TV 00001
2 Bring user a drink 00010
3 Make beds 00011

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

householdenv-0.0.3.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

householdenv-0.0.3-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file householdenv-0.0.3.tar.gz.

File metadata

  • Download URL: householdenv-0.0.3.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for householdenv-0.0.3.tar.gz
Algorithm Hash digest
SHA256 7f1a1c38e8f5e1ba6d52b26e6225ccf7e2b9a852698348dec8f39a860b468adf
MD5 a2e7c3a710e9a99793af2517714d8e85
BLAKE2b-256 bbae513479ed88d39c15a2ca5f29a6db0cc57a94609bcc77b3d7a6f89456af81

See more details on using hashes here.

File details

Details for the file householdenv-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: householdenv-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.5

File hashes

Hashes for householdenv-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 db1cfba96a098fb5035e5fa481c726f5e2defa3bbf1bc40fef0c9982679d4eff
MD5 8ef9a41d8e786390f9bf7fe9d4fa7a8b
BLAKE2b-256 6060449f0f38905dbacc41965d3c7c415ef7ee99805e82b48fc80f6d7e1706df

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page