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

Uploaded CPython 3.14Windows x86-64

candlesdk-1.4.0-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.0-cp313-cp313-win_amd64.whl (705.7 kB view details)

Uploaded CPython 3.13Windows x86-64

candlesdk-1.4.0-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.0-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.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.4.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.4.0.tar.gz.

File metadata

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

File hashes

Hashes for candlesdk-1.4.0.tar.gz
Algorithm Hash digest
SHA256 c9133a5af98a337e5b6f29f86996327fcbdd7985c14d7ffe23685330001ea4a9
MD5 207daa3a131d270c80d040743f4c5df1
BLAKE2b-256 aeec5700836436389a521f90cfdef7a5de3eeaf74e67e6150257fd9b0bd3b516

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 088d8219a66c9b36be52158940d1686fcd6e2f80e2401aa359d6f6da964ec1d7
MD5 4ec29b4bcb2a0a1cfb70ec8ccea82fb5
BLAKE2b-256 98e1b2021f8928681c4fdc73a909a66af70eb50917c4e428760e822a02694b49

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2368057900afd0c034dce720a0f4efdb0cecac807b7d4b39f706635bdceae20a
MD5 ae0db28a9522e273819d27e26a0e72fb
BLAKE2b-256 3cdbb271655e4ac40de7ead7327a34fcc4dbc2624f8842bf79a9a090179e5140

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for candlesdk-1.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 dd05943d9118c6febbc817a48a9ef6145ea0157f41847c3b604a3df35c61526f
MD5 77b5195c4c99970b274a1f44ba43dbf3
BLAKE2b-256 5ce29c19f155424d3438ed76a79c5c36ffc216bf8038d44334ea3202c91be611

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5ae2648881be2e06bd5ffd8b9357b0fc60daffab1cfb843e90a2ecc24de03968
MD5 3d0c5ce9c9e35e603690d369d1abc221
BLAKE2b-256 d32fe9d2a93a9da59bc9478b4cfcec10b37da2e70e1a4faca66bc61bc76c0c1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 bb424546703a6397ef758ebdd6c63b17a81a651db59f0485387f102f7f2f591f
MD5 b1bb1011c3f466260383aa945900fcd8
BLAKE2b-256 5071e49be938c0c5f04855ea3fa73e1194801ec96f8f48ad20f58687e6405790

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8ccac9d1647516730da9b2af764d010773b43c5e3857ad93cad543e9d4835f7f
MD5 e49645e078fefe284aaf8afb514f98b4
BLAKE2b-256 c69098d78105604a1df7aa37ab80ba7c160b44b4481cc9caf649b869f904bad4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for candlesdk-1.4.0-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5eb3128a2018c539d6a8ee65978f4f748ccc1afd1eec09e5b54518f257b9dbec
MD5 c52e90281384c73685f33ef663a560e3
BLAKE2b-256 af33aae279596f1c9c3e94293bae01a61401354581913e915e61ed4c04a1dc8b

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