Skip to content

Commit f1c83c0

Browse files
committed
Merge branch 'pyzed_documentation'
2 parents 86e2cbe + 4407437 commit f1c83c0

File tree

12 files changed

+4244
-28
lines changed

12 files changed

+4244
-28
lines changed

doc/Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Minimal makefile for Sphinx documentation
2+
#
3+
4+
# You can set these variables from the command line.
5+
SPHINXOPTS =
6+
SPHINXBUILD = sphinx-build
7+
SOURCEDIR = source
8+
BUILDDIR = build
9+
10+
# Put it first so that "make" without argument is like "make help".
11+
help:
12+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
13+
14+
.PHONY: help Makefile
15+
16+
# Catch-all target: route all unknown targets to Sphinx using the new
17+
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
18+
%: Makefile
19+
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

doc/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sphinx
2+
sphinx_rtd_theme

doc/source/allclasses.rst

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
===========
2+
All Classes
3+
===========
4+
5+
Here are the classes, structs, unions and interfaces with brief descriptions:
6+
7+
.. currentmodule:: pyzed.sl
8+
9+
.. autosummary::
10+
:template: classes.rst
11+
:toctree: stubs
12+
13+
CalibrationParameters
14+
Camera
15+
CameraInformation
16+
CameraParameters
17+
Chunk
18+
DeviceProperties
19+
IMUData
20+
InitParameters
21+
InputType
22+
Mat
23+
Matrix3f
24+
Matrix4f
25+
Mesh
26+
MeshFilterParameters
27+
Orientation
28+
Plane
29+
Pose
30+
Resolution
31+
Rotation
32+
RuntimeParameters
33+
SpatialMappingParameters
34+
Texture
35+
TrackingParameters
36+
Transform
37+
Translation
38+

