#include <stdbool.h>
#include <Python.h>
#include <structmember.h>
#include <numpy/arrayobject.h>
#include <signal.h>
#include "apriltag.h"
#include "tag36h10.h"
#include "tag36h11.h"
#include "tag25h9.h"
#include "tag16h5.h"
#include "tagCircle21h7.h"
#include "tagCircle49h12.h"
#include "tagCustom48h12.h"
#include "tagStandard41h12.h"
#include "tagStandard52h13.h"
#include "apriltag_detect_docstring.h"
#include "apriltag_py_type_docstring.h"
Go to the source code of this file.
◆ FAMILY_STRING
| #define FAMILY_STRING |
( |
|
name | ) |
" " #name "\n" |
◆ NPY_NO_DEPRECATED_API
| #define NPY_NO_DEPRECATED_API NPY_API_VERSION |
◆ PYMETHODDEF_ENTRY
| #define PYMETHODDEF_ENTRY |
( |
|
function_prefix, |
|
|
|
name, |
|
|
|
args |
|
) |
| |
Value: {#name, \
(PyCFunction)function_prefix ## name, \
args, \
function_prefix ## name ## _docstring}
Definition at line 61 of file apriltag_pywrap.c.
◆ RESET_SIGINT
Value: do { \
if( 0 != sigaction(SIGINT, \
&sigaction_old, NULL )) \
PyErr_SetString(PyExc_RuntimeError, "sigaction-restore failed"); \
} while(0)
Definition at line 55 of file apriltag_pywrap.c.
◆ SET_SIGINT
Value:struct sigaction sigaction_old; \
do { \
if( 0 != sigaction(SIGINT, \
&(struct sigaction){ .sa_handler = SIG_DFL }, \
&sigaction_old) ) \
{ \
PyErr_SetString(PyExc_RuntimeError, "sigaction() failed"); \
goto done; \
} \
} while(0)
Definition at line 45 of file apriltag_pywrap.c.
◆ SUPPORTED_TAG_FAMILIES
| #define SUPPORTED_TAG_FAMILIES |
( |
|
_ | ) |
|
Value: _(tag36h10) \
_(tag36h11) \
_(tag25h9) \
_(tag16h5) \
_(tagCircle21h7) \
_(tagCircle49h12) \
_(tagStandard41h12) \
_(tagStandard52h13) \
_(tagCustom48h12)
Definition at line 21 of file apriltag_pywrap.c.
◆ TAG_CREATE_FAMILY
| #define TAG_CREATE_FAMILY |
( |
|
name | ) |
else if (0 == strcmp(family, #name)) self->tf = name ## _create(); |
◆ TAG_SET_DESTROY_FUNC
| #define TAG_SET_DESTROY_FUNC |
( |
|
name | ) |
else if (0 == strcmp(family, #name)) self->destroy_func = name ## _destroy; |
◆ apriltag_dealloc()
◆ apriltag_detect()
| static PyObject* apriltag_detect |
( |
apriltag_py_t * |
self, |
|
|
PyObject * |
args |
|
) |
| |
|
static |
◆ apriltag_new()
| static PyObject* apriltag_new |
( |
PyTypeObject * |
type, |
|
|
PyObject * |
args, |
|
|
PyObject * |
kwargs |
|
) |
| |
|
static |
◆ PyInit_apriltag()
| PyMODINIT_FUNC PyInit_apriltag |
( |
void |
| ) |
|
◆ apriltag_methods
| PyMethodDef apriltag_methods[] |
|
static |
◆ apriltagType
| PyTypeObject apriltagType |
|
static |
Initial value:=
{
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "apriltag",
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_doc = apriltag_py_type_docstring
}
Definition at line 324 of file apriltag_pywrap.c.
◆ methods
◆ module_def
| struct PyModuleDef module_def |
|
static |
Initial value:=
{
PyModuleDef_HEAD_INIT,
"apriltag",
"AprilTags visual fiducial system detector",
-1,
0,
0,
0,
0
}
Definition at line 359 of file apriltag_pywrap.c.