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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

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

File metadata

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

File hashes

Hashes for candlesdk-1.3.3.tar.gz
Algorithm Hash digest
SHA256 0ca7757c0defe0ac668af12761f90af0c0da19093aa7cd4f3e84bb29264d2a80
MD5 3efb945d62d9f4eba5795d9c83dedb0a
BLAKE2b-256 6e91b4124bd7c57cf537aa5e8827e6023e4b58ebbd2488ce34e8991848f9889c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.3-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.3

File hashes

Hashes for candlesdk-1.3.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 def43b70542fc3a90dd42512c8d6a30c3887564d2ec8bb4c56d48ef37e0414f6
MD5 3fda56cd376582a5d8c83b8b5b01f8bd
BLAKE2b-256 a33b98b624d793ee9b462b39fa171e1d3c27e48b9f29e08f46e32321fc847b8d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c081658c7e8af4b344efd1a25af659765da012d066041e99e3e632acfddcd9b7
MD5 04facb11f27bcd3c7ce9d42c0a4d1dcf
BLAKE2b-256 9e78e77dfad7eccafa245980682ef552a03cb2e04783196f0e92168bfdf35e1d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.3.3-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.3

File hashes

Hashes for candlesdk-1.3.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 778da96eb26cdc9851a06e70423d2ba4cf25ad4d16765ce841bcf81f4b65df68
MD5 99a515bfb31f151a49b6a7d31b75712b
BLAKE2b-256 8d64dc46f23ce30e14cf3963e338dab13d846cbd9787da556c032fbd874c3f78

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3d7dc606fcebed82f5f44524843fe1c37f88cf704e2d4347cd8d410946c7dfe1
MD5 0454be52f3ed165e9f7b1875f83fe95d
BLAKE2b-256 e73b96941245dc158f2cf4632454f3e3f9baf958888299c26974ce87a7e2f37d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3f0bca1ca0460cf76ccdb00e3d9a0d04eddfc0554b34d5dc92f28751f6efae0a
MD5 b927d7aad0506c764b70f21fe9d46a90
BLAKE2b-256 83e3c230fde99b4f8c20e9c0a27d55f98d29cc5c26a702fb202465e94afe3266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 04a6f0dc6a7c3bcc9b66f9af6cb1125d90e0b0f604009c37d770c4f71b9d2a78
MD5 d06ea2ac71c153a2ec37e8af7a8bc2be
BLAKE2b-256 114ac5c8b04cdff1398df7e3dac339689c124cb5b8926eb8f9f273acefe2c3b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.3.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9fe9d1b5297019d5899ed7bcb13ace34f383469bbe3d8a60a93bc7df5331c166
MD5 9ce2289eeb5c296ed4e86c3b2b8699d7
BLAKE2b-256 17aadf28a5b4429d8553fd6608aa9e659d8845f375ccfca5ecfce32a1995c4d3

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