BleWinrtDll
ml-agents
BleWinrtDll | ml-agents | |
---|---|---|
3 | 60 | |
152 | 16,416 | |
- | 1.4% | |
10.0 | 8.0 | |
over 1 year ago | 9 days ago | |
C# | C# | |
Do What The F*ck You Want To Public License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
BleWinrtDll
-
Show HN: CycleQuest – Indoor Cycling game with steering
- Comes with ready-to-use models and textures
To generate roads, I downloaded .gpx files from my Strava activities, then implemented a parser to take coordinates and elevations and build roads in-game using EasyRoads3D. These tools combined worked quite well but required some manual work. I had to go over the entire length of the road to smoothen it up (due to GPS noise in .gpx files). The terrain also didn’t always perfectly align with the road, so I had to manually modify it.
I figured that steering would be a good way to keep the user engaged in the gameplay, instead of just sitting on the bike and pedalling. With required steering, you need to be engaged to not drive off the road.
There are some solutions to virtual steering in other smart trainer games, but they are hardware-based - e.g., for Zwift, you need to buy their hardware controller. I really wanted to keep it as simple and inexpensive as possible, so I used a smartphone mounted to the handlebars as a steering controller.
I implemented native apps for both iOS and Android. They use the gyroscope to get the steering value and broadcast it as a BLE peripheral. Implementing Bluetooth in Unity was a little tricky as there is no built-in solution. The implementation depends on the platform the game is running on. It boils down to writing a native plugin for each platform you support.
For macOS, there is an open-source library written in Swift - https://github.com/codeinversion/sensors-swift. It already has the necessary services and characteristics implemented. I had to modify it a little and compile it into a Unity plugin.
For Windows, there also is a library - https://github.com/adabru/BleWinrtDll, but it wasn’t working too well. Because I targeted UWP, I was able to implement my own Bluetooth logic in C# and compile it directly in Unity.
Overall, it was a really fun project to work on. I’m particularly happy that I was able to release it starting from scratch in just a couple of months, and I hope to continue working on it.
-
Help with using a Poke Ball Plus in Unity
Using the absolutely wonderful BLE dll for Unity (https://github.com/adabru/BleWinrtDll/)
-
Reading data from a BLE device in Unity 3D
Looking at the image on the BleWinrtDll GitHub page, my understanding is that when I subscribe to a device, I should be able to see the data under the “Subscribe” button, which is in a text field labeled “characteristic value” within the editor.
ml-agents
- How do I change the maximum number of steps for training
- are the install steps update to date?
-
Help with regenerating new worker id
I am a beginner to using ML Agents to simulate an environment for DL i am trying to trial runs by tinkering through different values between the action space and keep encountering this issue when attempting to run a new trial. I've tried mlagents-learn --force and mlagents-learn --run-id=newtest but both prompt the same error message. Using linux, I am aware of a similar bug occuring in older versions (https://github.com/Unity-Technologies/ml-agents/issues/1505) but solutions didn't fix it.
-
Trying to get into AI
The Github page for ML-Agents has a fairly straight forward example.
- Implement API to allow AI/ML to play your game, or is it not needed?
-
Is there a good alternative to Unity ML Agents?
Very few commits in the last year and not many new features (https://github.com/Unity-Technologies/ml-agents/commits/develop)
-
At least I put effort into the AI prompt to generate some code that people can refer to, whereas you do absolutely nothing to contribute to the community.
and PR content: https://github.com/Unity-Technologies/ml-agents/commit/ed212103e451449bf84711a4a8f7bf11dfb1211a
-
I have some questions as an absolute beginner.
Unity can build a stand-alone application or be used as a library. Javascript is deprecated, and Boo along with it although it was never really supported to begin with. Various types of machine learning are supported through the ML-Agent Toolkit and pretty well documented. The toolkit has a Python API but you should be careful about doing anything too unusual in Unity because the documentation tends to have a lot of dead-ends.
-
Could Somebody please help me figure this out ? been struggling with it for a week now
Op, I'd just pull the repo again to a new folder from https://github.com/Unity-Technologies/ml-agents (use SourceTree for simplicity if you don't know git).
-
Unity ML-Agents documentation is wrong, I can't build an executable and run training as the docs state
My github issue on their documentation: https://github.com/Unity-Technologies/ml-agents/issues/5899
What are some alternatives?
balena-locating - Never lose something important to you again by using Bluetooth Low Energy (BLE) beacons and Raspberry Pi sensors to track your stuff.
gym - A toolkit for developing and comparing reinforcement learning algorithms.
32feet - Personal Area Networking for .NET. Open source and professionally supported
AirSim - Open source simulator for autonomous vehicles built on Unreal Engine / Unity, from Microsoft AI & Research
dotnet-bluetooth-le - Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, Windows
carla - Open-source simulator for autonomous driving research.
ILSpy - .NET Decompiler with support for PDB generation, ReadyToRun, Metadata (&more) - cross-platform!
AssetStudio - AssetStudio is a tool for exploring, extracting and exporting assets and assetbundles.
shiny - .NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)
unity-avatar-generation - A minimal example of how to use Unity's AvatarBuilder.BuildHumanAvatar API.
ultimate-volleyball - 3D RL Volleyball environment built on Unity ML-Agents
tensortrade - An open source reinforcement learning framework for training, evaluating, and deploying robust trading agents.