mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-27 02:01:42 +00:00
[bazel][robotpy] Add mirror for robotpy's wpiuil and wpinet libraries (#8062)
Project import generated by Copybara. GitOrigin-RevId: 92ea93d1b47a82667044bd0af05f7fdb34d2c2c2
This commit is contained in:
7
wpiutil/src/main/python/semiwrap/RawFrame.yml
Normal file
7
wpiutil/src/main/python/semiwrap/RawFrame.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
defaults:
|
||||
ignore: true
|
||||
|
||||
enums:
|
||||
WPI_TimestampSource:
|
||||
value_prefix: WPI_TIMESRC
|
||||
rename: TimestampSource
|
||||
12
wpiutil/src/main/python/semiwrap/Sendable.yml
Normal file
12
wpiutil/src/main/python/semiwrap/Sendable.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
extra_includes:
|
||||
- wpi/sendable/SendableBuilder.h
|
||||
|
||||
classes:
|
||||
wpi::Sendable:
|
||||
methods:
|
||||
InitSendable:
|
||||
virtual_xform: |-
|
||||
[&](py::function fn) {
|
||||
auto builderHandle = py::cast(builder, py::return_value_policy::reference);
|
||||
fn(builderHandle);
|
||||
}
|
||||
40
wpiutil/src/main/python/semiwrap/SendableBuilder.yml
Normal file
40
wpiutil/src/main/python/semiwrap/SendableBuilder.yml
Normal file
@@ -0,0 +1,40 @@
|
||||
classes:
|
||||
wpi::SendableBuilder:
|
||||
enums:
|
||||
BackendKind:
|
||||
methods:
|
||||
SetSmartDashboardType:
|
||||
SetActuator:
|
||||
AddBooleanProperty:
|
||||
PublishConstBoolean:
|
||||
AddIntegerProperty:
|
||||
PublishConstInteger:
|
||||
AddFloatProperty:
|
||||
PublishConstFloat:
|
||||
AddDoubleProperty:
|
||||
PublishConstDouble:
|
||||
AddStringProperty:
|
||||
PublishConstString:
|
||||
AddBooleanArrayProperty:
|
||||
PublishConstBooleanArray:
|
||||
AddIntegerArrayProperty:
|
||||
PublishConstIntegerArray:
|
||||
AddFloatArrayProperty:
|
||||
PublishConstFloatArray:
|
||||
AddDoubleArrayProperty:
|
||||
PublishConstDoubleArray:
|
||||
AddStringArrayProperty:
|
||||
PublishConstStringArray:
|
||||
AddRawProperty:
|
||||
PublishConstRaw:
|
||||
AddSmallStringProperty:
|
||||
AddSmallBooleanArrayProperty:
|
||||
AddSmallIntegerArrayProperty:
|
||||
AddSmallFloatArrayProperty:
|
||||
AddSmallDoubleArrayProperty:
|
||||
AddSmallStringArrayProperty:
|
||||
AddSmallRawProperty:
|
||||
GetBackendKind:
|
||||
IsPublished:
|
||||
Update:
|
||||
ClearProperties:
|
||||
54
wpiutil/src/main/python/semiwrap/SendableRegistry.yml
Normal file
54
wpiutil/src/main/python/semiwrap/SendableRegistry.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
extra_includes:
|
||||
- wpi/sendable/Sendable.h
|
||||
- wpi/sendable/SendableBuilder.h
|
||||
|
||||
classes:
|
||||
wpi::SendableRegistry:
|
||||
nodelete: true
|
||||
methods:
|
||||
Add:
|
||||
overloads:
|
||||
Sendable*, std::string_view:
|
||||
keepalive:
|
||||
- [1, 2]
|
||||
Sendable*, std::string_view, int:
|
||||
keepalive:
|
||||
- [1, 2]
|
||||
Sendable*, std::string_view, int, int:
|
||||
keepalive:
|
||||
- [1, 2]
|
||||
Sendable*, std::string_view, std::string_view:
|
||||
keepalive:
|
||||
- [1, 2]
|
||||
AddChild:
|
||||
overloads:
|
||||
Sendable*, Sendable*:
|
||||
keepalive:
|
||||
- [1, 2]
|
||||
- [2, 3]
|
||||
Sendable*, void*:
|
||||
ignore: true
|
||||
Remove:
|
||||
Move:
|
||||
ignore: true
|
||||
Contains:
|
||||
GetName:
|
||||
SetName:
|
||||
overloads:
|
||||
Sendable*, std::string_view:
|
||||
Sendable*, std::string_view, int:
|
||||
Sendable*, std::string_view, int, int:
|
||||
Sendable*, std::string_view, std::string_view:
|
||||
GetSubsystem:
|
||||
SetSubsystem:
|
||||
GetDataHandle:
|
||||
ignore: true
|
||||
SetData:
|
||||
ignore: true
|
||||
GetData:
|
||||
ignore: true
|
||||
GetUniqueId:
|
||||
GetSendable:
|
||||
Publish:
|
||||
Update:
|
||||
EnsureInitialized:
|
||||
5
wpiutil/src/main/python/semiwrap/StackTrace.yml
Normal file
5
wpiutil/src/main/python/semiwrap/StackTrace.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
functions:
|
||||
GetStackTrace:
|
||||
GetStackTraceDefault:
|
||||
SetGetStackTraceImpl:
|
||||
ignore: true
|
||||
59
wpiutil/src/main/python/semiwrap/Synchronization.yml
Normal file
59
wpiutil/src/main/python/semiwrap/Synchronization.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
defaults:
|
||||
ignore: true
|
||||
|
||||
subpackage: sync
|
||||
extra_includes:
|
||||
- pybind11/stl.h
|
||||
|
||||
functions:
|
||||
CreateEvent:
|
||||
DestroyEvent:
|
||||
SetEvent:
|
||||
ResetEvent:
|
||||
CreateSemaphore:
|
||||
DestroySemaphore:
|
||||
ReleaseSemaphore:
|
||||
param_override:
|
||||
prevCount:
|
||||
default: "0"
|
||||
WaitForObject:
|
||||
overloads:
|
||||
WPI_Handle:
|
||||
WPI_Handle, double, bool*:
|
||||
WaitForObjects:
|
||||
overloads:
|
||||
std::span<const WPI_Handle>, std::span<WPI_Handle>:
|
||||
param_override:
|
||||
signaled:
|
||||
ignore: true
|
||||
cpp_code: |
|
||||
[](std::span<const WPI_Handle> handles) {
|
||||
py::gil_scoped_release release;
|
||||
std::vector<WPI_Handle> signaled(handles.size());
|
||||
auto result = wpi::WaitForObjects(handles, signaled);
|
||||
signaled.resize(result.size());
|
||||
return signaled;
|
||||
}
|
||||
std::initializer_list<WPI_Handle>, std::span<WPI_Handle>:
|
||||
ignore: true
|
||||
std::span<const WPI_Handle>, std::span<WPI_Handle>, double, bool*:
|
||||
param_override:
|
||||
signaled:
|
||||
ignore: true
|
||||
timedOut:
|
||||
ignore: true
|
||||
cpp_code: |
|
||||
[](std::span<const WPI_Handle> handles, double timeout) {
|
||||
py::gil_scoped_release release;
|
||||
std::vector<WPI_Handle> signaled(handles.size());
|
||||
bool timedOut = false;
|
||||
auto result = wpi::WaitForObjects(handles, signaled, timeout, &timedOut);
|
||||
signaled.resize(result.size());
|
||||
return std::make_tuple(signaled, timedOut);
|
||||
}
|
||||
std::initializer_list<WPI_Handle>, std::span<WPI_Handle>, double, bool*:
|
||||
ignore: true
|
||||
CreateSignalObject:
|
||||
SetSignalObject:
|
||||
ResetSignalObject:
|
||||
DestroySignalObject:
|
||||
22
wpiutil/src/main/python/semiwrap/WPyStruct.yml
Normal file
22
wpiutil/src/main/python/semiwrap/WPyStruct.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
defaults:
|
||||
subpackage: wpistruct
|
||||
|
||||
functions:
|
||||
forEachNested:
|
||||
no_release_gil: true
|
||||
getTypeName:
|
||||
no_release_gil: true
|
||||
getSchema:
|
||||
no_release_gil: true
|
||||
getSize:
|
||||
no_release_gil: true
|
||||
pack:
|
||||
no_release_gil: true
|
||||
packArray:
|
||||
no_release_gil: true
|
||||
packInto:
|
||||
no_release_gil: true
|
||||
unpack:
|
||||
no_release_gil: true
|
||||
unpackArray:
|
||||
no_release_gil: true
|
||||
Reference in New Issue
Block a user