robotpy / robotpy-wpiutil Goto Github PK
View Code? Open in Web Editor NEWMoved to https://github.com/robotpy/mostrobotpy
Moved to https://github.com/robotpy/mostrobotpy
Not quite sure how this is going to work? It'll be great.
See robotpy/robotpy-wpimath#13
The Tuple
in the Python type name is the wrong length, as it only ever shows the inner type once:
For a correct PEP 484 compliant type hint, it needs to list the inner type as many times as the size of the array, e.g. Tuple[float, float, float]
for a wpi::array<double, 3>
.
Seeing @virtuald 's post, I gave it a try, and running the simulator throws an exception in robotpy-wpiutil when trying to open wpiutil.dll ("The specified module could not be found"); as far as I can tell with Sysinternals Process Monitor, this seems to be due to the missing dependency "VCRUNTIME140_1.dll". Am I missing an MSVC redistributable?
I believe what's happening is the str -> const char * caster is a temporary, so it gets destroyed, but the const char * is pointing at the temporary std::string.
Incidentally, this would apply to all of the STL list converters that pybind11 provides also.
Would be cleaner.
Filing so we don't forget about this:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.