Skip to content

Commit 1bbe2e4

Browse files
committed
formatting, organization of tools, migrate autolab_core
1 parent 0723652 commit 1bbe2e4

19 files changed

+1282
-810
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
## Berkeley Autolab Perception Module
22

3-
[![Build Status](https://travis-ci.org/BerkeleyAutomation/perception.svg?branch=master)](https://travis-ci.org/BerkeleyAutomation/perception)
3+
[![Github Actions](https://github.com/BerkeleyAutomation/perception/actions/workflows/release.yml/badge.svg)](https://github.com/BerkeleyAutomation/perception/actions) [![PyPI version](https://badge.fury.io/py/autolab_perception.svg)](https://badge.fury.io/py/autolab_perception)
44

55
This package provides a wide variety of useful tools for perception tasks.
66
It directly depends on the [Berkeley Autolab Core
77
module](https://www.github.com/BerkeleyAutomation/autolab_core), so be sure to install
88
that first.
99
View the install guide and API documentation for the perception module
10-
[here](https://BerkeleyAutomation.github.io/perception).
10+
[here](https://BerkeleyAutomation.github.io/perception). Dependencies for each driver are not automatically installed, so please install ROS or camera-specific drivers separately before using these wrappers.
11+
12+
NOTE: As of May 4, 2021, this package no longer supports Python versions 3.5 or lower as these versions have reached EOL. In addition, many modules have been moved to `autolab_core` to reduce confusion. This repository now will contain sensor drivers and interfaces only. If you wish to use older Python versions or rely on the old modules, please use the 0.x.x series of tags.

docs/source/conf.py

Lines changed: 84 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -20,43 +20,41 @@
2020
# If extensions (or modules to document with autodoc) are in another directory,
2121
# add these directories to sys.path here. If the directory is relative to the
2222
# documentation root, use os.path.abspath to make it absolute, like shown here.
23-
sys.path.insert(0, os.path.abspath('../../'))
23+
sys.path.insert(0, os.path.abspath("../../"))
2424

2525
# -- General configuration ------------------------------------------------
2626

2727
# If your documentation needs a minimal Sphinx version, state it here.
28-
#needs_sphinx = '1.0'
28+
# needs_sphinx = '1.0'
2929

3030
# Add any Sphinx extension module names here, as strings. They can be
3131
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
3232
# ones.
33-
extensions = [
34-
'sphinx.ext.autodoc', 'sphinxcontrib.napoleon'
35-
]
36-
autoclass_content = 'class'
37-
autodoc_member_order = 'bysource'
38-
autodoc_default_flags = ['members', 'show-inheritance']
33+
extensions = ["sphinx.ext.autodoc", "sphinxcontrib.napoleon"]
34+
autoclass_content = "class"
35+
autodoc_member_order = "bysource"
36+
autodoc_default_flags = ["members", "show-inheritance"]
3937
napoleon_include_special_with_doc = True
4038
napoleon_include_init_with_doc = True
4139

4240
# Add any paths that contain templates here, relative to this directory.
43-
templates_path = ['_templates']
41+
templates_path = ["_templates"]
4442

4543
# The suffix(es) of source filenames.
4644
# You can specify multiple suffix as a list of string:
4745
# source_suffix = ['.rst', '.md']
48-
source_suffix = '.rst'
46+
source_suffix = ".rst"
4947

5048
# The encoding of source files.
51-
#source_encoding = 'utf-8-sig'
49+
# source_encoding = 'utf-8-sig'
5250

5351
# The master toctree document.
54-
master_doc = 'index'
52+
master_doc = "index"
5553

5654
# General information about the project.
57-
project = u'perception'
58-
copyright = u'2016, Jeff Mahler'
59-
author = u'Jeff Mahler'
55+
project = u"perception"
56+
copyright = u"2016, Jeff Mahler"
57+
author = u"Jeff Mahler"
6058

6159
# The version info for the project you're documenting, acts as replacement for
6260
# |version| and |release|, also used in various other places throughout the
@@ -76,37 +74,37 @@
7674

7775
# There are two options for replacing |today|: either, you set today to some
7876
# non-false value, then it is used:
79-
#today = ''
77+
# today = ''
8078
# Else, today_fmt is used as the format for a strftime call.
81-
#today_fmt = '%B %d, %Y'
79+
# today_fmt = '%B %d, %Y'
8280

8381
# List of patterns, relative to source directory, that match files and
8482
# directories to ignore when looking for source files.
8583
exclude_patterns = []
8684

8785
# The reST default role (used for this markup: `text`) to use for all
8886
# documents.
89-
#default_role = None
87+
# default_role = None
9088

9189
# If true, '()' will be appended to :func: etc. cross-reference text.
92-
#add_function_parentheses = True
90+
# add_function_parentheses = True
9391

9492
# If true, the current module name will be prepended to all description
9593
# unit titles (such as .. function::).
96-
#add_module_names = True
94+
# add_module_names = True
9795

9896
# If true, sectionauthor and moduleauthor directives will be shown in the
9997
# output. They are ignored by default.
100-
#show_authors = False
98+
# show_authors = False
10199

102100
# The name of the Pygments (syntax highlighting) style to use.
103-
pygments_style = 'sphinx'
101+
pygments_style = "sphinx"
104102

105103
# A list of ignored prefixes for module index sorting.
106-
#modindex_common_prefix = []
104+
# modindex_common_prefix = []
107105

108106
# If true, keep warnings as "system message" paragraphs in the built documents.
109-
#keep_warnings = False
107+
# keep_warnings = False
110108

111109
# If true, `todo` and `todoList` produce output, else they produce nothing.
112110
todo_include_todos = False
@@ -116,158 +114,159 @@
116114

117115
# The theme to use for HTML and HTML Help pages. See the documentation for
118116
# a list of builtin themes.
119-
#html_theme = 'alabaster'
120-
html_theme = 'sphinx_rtd_theme'
117+
# html_theme = 'alabaster'
118+
html_theme = "sphinx_rtd_theme"
121119
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
122120

123121
# Theme options are theme-specific and customize the look and feel of a theme
124122
# further. For a list of options available for each theme, see the
125123
# documentation.
126-
#html_theme_options = {}
124+
# html_theme_options = {}
127125

128126
# Add any paths that contain custom themes here, relative to this directory.
129-
#html_theme_path = []
127+
# html_theme_path = []
130128

131129
# The name for this set of Sphinx documents. If None, it defaults to
132130
# "<project> v<release> documentation".
133-
#html_title = None
131+
# html_title = None
134132

135133
# A shorter title for the navigation bar. Default is the same as html_title.
136-
#html_short_title = None
134+
# html_short_title = None
137135

138136
# The name of an image file (relative to this directory) to place at the top
139137
# of the sidebar.
140-
#html_logo = None
138+
# html_logo = None
141139

142140
# The name of an image file (relative to this directory) to use as a favicon of
143141
# the docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
144142
# pixels large.
145-
#html_favicon = None
143+
# html_favicon = None
146144

147145
# Add any paths that contain custom static files (such as style sheets) here,
148146
# relative to this directory. They are copied after the builtin static files,
149147
# so a file named "default.css" will overwrite the builtin "default.css".
150-
html_static_path = ['_static']
148+
html_static_path = ["_static"]
151149

152150
# Add any extra paths that contain custom files (such as robots.txt or
153151
# .htaccess) here, relative to this directory. These files are copied
154152
# directly to the root of the documentation.
155-
#html_extra_path = []
153+
# html_extra_path = []
156154

157155
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
158156
# using the given strftime format.
159-
#html_last_updated_fmt = '%b %d, %Y'
157+
# html_last_updated_fmt = '%b %d, %Y'
160158

161159
# If true, SmartyPants will be used to convert quotes and dashes to
162160
# typographically correct entities.
163-
#html_use_smartypants = True
161+
# html_use_smartypants = True
164162

165163
# Custom sidebar templates, maps document names to template names.
166-
#html_sidebars = {}
164+
# html_sidebars = {}
167165

168166
# Additional templates that should be rendered to pages, maps page names to
169167
# template names.
170-
#html_additional_pages = {}
168+
# html_additional_pages = {}
171169

172170
# If false, no module index is generated.
173-
#html_domain_indices = True
171+
# html_domain_indices = True
174172

175173
# If false, no index is generated.
176-
#html_use_index = True
174+
# html_use_index = True
177175

178176
# If true, the index is split into individual pages for each letter.
179-
#html_split_index = False
177+
# html_split_index = False
180178

181179
# If true, links to the reST sources are added to the pages.
182-
#html_show_sourcelink = True
180+
# html_show_sourcelink = True
183181

184182
# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
185-
#html_show_sphinx = True
183+
# html_show_sphinx = True
186184

187185
# If true, "(C) Copyright ..." is shown in the HTML footer. Default is True.
188-
#html_show_copyright = True
186+
# html_show_copyright = True
189187

190188
# If true, an OpenSearch description file will be output, and all pages will
191189
# contain a <link> tag referring to it. The value of this option must be the
192190
# base URL from which the finished HTML is served.
193-
#html_use_opensearch = ''
191+
# html_use_opensearch = ''
194192

195193
# This is the file name suffix for HTML files (e.g. ".xhtml").
196-
#html_file_suffix = None
194+
# html_file_suffix = None
197195

198196
# Language to be used for generating the HTML full-text search index.
199197
# Sphinx supports the following languages:
200198
# 'da', 'de', 'en', 'es', 'fi', 'fr', 'hu', 'it', 'ja'
201199
# 'nl', 'no', 'pt', 'ro', 'ru', 'sv', 'tr'
202-
#html_search_language = 'en'
200+
# html_search_language = 'en'
203201

204202
# A dictionary with options for the search language support, empty by default.
205203
# Now only 'ja' uses this config value
206-
#html_search_options = {'type': 'default'}
204+
# html_search_options = {'type': 'default'}
207205

208206
# The name of a javascript file (relative to the configuration directory) that
209207
# implements a search results scorer. If empty, the default will be used.
210-
#html_search_scorer = 'scorer.js'
208+
# html_search_scorer = 'scorer.js'
211209

212210
# Output file base name for HTML help builder.
213-
htmlhelp_basename = 'perceptiondoc'
211+
htmlhelp_basename = "perceptiondoc"
214212

215213
# -- Options for LaTeX output ---------------------------------------------
216214

217215
latex_elements = {
218-
# The paper size ('letterpaper' or 'a4paper').
219-
#'papersize': 'letterpaper',
220-
221-
# The font size ('10pt', '11pt' or '12pt').
222-
#'pointsize': '10pt',
223-
224-
# Additional stuff for the LaTeX preamble.
225-
#'preamble': '',
226-
227-
# Latex figure (float) alignment
228-
#'figure_align': 'htbp',
216+
# The paper size ('letterpaper' or 'a4paper').
217+
#'papersize': 'letterpaper',
218+
# The font size ('10pt', '11pt' or '12pt').
219+
#'pointsize': '10pt',
220+
# Additional stuff for the LaTeX preamble.
221+
#'preamble': '',
222+
# Latex figure (float) alignment
223+
#'figure_align': 'htbp',
229224
}
230225

231226
# Grouping the document tree into LaTeX files. List of tuples
232227
# (source start file, target name, title,
233228
# author, documentclass [howto, manual, or own class]).
234229
latex_documents = [
235-
(master_doc, 'perception.tex', u'perception Documentation',
236-
u'Jeff Mahler', 'manual'),
230+
(
231+
master_doc,
232+
"perception.tex",
233+
u"perception Documentation",
234+
u"Jeff Mahler",
235+
"manual",
236+
),
237237
]
238238

239239
# The name of an image file (relative to this directory) to place at the top of
240240
# the title page.
241-
#latex_logo = None
241+
# latex_logo = None
242242

243243
# For "manual" documents, if this is true, then toplevel headings are parts,
244244
# not chapters.
245-
#latex_use_parts = False
245+
# latex_use_parts = False
246246

247247
# If true, show page references after internal links.
248-
#latex_show_pagerefs = False
248+
# latex_show_pagerefs = False
249249

250250
# If true, show URL addresses after external links.
251-
#latex_show_urls = False
251+
# latex_show_urls = False
252252

253253
# Documents to append as an appendix to all manuals.
254-
#latex_appendices = []
254+
# latex_appendices = []
255255

256256
# If false, no module index is generated.
257-
#latex_domain_indices = True
257+
# latex_domain_indices = True
258258

259259

260260
# -- Options for manual page output ---------------------------------------
261261

262262
# One entry per manual page. List of tuples
263263
# (source start file, name, description, authors, manual section).
264264
man_pages = [
265-
(master_doc, 'perception', u'perception Documentation',
266-
[author], 1)
265+
(master_doc, "perception", u"perception Documentation", [author], 1)
267266
]
268267

269268
# If true, show URL addresses after external links.
270-
#man_show_urls = False
269+
# man_show_urls = False
271270

272271

273272
# -- Options for Texinfo output -------------------------------------------
@@ -276,19 +275,25 @@
276275
# (source start file, target name, title, author,
277276
# dir menu entry, description, category)
278277
texinfo_documents = [
279-
(master_doc, 'perception', u'perception Documentation',
280-
author, 'perception', 'One line description of project.',
281-
'Miscellaneous'),
278+
(
279+
master_doc,
280+
"perception",
281+
u"perception Documentation",
282+
author,
283+
"perception",
284+
"One line description of project.",
285+
"Miscellaneous",
286+
),
282287
]
283288

284289
# Documents to append as an appendix to all manuals.
285-
#texinfo_appendices = []
290+
# texinfo_appendices = []
286291

287292
# If false, no module index is generated.
288-
#texinfo_domain_indices = True
293+
# texinfo_domain_indices = True
289294

290295
# How to display URL addresses: 'footnote', 'no', or 'inline'.
291-
#texinfo_show_urls = 'footnote'
296+
# texinfo_show_urls = 'footnote'
292297

293298
# If true, do not generate a @detailmenu in the "Top" node's menu.
294-
#texinfo_no_detailmenu = False
299+
# texinfo_no_detailmenu = False

package.xml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<?xml version="1.0"?>
22
<package>
33
<name>perception</name>
4-
<version>0.0.10</version>
5-
<description>The perception package</description>
4+
<version>1.0.0</version>
5+
<description>Autolab Drivers package</description>
66

77
<!-- One maintainer tag required, multiple allowed, one person per tag -->
8-
<!-- Example: -->
9-
<!-- <maintainer email="jane.doe@example.com">Jane Doe</maintainer> -->
10-
<maintainer email="mdanielczuk@berkeley.edu">todo</maintainer>
8+
<maintainer email="mdanielczuk@berkeley.edu">Mike Danielczuk</maintainer>
119

1210

1311
<!-- One license tag required, multiple allowed, one license per tag -->

perception/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.0.10"
1+
__version__ = "1.0.0"

0 commit comments

Comments
 (0)