doc/source/conf.py

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# -*- coding: utf-8 -*-
2+
#
3+
# Configuration file for the Sphinx documentation builder.
4+
#
5+
# This file does only contain a selection of the most common options. For a
6+
# full list see the documentation:
7+
# http://www.sphinx-doc.org/en/master/config
8+
9+
# -- Path setup --------------------------------------------------------------
10+
11+
# If extensions (or modules to document with autodoc) are in another directory,
12+
# add these directories to sys.path here. If the directory is relative to the
13+
# documentation root, use os.path.abspath to make it absolute, like shown here.
14+
#
15+
import os
16+
import sys
17+
sys.path.insert(0, os.path.abspath('..'))
18+
19+
20+
# -- Project information -----------------------------------------------------
21+
22+
project = 'ZED Python API'
23+
copyright = '2018, Stereolabs'
24+
author = 'Stereolabs'
25+
26+
# The short X.Y version
27+
version = '2.7'
28+
# The full version, including alpha/beta/rc tags
29+
release = version
30+
31+
32+
# -- General configuration ---------------------------------------------------
33+
34+
# If your documentation needs a minimal Sphinx version, state it here.
35+
#
36+
# needs_sphinx = '1.0'
37+
38+
# Add any Sphinx extension module names here, as strings. They can be
39+
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
40+
# ones.
41+
42+
autosummary_generate = True
43+
44+
extensions = [
45+
'sphinx.ext.autodoc',
46+
'sphinx.ext.autosummary',
47+
]
48+
49+
# Add any paths that contain templates here, relative to this directory.
50+
templates_path = ['pyzedtemplates']
51+
52+
# The suffix(es) of source filenames.
53+
# You can specify multiple suffix as a list of string:
54+
#
55+
# source_suffix = ['.rst', '.md']
56+
source_suffix = '.rst'
57+
58+
# The master toctree document.
59+
master_doc = 'index'
60+
61+
# The language for content autogenerated by Sphinx. Refer to documentation
62+
# for a list of supported languages.
63+
#
64+
# This is also used if you do content translation via gettext catalogs.
65+
# Usually you set "language" from the command line for these cases.
66+
language = None
67+
68+
# List of patterns, relative to source directory, that match files and
69+
# directories to ignore when looking for source files.
70+
# This pattern also affects html_static_path and html_extra_path.
71+
exclude_patterns = []
72+
73+
# The name of the Pygments (syntax highlighting) style to use.
74+
pygments_style = None
75+
76+
77+
# -- Options for HTML output -------------------------------------------------
78+
79+
# The theme to use for HTML and HTML Help pages. See the documentation for
80+
# a list of builtin themes.
81+
#
82+
html_theme = 'sphinx_rtd_theme'
83+
84+
autodoc_member_order = 'bysource'
85+
# Theme options are theme-specific and customize the look and feel of a theme
86+
# further. For a list of options available for each theme, see the
87+
# documentation.
88+
#
89+
# html_theme_options = {}
90+
91+
# Add any paths that contain custom static files (such as style sheets) here,
92+
# relative to this directory. They are copied after the builtin static files,
93+
# so a file named "default.css" will overwrite the builtin "default.css".
94+
# html_static_path = ['pyzedstatic']
95+
96+
# Custom sidebar templates, must be a dictionary that maps document names
97+
# to template names.
98+
#
99+
# The default sidebars (for documents that don't match any pattern) are
100+
# defined by theme itself. Builtin themes are using these templates by
101+
# default: ``['localtoc.html', 'relations.html', 'sourcelink.html',
102+
# 'searchbox.html']``.
103+
#
104+
# html_sidebars = {}
105+
106+
107+
# -- Options for HTMLHelp output ---------------------------------------------
108+
109+
# Output file base name for HTML help builder.
110+
htmlhelp_basename = 'pyzeddoc'
111+
112+
113+
# -- Options for LaTeX output ------------------------------------------------
114+
115+
latex_elements = {
116+
# The paper size ('letterpaper' or 'a4paper').
117+
#
118+
# 'papersize': 'letterpaper',
119+
120+
# The font size ('10pt', '11pt' or '12pt').
121+
#
122+
# 'pointsize': '10pt',
123+
124+
# Additional stuff for the LaTeX preamble.
125+
#
126+
# 'preamble': '',
127+
128+
# Latex figure (float) alignment
129+
#
130+
# 'figure_align': 'htbp',
131+
}
132+
133+
# Grouping the document tree into LaTeX files. List of tuples
134+
# (source start file, target name, title,
135+
# author, documentclass [howto, manual, or own class]).
136+
latex_documents = [
137+
(master_doc, 'pyzed.tex', 'pyzed Documentation',
138+
author, 'manual'),
139+
]
140+
141+
142+
# -- Options for manual page output ------------------------------------------
143+
144+
# One entry per manual page. List of tuples
145+
# (source start file, name, description, authors, manual section).
146+
man_pages = [
147+
(master_doc, 'pyzed', 'pyzed Documentation',
148+
[author], 1)
149+
]
150+
151+
152+
# -- Options for Texinfo output ----------------------------------------------
153+
154+
# Grouping the document tree into Texinfo files. List of tuples
155+
# (source start file, target name, title, author,
156+
# dir menu entry, description, category)
157+
texinfo_documents = [
158+
(master_doc, 'pyzed', 'pyzed Documentation',
159+
author, 'pyzed', 'One line description of project.',
160+
'Miscellaneous'),
161+
]
162+
163+
164+
# -- Options for Epub output -------------------------------------------------
165+
166+
# Bibliographic Dublin Core info.
167+
epub_title = project
168+
169+
# The unique identifier of the text. This can be a ISBN number
170+
# or the project homepage.
171+
#
172+
# epub_identifier = ''
173+
174+
# A unique identification for the text.
175+
#
176+
# epub_uid = ''
177+
178+
# A list of files that should not be packed into the epub file.
179+
epub_exclude_files = ['search.html']
180+
181+
182+
183+
# -- Extension configuration -------------------------------------------------

