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

Uploaded CPython 3.14Windows x86-64

candlesdk-1.2.2-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.2-cp313-cp313-win_amd64.whl (678.9 kB view details)

Uploaded CPython 3.13Windows x86-64

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.2.tar.gz
Algorithm Hash digest
SHA256 925d91e52907d869d5044a93301ee39e3ca66086bb41a5e5c7eeca7bfae06e31
MD5 1f2760e8ff1b1afb89810f321629c1c8
BLAKE2b-256 3dcdee727c285676f457584d3a0896091af20986c5293831d1366a741263d26b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.2-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 29b6d44bb4c6d7aa79bbd75efb29ffad9adda1bc0cbb93984748959f2e2ed4c4
MD5 6ecb79bf912c942969df263743e3a8ff
BLAKE2b-256 c9cd713cd93535b9de9d23317c0e89350dbc96ef0cf18164d28e3553475ea50c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.2-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 21b7058f6d0ede5855f43b2f5f1c5529fb1b20f90e185967ec5aaa8f2071a961
MD5 8ae17c9c77c257958d4883ef396075bf
BLAKE2b-256 a75e9423c13335ccef79390aab692b3c84d281341cbae0516411bd16318cfd5a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.2.2-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 bd5146a794dabb4da5957c1898bbf23bb2d11bdb320408da7c9490c116e9377f
MD5 17c7b722a843cbc3de991e04cbbc0d77
BLAKE2b-256 d6ef9f06daadd214b128d83932399a3cf5cfc08251833d8b1ceaec3b0e473302

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.2-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 d9d942ab3a3315115d9edd6c8d1df2a8d21228b81eea7ed6579b639e57a7b97c
MD5 37a4e91c52555de654d7b5dc965132bb
BLAKE2b-256 5b90218e510cf9f4da03e9249ecd7f5e52d665eb49e432538cb538c1eb13c05c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.2-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e2126c59196462a036a76c591604c29de6829a856f61187d1267f2f1d83f05cf
MD5 0006fc2f71ca6dd31553facb1de70b8f
BLAKE2b-256 b931eff61d06ebfeefb25ef30e0c02caf377e96b0d15dd792d5896fc4135c8fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.2-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 72bccc6759dc620d0da54699a841072bcd6f115505841d21c7e7d64249b7556e
MD5 8c733cef354e139b6a660586eebec2d2
BLAKE2b-256 bc7f1f3522e42981d632df5477b7a8e16cec9648c6bf295ea052301c97e194df

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.2.2-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b1d5cd249258284a0ac4570ec4b1dabc9a44fe66b6216bb09df9451c791f9697
MD5 ce73b70c2fdac7fd6caa03ae54eada21
BLAKE2b-256 aabba58bf4357591cba9e470a6276211537e21af3ad10a1d44e6f7fb0621a9d7

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