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

Uploaded CPython 3.14Windows x86-64

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

Uploaded CPython 3.13Windows x86-64

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.3.tar.gz
Algorithm Hash digest
SHA256 2476411bba95a5fc78e0e65a978a6f710d0ed100153e41cba05a63adec24f5a7
MD5 cc74fc60657199dfeaec04eb871fb039
BLAKE2b-256 5c468e03292c086014e2ee072056c923f07650523e92d96aae54011a38a333f8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.2.3-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 703.7 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.2.3-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 a9bbf92a5a836d8ab6a9bdb33e072957206576f3b1cff67a1fb5b872ef36d564
MD5 6cc5c34500441ae3462cdd2b7fc9e1e9
BLAKE2b-256 fd1c2ac34f793fadc954e5ec67de525a99c07a5fe253fb72ff73821a4a2bb392

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.3-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3283dd03f95b15139b896b5504095dc2fc808169a12346e5c0d5e0d602f79d50
MD5 a86a67242f1b7fed1935832082836f96
BLAKE2b-256 098c9578ca5da936a7779efca11af648279e5f82ee076f7e0c8f411bc0b296bb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.2.3-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 679.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.2.3-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 c31da973d4767cbd0a1253c30986eab509be60c1d624c0309a8ef6298dc0c644
MD5 ea59a3d637c0f5897acb91ff86ac9d85
BLAKE2b-256 33e73dd037e4d1c00fa9163dbc204b4bf2a4c00f7602033fa3cb456fb9a77d31

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.3-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ee8bd4567ab22c9159c151ae3ab477ba0f18aa5a35dd1af5984be4b031fc7a30
MD5 0c3bdb3ceb8e6548db678b13d91ed865
BLAKE2b-256 6a728c4b557fd3022c54d1af66f7461bd7bb73c09aac6484b2bd048dd846a132

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.3-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 dc550d9c5207134da47359ef53b2e897932b266042310aa1fbd143dc579a6639
MD5 9908341bf252645e30f8b20029226e83
BLAKE2b-256 5f7c793d38e7743dfb987a8130c4c7fc52e6cb0de096e99bc1d4af18dec6bdb8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.3-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6ab44c18bb79e506ea66896bf108c11ed062f123f9b40cce1103c5875618f8f2
MD5 cefe73b2285f0acae98c63ded910bf3e
BLAKE2b-256 5014482973eabac2eb25caa5d0d4f98fe83a2ddd62e8958854c51237707beb1c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.3-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 88f5a209eb03efa6407189dd584112bd11f379f5126471fc64d949392b2e3481
MD5 44172c279783b861bce5a240bebe5618
BLAKE2b-256 a87fc0debc6862ace23165fcbf278d94f9788db5d5177e0d68c3943dde60af2f

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