-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from jerryz123/docs
Filled in docs for state, env, and objects
- Loading branch information
Showing
16 changed files
with
336 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
Environments | ||
============ | ||
|
||
The UrbanDrivingEnvironment Class | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: gym_urbandriving.UrbanDrivingEnv | ||
:members: _step, _reset, _render | ||
|
||
Ray Integration | ||
^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ This is Berkeley AUTOLAB's Urban Driving Simulator. | |
environment.rst | ||
state.rst | ||
objects.rst | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
States | ||
====== | ||
|
||
The Abstract PositionState | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: gym_urbandriving.state.PositionState | ||
:members: get_collisions, collides_any, min_dist_to_coll | ||
|
||
The Simple Intersection | ||
^^^^^^^^^^^^^^^^^^^^^^^ | ||
.. autoclass:: gym_urbandriving.state.SimpleIntersectionState | ||
:members: randomize |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,22 @@ | ||
from gym_urbandriving.assets.primitives.rectangle import Rectangle | ||
|
||
class Street(Rectangle): | ||
def __init__(self, x, y, xdim, ydim, angle=0.0, sprite="black.png"): | ||
Rectangle.__init__(self, x, y, xdim, ydim, angle=0.0, sprite=sprite, static=True); | ||
""" | ||
Represents a block of street. Passable for cars and pedestrians. | ||
Does not have directionality associated with it, so use this for | ||
the middle of an intersection | ||
Parameters | ||
---------- | ||
x : float | ||
Upper left x coordinate of the street block | ||
y : float | ||
Upper left y coordinate of the street block | ||
xdim : float | ||
Width of the street block | ||
ydim : float | ||
Height of the street block | ||
""" | ||
def __init__(self, x, y, xdim, ydim): | ||
Rectangle.__init__(self, x, y, xdim, ydim, angle=0.0, sprite="black.png", static=True); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.