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.2.0.tar.gz (47.0 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.2.0-cp314-cp314-win_amd64.whl (683.2 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.2.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.2.0-cp313-cp313-win_amd64.whl (659.4 kB view details)

Uploaded CPython 3.13Windows x86-64

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

File metadata

  • Download URL: candlesdk-1.2.0.tar.gz
  • Upload date:
  • Size: 47.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for candlesdk-1.2.0.tar.gz
Algorithm Hash digest
SHA256 6c6d0007ecf88ae0429a1bf2c971df23af335fb81018bda18fe983fde3206894
MD5 5fd8016e2f2710c06eaadc5860d152ff
BLAKE2b-256 9fafa69f42d784a2ae901c06cc2e18f0ca5161149602fc065a98a4c6b3f9711d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.2.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 683.2 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for candlesdk-1.2.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f09553bf2bed95399c407a33fe45eaa8fdd9d6fbbed8d5613acb935c1ee02987
MD5 915307fb9e457c99574048a54ac7e94c
BLAKE2b-256 2bbbe1ef0f5d775dc0fac1407c08c16fc85b9562e3b6598d2c0cae6c3fd4ae9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3393e804ac4eb4a5ad9edf6ea3908c7b2e78d85d3ee54a41716b660383ab12d3
MD5 642786398a57f4d005c4ba75b4d707db
BLAKE2b-256 b3479d5850d44be48005e7d58a77de65f4623f99bcfe3953dab44b60ab9833bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.2.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 659.4 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for candlesdk-1.2.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 b602a5851d4472f2bcebcaf930c37f60804f2eb91e6938a7da657d9f328ddeff
MD5 3f356c7c76f57ff6e0ab8fe4c75202cb
BLAKE2b-256 75269b5319f1de35cefc56b93ab91a4082f342f3ddda80e3dba2f723f16168e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0a72101ea7cbcac058d76716fc009bd84b21de66c58c9c14a3047c0bd1dbdef7
MD5 3fb57b3d0d5c42ff42834ba485d9cfd1
BLAKE2b-256 4119db66fbcee4461885ced4052cf03477da41dfa9aa45e499797930c0b81fa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 19764efee0c0a133c77bf2f960f3bc2f1a677414c55ac052bf22f669a2112cc9
MD5 4b6c28b255b369015b00b14c320b5ef3
BLAKE2b-256 0d6c2908729fd65a09e09acedf7b3806d9894c840dd03f23e26a3e840ab891b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e61efabff55ab5cb9a7413fcb9b9d8e77143853984f634b5cd622b93d1578f23
MD5 97171a631333d1e3a1c9c4725835caf1
BLAKE2b-256 1d9bc614d84c8fe772283b64d6192e448bfb2e451291cf7462a33bfbe2d1a643

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f0ff65e018e3f101f5d1efacb5d70ba0876969455d8f7d15893802c5c5598931
MD5 f9d12d61e1fe88dd2e0ad840244319b7
BLAKE2b-256 7c13e67d342cf8d71640231303c99023e204666b1aebbdc65c5100636c5c15bd

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