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.1.0.tar.gz (34.8 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.1.0-cp314-cp314-win_amd64.whl (681.5 kB view details)

Uploaded CPython 3.14Windows x86-64

candlesdk-1.1.0-cp314-cp314-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

candlesdk-1.1.0-cp313-cp313-win_amd64.whl (658.6 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.1.0-cp313-cp313-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

candlesdk-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

candlesdk-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

candlesdk-1.1.0-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.1.0.tar.gz.

File metadata

  • Download URL: candlesdk-1.1.0.tar.gz
  • Upload date:
  • Size: 34.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for candlesdk-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4c970dea6b02772d004b78846c9dadb00948a05b7d309d0e8951a2ec171bc10f
MD5 96a5a90b65d842d8290da6955ab0e58b
BLAKE2b-256 3395a62e0c39c84cbe48c7121cb2d8760f002aafd27e97b15cdfab3a3f21b792

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.1.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 681.5 kB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for candlesdk-1.1.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 49622804c0fc90985a902ef6a7a42d8eeec976f2106bee697a2ffb86e7479215
MD5 d82f2c200a5a242815c56a5d0429f21f
BLAKE2b-256 a4aecdfea4c0881b097347eb8cd32bd9fb9a1c114490b53cba2903d2f06df982

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.1.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ab894c6ee3fd34f347691b8f28ffe9703455373e2af90df91f9aab2188533b03
MD5 653df9cca3285e7ff2f87d830fec2d3e
BLAKE2b-256 575023b3d69325f8eaa98b41aafcacb7d01bf9644c592d98f3ace5bacef74262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: candlesdk-1.1.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 658.6 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for candlesdk-1.1.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 789306f31b73caced4d46c51cee822bcdef129c5767292a9d72272ef113fa1b4
MD5 8c6d6222601f6326074a30b3a029c95d
BLAKE2b-256 a4ec7ce5c59cac50edc0de95851583685ae5373245fa09aaac8dab3e53c43408

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.1.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ad36b7e064d0979ba03fb3fda1be07c9e123a5e347db6b8e3689419e2e179bdc
MD5 bfc5a1dd038ca81ec65c85968b7eec2b
BLAKE2b-256 d420ca23b361cd90c19ec5fd45d5a5aff86a1766a2383a09c97fec606ea423ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.1.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6914a41e4769501ce5fb0b809e7de56e67cad52ea8f23df131a9047ec5e48f7b
MD5 c43a4fd811ac5d739f29df7ba0a11d89
BLAKE2b-256 df3f64d60f313d8b3cd8645f5af3d568fcf2efc2c8df80ce2faa7562319b1e0e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.1.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6ce7101b8eaab9d5011887be76f6ac357957b9e2ebdfb4d6493dd3a21bfdc682
MD5 4d1de465bbaf5111bfb9e4c29858f0ac
BLAKE2b-256 d5b670a87525fe4b48c5a318fe272d34ff2b84edebf3f37e519d0d4e5b084d64

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.1.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d57127bbe5e4d5c8d1e74c4d540262c50c3676962186a2c821b3744df4ce8ac
MD5 e2a4a7b744ded3bb6981599debe84318
BLAKE2b-256 6a41efd936c06b95dcb1a490602df52741408a179d2e8b269c5d7cf04701b881

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