Skip to main content

Python package for controlling MD-based actuators

Project description

CANdle-SDK

A toolkit for developing applications using MAB Robotics MD motor controllers and actuators.

Dependencies & Requirements

Linux

sudo apt install build-essential git cmake libusb-1.0-0-dev

Windows

Package requires w64devkit to build. It can be automatically downloaded and configured using:

launch/buildForWindows.bat

To use CANdle on Windows, one must manually change USB driver for CANdle, to WinUSB:

  1. Download and run Zadig 2.8
  2. Options -> List all devices
  3. Select MD USB-TO-CAN from drop down menu
  4. Changed driver type to libusb-win32
  5. Click Replace Driver
  6. Wait for installation to finish.

Build

Linux based OS

Building for Linux system:

./launch/buildForLinux.sh

Using Docker (only on x86_64 architecture)

(See: Installing docker on Linux(ubuntu) )

Run:

./launch/runDockerForLinux86-64.sh

Cross-compile for Windows

Using Docker

./launch/runDockerForWindows.sh

Natively build on Windows

Using powershell run

./launch/buildForWindows.bat

Compiling Python module

Dependencies are listed inside pyproject.toml

To compile for the current system run build command inside repository using your preferred python binary, for eg. python -m build.

To compile against multiple versions of libc and python use:

./launch/pythonBuildWheel.sh

To install use pip install on the desired wheel, for eg. python -m pip install ./dist/pycandlemab-1.7.0-cp310-cp310-linux_x86_64.whl for CPython 3.10, glibc and x86-64 arch.

Including CANdle-SDK in your projects

Best way to include CANdle-SDK in your code is to include it as a git submodule and include it in you CMakeLists.txt like this:

git submodule add git@github.com:mabrobotics/CANdle-SDK.git
git submodule update --init --recursive

You can than use candlelib as a library to link against your executables.

Below examplary CMakeLists.txt:

cmake_minimum_required(VERSION 3.15)

project(myCandleProject)

add_subdirectory(CANdle-SDK) # added as a submodule
add_executable(myCandleProject main.cpp)
target_link_libraries(myCandleProject candle)

Documentation

For more information check out our documentation page here.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

candlesdk-1.3.0.tar.gz (48.3 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

candlesdk-1.3.0-cp314-cp314-win_amd64.whl (719.5 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.3.0-cp314-cp314-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

candlesdk-1.3.0-cp313-cp313-win_amd64.whl (695.6 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.3.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

candlesdk-1.3.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

candlesdk-1.3.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

candlesdk-1.3.0-cp310-cp310-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

File details

Details for the file candlesdk-1.3.0.tar.gz.

File metadata

  • Download URL: candlesdk-1.3.0.tar.gz
  • Upload date:
  • Size: 48.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for candlesdk-1.3.0.tar.gz
Algorithm Hash digest
SHA256 65938da10308a3522125df68f13cb24f8bad25dca4f66b9ff346d3fb1a97ffe9
MD5 20d86712e2ccd86794cbc0816108bb65
BLAKE2b-256 3a7bb19f9c542fe2d171923b6ca4cff3dc4f31374150297dce15cade10f37f10

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: candlesdk-1.3.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 719.5 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for candlesdk-1.3.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 90fc4b1fd88190f59c621f9f5a7e0e0de226a5d409442b76b6153ab7e89e81e9
MD5 c5199320b35aad8c4bc085a7d27cce3c
BLAKE2b-256 be18a0ed1973075b000d95231b91a8dc7fd8f9d9de208ed202d7780b6e544c10

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for candlesdk-1.3.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 71cb1b59e47c8e9374e4cdc3651c77912d74f19d375c62ec34e7f13218f8aa2e
MD5 6f3b7aca3024c0e93673989db66df4cc
BLAKE2b-256 dc37ccd10fada249d41200890807362959f36d92700c4199fcb0415069f46f97

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: candlesdk-1.3.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 695.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for candlesdk-1.3.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b79906c5e3ef71740f63405df323c0e63517f89cb94b6bff92d5b9bda6a663f8
MD5 245e8089e0e8db06fd3feb4273ddb8e8
BLAKE2b-256 b3a566249282c73c72634c26e1bfbdcfeecaf2e2a159eb0ce1373aa6104e1565

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for candlesdk-1.3.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6c16dd3a72c63963279e1e831fbf6cfa65e07adf8bcb5aa6174adaae48e3a029
MD5 820dd0f67c3f1e4a9ea25949870171de
BLAKE2b-256 57da06c94137fc3a77a7013c580177447ffcbcf064f8c9fbf14f6ab9bd558a3c

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for candlesdk-1.3.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e82c0e5553c2fd5664aee16b4e0941f5c5e812f664136f7c62b831dac13aca0e
MD5 888c218ffd89c5c55d6838135070e194
BLAKE2b-256 808fdf15b65b545784ede8a84e3f343e0e7688fa25d9cbef7287f1af532f82c0

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for candlesdk-1.3.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd7e12067bb6f25d48726fa1b1245975942540adae454b94a5c54e57ae5222f2
MD5 4554056cb4307ff28304c822090fca63
BLAKE2b-256 394d3e9d8c9be40b7c58ef929e379d78ca84843679f1e7fa3af40a073c27f222

See more details on using hashes here.

File details

Details for the file candlesdk-1.3.0-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for candlesdk-1.3.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f930ae79be1fc6a9d113596f1245eebdd033351f7817a1e77fafab0352050205
MD5 a33e68c5115fe15da447177d80c1b098
BLAKE2b-256 5c034b0ce6b341e05cfb077cbf0f6c561b8cf010b5c7d585b80a1f5803a9133f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page