doc/source/core.rst

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
====
2+
Core
3+
====
4+
5+
Classes
6+
=======
7+
8+
.. currentmodule:: pyzed.sl
9+
10+
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
11+
|:class:`~pyzed.sl.Matrix3f` |Represents a generic three-dimensional matrix. |
12+
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
13+
|:class:`~pyzed.sl.Matrix4f` |Represents a generic fourth-dimensional matrix. |
14+
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
15+
|:class:`~pyzed.sl.Mat` |The :class:`~pyzed.sl.Mat` class can handle multiple matrix format from 1 to 4 channels, with different value types (float or uchar), and can be stored CPU and/or GPU side.|
16+
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
17+
|:class:`~pyzed.sl.Resolution`|Width and height of an array. |
18+
+-----------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
19+
20+
Functions
21+
=========
22+
23+
.. currentmodule:: pyzed.sl
24+
25+
+----------------------------+-----------------------------------+
26+
|:func:`~pyzed.sl.c_sleep_ms`|Tells the program to wait for x ms.|
27+
+----------------------------+-----------------------------------+
28+
29+
Enumerations
30+
============
31+
32+
+-----------------------------+---------------------------------------------------------+
33+
|:class:`~pyzed.sl.MEM` |List available memory type. |
34+
+-----------------------------+---------------------------------------------------------+
35+
|:class:`~pyzed.sl.COPY_TYPE` |List available copy operation on :class:`~pyzed.sl.Mat`. |
36+
+-----------------------------+---------------------------------------------------------+
37+
|:class:`~pyzed.sl.MAT_TYPE` |List available :class:`~pyzed.sl.Mat` formats.   |
38+
+-----------------------------+---------------------------------------------------------+
39+
40+
Function Documentation
41+
======================
42+
43+
.. autofunction:: c_sleep_ms
44+
45+
Enumeration Type Documentation
46+
==============================
47+
48+
.. autoclass:: MEM
49+
50+
.. autoclass:: COPY_TYPE
51+
52+
.. autoclass:: MAT_TYPE

doc/source/depth.rst

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
=============
2+
Depth Sensing
3+
=============
4+
5+
Classes
6+
=======
7+
8+
.. currentmodule:: pyzed.sl
9+
10+
+-----------------------------------------+-----------------------------------------------------------------------------+
11+
|:class:`~pyzed.sl.RuntimeParameters` |Parameters that defines the behavior of the grab. |
12+
+-----------------------------------------+-----------------------------------------------------------------------------+
13+
|:class:`~pyzed.sl.CameraParameters`  |Intrinsic parameters of a camera |
14+
+-----------------------------------------+-----------------------------------------------------------------------------+
15+
|:class:`~pyzed.sl.CalibrationParameters` |Intrinsic and Extrinsic parameters of the camera (translation and rotation). |
16+
+-----------------------------------------+-----------------------------------------------------------------------------+
17+
18+
Functions
19+
=========
20+
21+
.. currentmodule:: pyzed.sl
22+
23+
+-----------------------------------+-------------------------------------------+
24+
|:func:`~save_camera_depth_as` |Writes the current depth map into a file. |
25+
+-----------------------------------+-------------------------------------------+
26+
|:func:`~save_camera_point_cloud_as`|Writes the current point cloud into a file.|
27+
+-----------------------------------+-------------------------------------------+
28+
29+
Enumerations
30+
============
31+
32+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
33+
|:class:`~pyzed.sl.DEPTH_MODE` |Lists available depth computation modes. |
34+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
35+
|:class:`~pyzed.sl.SENSING_MODE` |Lists available depth sensing modes. |
36+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
37+
|:class:`~pyzed.sl.MEASURE` |Lists retrievable measures. |
38+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
39+
|:class:`~pyzed.sl.DEPTH_FORMAT` |Lists available file formats for saving depth maps. |
40+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
41+
|:class:`~pyzed.sl.POINT_CLOUD_FORMAT`  |Lists available file formats for saving point clouds. Stores the spatial coordinates (x,y,z) of each pixel and optionally its RGB color. |
42+
+---------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------+
43+
44+
Function Documentation
45+
======================
46+
47+
.. autofunction:: save_camera_depth_as
48+
49+
.. autofunction:: save_camera_point_cloud_as
50+
51+
Enumeration Type Documentation
52+
==============================
53+
54+
.. autoclass:: DEPTH_MODE
55+
56+
.. autoclass:: SENSING_MODE
57+
58+
.. autoclass:: MEASURE
59+
60+
.. autoclass:: DEPTH_FORMAT
61+
62+
.. autoclass:: POINT_CLOUD_FORMAT

doc/source/index.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.. pyzed documentation master file, created by
2+
sphinx-quickstart on Fri Dec 21 11:20:11 2018.
3+
You can adapt this file completely to your liking, but it should at least
4+
contain the root `toctree` directive.
5+
6+
============================
7+
Python ZED API Documentation
8+
============================
9+
10+
.. toctree::
11+
:maxdepth: 2
12+
13+
video
14+
depth
15+
positional
16+
spatial
17+
core
18+
allclasses

0 commit comments

Comments
 (0)