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.1.tar.gz (47.1 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.1-cp314-cp314-win_amd64.whl (700.7 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.2.1-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.1-cp313-cp313-win_amd64.whl (676.3 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.2.1-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.1-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.1-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.1-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.1.tar.gz.

File metadata

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

File hashes

Hashes for candlesdk-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f1983348bebf13d4de162391317db438042c45004cc99b30d53c4f92b29a263f
MD5 413f0dbe3d42face154fcee488fa9312
BLAKE2b-256 9bdc7749b4e60d8488914fc8a55ef019052aa7b44561aff2a094837c0946de61

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 26b204a6bc8e7c7c9d21e1cdfe35b3d69eb889b7830e36bca699c49799fd39b9
MD5 d17c8bbcacdf318b78be5eef5efdac01
BLAKE2b-256 5203ddf8d0f41b9787c8e58ea1970ababcf527089b10faba8f62a97a7ade7d57

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5b7cc5d3562ebbe191efaf73778d3101dc1c98fc5c98d20d747a98790a3e9a57
MD5 934f0334b736428c4568e9bdbfed2d5c
BLAKE2b-256 1e098be3d153a23642ed06521c992f7e878553033818434f361c71651c998b69

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 5b87bc66316042b3e676908131f6b7c44bce04d436aaa9009c46fe716d0bc0c8
MD5 ba0ec1e74b8ef384fe96c3bef7dd6c5a
BLAKE2b-256 99a49bc4d37953e61a71979579e063b5e57fac12e9b0aecae1085d04adb74a13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8929535e8bcc9f0e8361d7a30e1cdc689877ebf4fac6db8beeff194843be2b73
MD5 8c670372d9a74472e226bb7df0c66d73
BLAKE2b-256 904fd5a5f9c54f192c95add0119d8a83fa0e599b15e651c6d39e2529d13fccba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2860c48054bf285b58b13468fb63ff75a433e447150bc7135cf3163a53498300
MD5 b81d42d76a4ba3576d0ea12c00de54ea
BLAKE2b-256 f8515444112dd11bb90c8a14c0e4c21a9a9f803239775acea3f649763d50ce65

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 00a880faa25d51b4b2f832782c488a2a62283ab37f03b67e3a24f1c880f7f5f3
MD5 4163bdfa0a93b6c454d8d6b5136b5be5
BLAKE2b-256 e6cb4816e0d836d1461ea75a90f161d4f5801fa6d5aa0e620ece31fb90908ca5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 820a3cd1f176775a7ab212fc005ad9ec96bc4ec1cb82b1a442bfa5b31a0cf984
MD5 15dad449de551e9e53e20b89eddca8d4
BLAKE2b-256 809087f0342df40496b5b259dfc47e1d97bc964978f2b5e8cf29c84376ca1144

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