mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[robotpy] Mirror most other subprojects (#8208)
GitOrigin-RevId: ac60fd3cf4a24023184376687da28373d14b781a This mirrors the robotpy files for the following projects: - apriltag - datalog - hal - ntcore - romiVendordep - wpilibc - wpimath - xrpVendordep This excludes cscore and the halsim wrappers for at this time. NOTE: This does not hook these projects up to the build system, just simply mirrors the files. The building will take place in a follow up PR to make it easier to review the changes necessary to build.
This commit is contained in:
107
ntcore/src/main/python/semiwrap/IntegerTopic.yml
Normal file
107
ntcore/src/main/python/semiwrap/IntegerTopic.yml
Normal file
@@ -0,0 +1,107 @@
|
||||
classes:
|
||||
nt::IntegerSubscriber:
|
||||
methods:
|
||||
IntegerSubscriber:
|
||||
overloads:
|
||||
'':
|
||||
ignore: true
|
||||
NT_Subscriber, ParamType:
|
||||
ignore: true
|
||||
Get:
|
||||
overloads:
|
||||
'[const]':
|
||||
ParamType [const]:
|
||||
GetAtomic:
|
||||
overloads:
|
||||
'[const]':
|
||||
ParamType [const]:
|
||||
ReadQueue:
|
||||
GetTopic:
|
||||
inline_code: |
|
||||
.def("close", [](IntegerSubscriber *self) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerSubscriber();
|
||||
}, py::doc("Destroys the subscriber"))
|
||||
.def("__enter__", [](IntegerSubscriber *self) {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](IntegerSubscriber *self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerSubscriber();
|
||||
})
|
||||
nt::IntegerPublisher:
|
||||
methods:
|
||||
IntegerPublisher:
|
||||
overloads:
|
||||
'':
|
||||
ignore: true
|
||||
NT_Publisher:
|
||||
ignore: true
|
||||
Set:
|
||||
SetDefault:
|
||||
GetTopic:
|
||||
inline_code: |
|
||||
.def("close", [](IntegerPublisher *self) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerPublisher();
|
||||
}, py::doc("Destroys the publisher"))
|
||||
.def("__enter__", [](IntegerPublisher *self) {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](IntegerPublisher *self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerPublisher();
|
||||
})
|
||||
nt::IntegerEntry:
|
||||
methods:
|
||||
IntegerEntry:
|
||||
overloads:
|
||||
'':
|
||||
ignore: true
|
||||
NT_Entry, ParamType:
|
||||
ignore: true
|
||||
GetHandle:
|
||||
ignore: true
|
||||
GetTopic:
|
||||
Unpublish:
|
||||
inline_code: |
|
||||
.def("close", [](IntegerEntry *self) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerEntry();
|
||||
}, py::doc("Destroys the entry"))
|
||||
.def("__enter__", [](IntegerEntry *self) {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](IntegerEntry *self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerEntry();
|
||||
})
|
||||
nt::IntegerTopic:
|
||||
attributes:
|
||||
kTypeString:
|
||||
methods:
|
||||
IntegerTopic:
|
||||
overloads:
|
||||
'':
|
||||
ignore: true
|
||||
NT_Topic:
|
||||
ignore: true
|
||||
Topic:
|
||||
Subscribe:
|
||||
SubscribeEx:
|
||||
Publish:
|
||||
PublishEx:
|
||||
GetEntry:
|
||||
GetEntryEx:
|
||||
inline_code: |
|
||||
.def("close", [](IntegerTopic *self) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerTopic();
|
||||
}, py::doc("Destroys the topic"))
|
||||
.def("__enter__", [](IntegerTopic *self) {
|
||||
return self;
|
||||
})
|
||||
.def("__exit__", [](IntegerTopic *self, py::args args) {
|
||||
py::gil_scoped_release release;
|
||||
*self = IntegerTopic();
|
||||
})
|
||||
Reference in New Issue
Block a user