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.2.tar.gz (57.7 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.2-cp314-cp314-win_amd64.whl (719.5 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.3.2-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.2-cp313-cp313-win_amd64.whl (695.6 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.3.2-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.2-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.2-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.2-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.2.tar.gz.

File metadata

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

File hashes

Hashes for candlesdk-1.3.2.tar.gz
Algorithm Hash digest
SHA256 47c656c2b29d321f9564fde972b7dfe1102b038c5c3b6d10c6fb3eef984e7996
MD5 8d849696492bfa3d29b9a780e1062c6f
BLAKE2b-256 1623873db2cf01e7b2f3629523c2ba45988292804e332d145ed981af36b4c097

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.2-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.2

File hashes

Hashes for candlesdk-1.3.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f1e03abc2280685b6e9b5d7f884b4b79db012ce18f2f3a76c2eae51ce973962f
MD5 eadc5980ba72610fcedacf80c0f6b076
BLAKE2b-256 6427709a9f6af5ebc2c28f594dc6ebcbc6ea640802b97167fd42a2acd31a53dd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 82e88a77a9e53a9570e13dbcd55302d265ba8ecd42d95950a1b646ab1cf413f7
MD5 6f4e9148f552c36f08923a0d2dcfbba0
BLAKE2b-256 aec5102109b9b11893bacbbfd1c40790cbb01c08738cda3cfaa05b1c6dc9a176

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.2-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.2

File hashes

Hashes for candlesdk-1.3.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c265e6b9aeb70ad65a65fdc3f3828a8de4a01875061bc933f5e0cbdbb043b274
MD5 715abfa1fd7445326802b43667612d78
BLAKE2b-256 8b7f821bc40a6fd73359764246ab1db4bfb9aa11cfb33f6b90ccd0cafe9cda8a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd7e38701cc2b45d59ae79ba56025df61d6c32fb3f9a91ab2c67f021ef56805e
MD5 1816b29625f8e5526e0834c1950c3738
BLAKE2b-256 cc57c9932bd24f5898beb0242863a57687bed0f747a469e6085114209912ad05

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5d26256d4fbb6b6f8fe6f5b757aae12800e1f443563afa4a10eb9f225fbccbae
MD5 4fca400a346eac11884d86997ba8da27
BLAKE2b-256 61e1fb7477502345432af8d45656dfdb20972b4e531b16bfeeae57da33851b26

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6dee9866d7e8476bbc1cd74707eafe8dec9074b245c59e4d04dce0144a1ca3c0
MD5 a8deb6d19b1a7a708bbb984e9c0902bd
BLAKE2b-256 def8bc9e41f5429ada8d9cf1334ed5886fbe7c8ccfdca4af1643551ec07fd8a5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 648be7b021681ef143ea2c5254a3ed4c2cecce9043f5a73bb9b949ad3fced2c4
MD5 a1292f202f8e04e5504e72d2e8c9e16a
BLAKE2b-256 22c4e4f81864b2173943dfd891e7da8bcf9395e0599aa7c9e4c19a19705f45d2

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