This folder contains support libraries for connecting to the Bonsai Azure Service.
This repository is subject to the Microsoft Open Source Code of Conduct.
Please read the Microsoft contributing guidelines.
Submit a PR adding a brief description of the code you wish to be included and add an appropriate hyperlink to the sample code section. If the sample you wish to code is small and self contained it can be added to the samples directory for the language it is written. For example Python samples can be found in Python/samples.
Samples that show how to use microsoft-bonsai-api and connect with the Bonsai platform.
bonsai-common - A python framework for interfacing with the bonsai platform.
cartpole - Classic CartPole simulator in Python. Balancing an inverted pendulum on a moving cart.
house-energy - Control the temperature inside of a house according to the desired set temperatures just like a thermostat.
quanser-qube - Control the Quanser Qube servo device to swing up and balance an inverted pendulum.
quanser-qube - Simulation of the real hardware, academic learning tool: Quanser Qube. Balancing an inverted pendulum with a rotary base.
house-energy - Simulator for controlling the temperature inside of a house to a desired temperatures, just like a thermostat.
cartpole - Classic CartPole simulator in C#. Balancing an inverted pendulum on a moving cart.
cartpole - Classic CartPole simulator in Java. Balancing an inverted pendulum on a moving cart.
adder - Simple simulator that adds numbers and computes a reward based on the result.
- Make sure workspace is registered & correct.
- Error handling: Any cloud service can have transient errors and our SDK have Retry policy in place, but not all errors can be retried, so a good error handling logic will make your sim sessions more robust.
- Enable logging: If you are hitting issues. Enable logging in BonsaiClientConfig. And set the right LogLevel to get more information.