Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Habitat Lab
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
Meta Research
Habitat Lab
Commits
43ab7241
Commit
43ab7241
authored
5 years ago
by
Erik Wijmans
Committed by
Oleksandr
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix quickstart keys commands (#147)
* Fix quickstart
parent
38be0f53
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/source/tutorials/quickstart.md
+5
-5
5 additions, 5 deletions
docs/source/tutorials/quickstart.md
with
5 additions
and
5 deletions
docs/source/tutorials/quickstart.md
+
5
−
5
View file @
43ab7241
...
...
@@ -50,16 +50,16 @@ def example():
keystroke
=
cv2
.
waitKey
(
0
)
if
keystroke
==
ord
(
FORWARD_KEY
):
action
=
0
action
=
habitat
.
SimulatorActions
.
MOVE_FORWARD
print
(
"
action: FORWARD
"
)
elif
keystroke
==
ord
(
LEFT_KEY
):
action
=
1
action
=
habitat
.
SimulatorActions
.
TURN_LEFT
print
(
"
action: LEFT
"
)
elif
keystroke
==
ord
(
RIGHT_KEY
):
action
=
2
action
=
habitat
.
SimulatorActions
.
TURN_RIGHT
print
(
"
action: RIGHT
"
)
elif
keystroke
==
ord
(
FINISH
):
action
=
3
action
=
habitat
.
SimulatorActions
.
STOP
print
(
"
action: FINISH
"
)
else
:
print
(
"
INVALID KEY
"
)
...
...
@@ -74,7 +74,7 @@ def example():
print
(
"
Episode finished after {} steps.
"
.
format
(
count_steps
))
if
action
==
3
and
observations
[
"
pointgoal
"
][
0
]
<
0.2
:
if
action
==
habitat
.
SimulatorActions
.
STOP
and
observations
[
"
pointgoal
"
][
0
]
<
0.2
:
print
(
"
you successfully navigated to destination point
"
)
else
:
print
(
"
your navigation was unsuccessful
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment