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

Aquire the repository via git clone:

git clone https://github.com/mabrobotics/CANdle-SDK.git
cd CANdle-SDK
git submodule update --init --recursive

or

git clone git@github.com:mabrobotics/CANdle-SDK.git
cd CANdle-SDK
git submodule update --init --recursive

Zipped project download will not work as the repository uses submodules.

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.4.1.tar.gz (73.2 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.4.1-cp314-cp314-win_amd64.whl (732.6 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.4.1-cp314-cp314-manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

candlesdk-1.4.1-cp313-cp313-win_amd64.whl (707.1 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.4.1-cp313-cp313-manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

candlesdk-1.4.1-cp312-cp312-manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

candlesdk-1.4.1-cp311-cp311-manylinux_2_28_x86_64.whl (1.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

candlesdk-1.4.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.4.1.tar.gz.

File metadata

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

File hashes

Hashes for candlesdk-1.4.1.tar.gz
Algorithm Hash digest
SHA256 9081c53c54e311974d6adb4a188987b2275aab6df1a75ce8f0c76e3f4b468831
MD5 47055613f9266e6e05493905aa641aaa
BLAKE2b-256 55fd0cbbd3eef1cafc18f4e4098e17f3f75f400d7982fe0995906182ec6c86bb

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.4.1-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 177ccb1ee26655bbe49ee5b2bbecd624bcc07a48946886f3eca8c6c612500915
MD5 7f99a0cf766c7b1475f8960b029a4bac
BLAKE2b-256 13955f115b19dd20e17dafb105abbe642a20a94d433f490a997201fa3a4ddea0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.1-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f9e827e3e62ed584685c9b23a23362b4609960d4d76d4479c59abcd5fa9c94e6
MD5 b6ed37e59811b3f62a42792392c4e8ca
BLAKE2b-256 5cf0b350a2c1518a79cefe9280184675572345ead902a6def88906de10f48bd7

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.4.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 352f9afe491e7fd4861921ad898401a9d9ca867a80711eef493481db643735fb
MD5 3ba39722b0322092476f45ac894be710
BLAKE2b-256 34d21966d2e27f1b3db145aac3bd56a52425774706571c44651d9b4fc6e0697a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.1-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 99b676a68943b7bb2d83659dcb0bbe4b799e63fb3e809c41bea296fce8505adb
MD5 05dced72f36111c00782eca22dc1adb9
BLAKE2b-256 36643a337a7cfca0b5094d81f399d201d3d2578d3f55e602a28064c28bc222cb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 84be9f35f10e420b5da2996f73435a0f09d9a4ba5630dd0d1e033cf1f8f1bd95
MD5 58c140bc6bac00b1d3b909cc1c0433bc
BLAKE2b-256 42bfc8cbcbf16edc18bdfe5c45f36ae396afd9c28180c96acb62a39a5c396723

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9e7ea869e1cc8b25045116b6e6849bc845d11ac22b35511275c5a3015f8de829
MD5 eaf5d790513016284bf426ff98560d82
BLAKE2b-256 b4c2c95812e3fa5429aa154b1255daac39f9bc3be861adab8eb8b5c6f657c441

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3831ddcfe40a9fc2e78ce186429639dfe34347ae210a8df3b6598ed5110cc8f7
MD5 2216c9a39a32ce46b607a24cce624d09
BLAKE2b-256 828f7b95ccd41e09f62d8f0b63e5325028818eaaec37e9deedf10933838e912e

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