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.1.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.1-cp314-cp314-win_amd64.whl (719.5 kB view details)

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

candlesdk-1.3.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.3.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.3.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.3.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.3.1.tar.gz.

File metadata

  • Download URL: candlesdk-1.3.1.tar.gz
  • Upload date:
  • Size: 57.7 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.1.tar.gz
Algorithm Hash digest
SHA256 290f8fe3d904c756a23f21754f938bb098dd4dd9df8b8597c1cf293e91543d1d
MD5 6a053e824711fb61af3de0a9d8649ab6
BLAKE2b-256 20dd726ee677930713b52c0b64e7689ca25314aac44265ee0bdaa3a7aa92cc07

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.1-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.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2ad554f5c5392a5cf62d8c059359f9fb8d571fb32f2b78e31f3fa38c90cdeb85
MD5 18ac948ee70926dde3c959207ade127b
BLAKE2b-256 da83fd602c3f88ca8be59910cde08a247bd1eb5dbb6d8766f96be579149dd7f2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 eea5711ec9355fb34be3f7bafa6f83180e1de6604eff2922aae89f1928b0df3d
MD5 eeaa2ba4610ab21e6011408925a9482c
BLAKE2b-256 6bff24c28ba485ab0dc27b9e4c257abb5ca9ed335cfd4d83ab5ee2f4b1435c6f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.1-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.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 39528cccb0e9d2b204e7f111d1ee56921d0f97528aabb815c1a5fab9b777cd4f
MD5 5b014461ea1ddacd42905ac4e6759789
BLAKE2b-256 57bc2f213c2b6e170446c4eff9ef55af1c6d2b26a640603ef3e1b7e97c7fb9ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e555edf5ce9efc96bcb65e076828a782c7c366c066d312ae7fa9736cf53fd577
MD5 34661af4c7c6c88aad854c5bf6e18238
BLAKE2b-256 84efc24645e0d49f6e951e3fd8530ebd5bfd34741acfab0c3dffecae9536fee9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 43c72354abd45f0b4321c21c2a98cb27083bd36049e07e48fcc0f98074d595c7
MD5 7c548d03229c1d8486d9444fe087e023
BLAKE2b-256 8f7d858cfe00897cf21d90f0e051efafa2285a7100688dc36e67e6fe300b3974

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 62ded685eeb80bdf7bfe9de7f9c7b1a57e6e6481f2282466bfa634401c30ad9a
MD5 d3b5bec3820e088ea0464d99e75ccea2
BLAKE2b-256 e037167acde656e838f0d8a86c4915a4870164f8760b45613525a8aed7645e9b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 613177737ec08c339ef04d4fa0603f87867b2a20c80b4dd9d00a81501aba039d
MD5 83cf254a7e52d909bef13fc898d19fe7
BLAKE2b-256 477090e3483d6b860baab50f0d46adbff4fbae447dcad5bde055b20adc836a56

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