Here you can find examples of how to use the library. Most examples are configured using environment variables, so make sure to set them before running the examples. The easiest way to do this is to create a .env
file in the root of the project and set the environment variables there. The following is an example of a .env
file:
# .env
WANDELAPI_BASE_URL=https://fjzerrus.instance.wandelbots.io
NOVA_USERNAME=wb
NOVA_PASSWORD=ys7uYhiVBGCUW3UrQGQFmvri11kdTC6R
MOTION_GROUP=0@virtual
CELL_ID=cell
TCP=Flange
The 01_basic example demonstrates how to create an Instance
and MotionGroup
object, and how to use them to interact with the Wandelbots API.
The 02_plan_and_execute example demonstrates how to plan a motion using the Planner
and execute it on the configured motion group.
The 03_plan_and_execute_async example demonstrates how to plan a motion asynchronously and execute it on the configured motion group asynchronously.
The 04_execute_in_background example demonstrates how to execute a motion in the background.
The 05_notebook example demonstrates how to use the library in a Jupyter notebook.