Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
navipy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository 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
Olivier Bertrand
navipy
Commits
77da8c09
Commit
77da8c09
authored
7 years ago
by
Olivier Bertrand
Browse files
Options
Downloads
Patches
Plain Diff
Correct doc
parent
c0340f7f
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
doc/source/moving.rst
+1
-0
1 addition, 0 deletions
doc/source/moving.rst
navipy/__init__.py
+2
-2
2 additions, 2 deletions
navipy/__init__.py
navipy/moving/__init__.py
+1
-0
1 addition, 0 deletions
navipy/moving/__init__.py
navipy/moving/agent.py
+4
-0
4 additions, 0 deletions
navipy/moving/agent.py
with
8 additions
and
2 deletions
doc/source/moving.rst
+
1
−
0
View file @
77da8c09
...
...
@@ -7,6 +7,7 @@ Overview
Close-loop agent
****************
Online rendering
================
.. autoclass:: navipy.moving.agent.CyberBeeAgent
...
...
This diff is collapsed.
Click to expand it.
navipy/__init__.py
+
2
−
2
View file @
77da8c09
...
...
@@ -29,12 +29,12 @@ To control, an agent, the Brain should have a function called velocity.
For example, an stationary agent should always return a null velocity.
.. literalinclude:: example/brain/static_brain.py
:lines: 3,
7
-1
5
:lines: 3,
9
-1
7
An agent using an average skyline homing vector, could be build as follow
.. literalinclude:: example/brain/asv_brain.py
:lines:
3,7
-3
4
:lines:
4-5,11
-3
6
"""
from
navipy.database
import
DataBaseLoad
...
...
This diff is collapsed.
Click to expand it.
navipy/moving/__init__.py
+
1
−
0
View file @
77da8c09
...
...
@@ -7,6 +7,7 @@ A standard method to move an agent is to update:
2. deduce the agent motion :math:`vdt` from this information
3. displace the agent by motion ( :math:`x
\r
ightarrow x + vdt`)
The use of a close loop model including visual rendering is
\
sometimes too slow to efficiently test several models or tune the
\
parameters of a given models. The GridAgent solves this problem by
\
...
...
This diff is collapsed.
Click to expand it.
navipy/moving/agent.py
+
4
−
0
View file @
77da8c09
...
...
@@ -146,6 +146,8 @@ GridAgent is a close loop agent here its position is snap to a grid.
GridAgent inherit from the Process
\
class of the multiprocessing module of the standard python
\
library. Thus, several GridAgents can safely be run in parallel.
"""
def
__init__
(
self
,
brain
,
...
...
@@ -249,6 +251,8 @@ class GraphAgent():
1. pre-rendered scene from a database to derive
\
the agent motion, or
2. pre-computed agent-motion
"""
def
__init__
(
self
,
brain
):
...
...
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