Skip to content
Snippets Groups Projects
Commit ea2bba87 authored by Olivier Bertrand's avatar Olivier Bertrand
Browse files

Update doc

parent a9734938
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ Content ...@@ -26,7 +26,7 @@ Content
tutorials/index tutorials/index
references/index references/index
tests/index tests/index
Indices and tables Indices and tables
================== ==================
......
...@@ -9,6 +9,6 @@ Tests ...@@ -9,6 +9,6 @@ Tests
sensors sensors
processing processing
comparing comparing
moving
database database
maths maths
arenatools
Moving
======
Agents
~~~~~~
.. automodule:: navipy.moving.test_agent
:members:
Maths
~~~~~
.. automodule:: navipy.moving.test_maths
:members:
How to generate a database using blender
----------------------------------------
.. literalinclude:: examples/blenddemo_beesampling.py
:lines: 7, 8
First we configure the rendering module
.. literalinclude:: examples/blenddemo_beesampling.py
:lines: 11, 12
With the toolbox at disposition we just need to configure the \
BeeSampling to render images on a regular 3D grid.
.. literalinclude:: examples/blenddemo_beesampling.py
:lines: 13,16-23
If we want to use the distance to objects, we need to tell the \
BeeSampling what is the maximum distance to objects in the environment.\
Otherwise the distance can go until infinity, and since the image are \
compressed in the database, all distances to object will be equal to \
zero:
.. literalinclude:: examples/blenddemo_beesampling.py
:lines: 27-28
Finally we can generate the database.
.. literalinclude:: examples/blenddemo_beesampling.py
:dedent: 4
:lines: 31-32
(:download:`Source code <examples/blenddemo_beesampling.py>`)
(:download:`Blender world <../../../navipy/resources/forest_world.blend>`)
This diff is collapsed.
Render a single image
---------------------
.. literalinclude:: examples/blenddemo_cyberbee.py
:lines: 5
With the toolbox at disposition we just need to configure the \
Cyberbee to render images at desired positions.
.. literalinclude:: examples/blenddemo_cyberbee.py
:lines: 8-13
To render a scene at a given positions, we assign position orientation \
to and then tell the cyberbee to get the scene at that point.
.. literalinclude:: examples/blenddemo_cyberbee.py
:lines: 16-24
(:download:`Source code <examples/blenddemo_cyberbee.py>`)
(:download:`Blender world <../../../navipy/resources/forest_world.blend>`)
Create a movie
--------------
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment