Skip to content

Commit

Permalink
Update the documentation to explain new features.
Browse files Browse the repository at this point in the history
- Add command demos into commands_demo.ipynb
- Add command help text into commands.rst
- Upgrade plugin version
  • Loading branch information
qiuwch committed Oct 18, 2017
1 parent 1388521 commit 5bebff4
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UnrealCV.uplugin
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"FileVersion" : 3,
"Version" : 4,
"VersionName": "0.3.9",
"VersionName": "0.3.10",
"FriendlyName": "Unreal CV",
"Description": "UnrealCV is a plugin to connect computer vision algorithm and the games built by Unreal Engine",
"Category" : "Science",
Expand Down
39 changes: 39 additions & 0 deletions docs/reference/commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,24 @@ vset /viewmode [viewmode]
vget /viewmode
(v0.2) Get current ViewMode

vget /camera/[id]/pose
(v0.3.10) Get camera location [x, y, z] and rotation [pitch, yaw, roll]

vset /camera/[id]/pose [x] [y] [z] [pitch] [yaw] [roll]
(v0.3.10) Teleport camera to location [x, y, z] and rotation [pitch, yaw, roll]

vget /camera/[uint]/horizontal_fieldofview
(v0.3.10) Get camera horizontal field of view

vset /camera/[uint]/horizontal_fieldofview [FOV]
(v0.3.10) Set camera horizontal field of view

vget /camera/[uint]/vis_depth npy
(v0.3.10)

vget /camera/[uint]/plane_depth npy
(v0.3.10)

2. Object interaction
---------------------

Expand All @@ -70,6 +88,12 @@ vget /object/[obj_name]/color
vset /object/[obj_name]/color [r] [g] [b]
(v0.2) Set the labeling color of an object

vset /object/[str]/show
(v0.3.10) Show object

vset /object/[str]/hide
(v0.3.10) Hide object

3. Plugin commands
------------------

Expand All @@ -89,6 +113,21 @@ See :file:`Source/UnrealCV/Private/Commands/ActionHandler.h(.cpp)`
vset /action/keyboard [key_name] [delta]
(v0.3.6) Valid key_name can be found in `here <https://wiki.unrealengine.com/List_of_Key/Gamepad_Input_Names>`__

vset /action/game/pause
(v0.3.10) Pause the game

vset /action/game/level [level_name]
(v0.3.10) Open a new level

vset /action/input/enable
(v0.3.10) Enable input

vset /action/input/disable
(v0.3.10) Disable input

vset /action/eyes_distance [eye_distance]
(v0.3.10) Set the eye distance between left eye and right eye (camera 1). This command might be marked as deprecated when we finish multiple camera support.

Run UE4 built-in commands
-------------------------

Expand Down
3 changes: 0 additions & 3 deletions docs/reference/commands_demo.ipynb

This file was deleted.

3 changes: 3 additions & 0 deletions examples/commands_demo.ipynb
Git LFS file not shown

0 comments on commit 5bebff4

Please sign in to comment.