Skip to main content

Python robot control utils

Project description

Builds Docs

ctrl-utils

ctrl-utils is a C++/Python utilities library for robot control.

See the documentation for ctrl-utils here.

Installation

This library is written in C++ with Python bindings automatically generated with pybind11. It has been tested on Ubuntu 18.04, Ubuntu 20.04, and macOS 10.15 Catalina.

Compilation requirements:

  • cmake >= 3.11
  • C++17 support (gcc >= 7, clang >= 7).

See Updating CMake for details on how to install the latest cmake. Ubuntu 20.04 comes with a sufficient version of cmake out of the box.

C++ only

The C++ portion of ctrl-utils is header-only, but to add ctrl-utils as a cmake dependency, you can run the following:

mkdir build
cmake -B build

Python only

Use pip to install ctrl-utils in your virtual environment.

pip install .

You can now import the ctrlutils package in Python.

import ctrlutils

C++ and Python

An in-place pip install will run the appropriate CMake command to build ctrl-utils locally in the ./build folder. This will give you access to the cmake configuration files for C++ as well as the ctrlutils package in Python.

pip install -e .

Updating CMake

Ubuntu 18.04

The simplest way to install the latest version of cmake is through pip:

pip install cmake

You can also install it through apt:

sudo apt-get update && sudo apt-get install -y apt-transport-https ca-certificates gnupg wget
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | sudo tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
sudo apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update && sudo apt-get install -y cmake kitware-archive-keyring
sudo rm /etc/apt/trusted.gpg.d/kitware.gpg

macOS

Install cmake through Homebrew:

brew install cmake

Or through pip:

pip3 install cmake

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

ctrlutils-1.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (493.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

ctrlutils-1.5.1-cp310-cp310-macosx_10_14_universal2.whl (896.7 kB view hashes)

Uploaded CPython 3.10 macOS 10.14+ universal2 (ARM64, x86-64)

ctrlutils-1.5.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (493.0 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

ctrlutils-1.5.1-cp39-cp39-macosx_10_14_universal2.whl (897.0 kB view hashes)

Uploaded CPython 3.9 macOS 10.14+ universal2 (ARM64, x86-64)

ctrlutils-1.5.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (493.7 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

ctrlutils-1.5.1-cp38-cp38-macosx_10_14_universal2.whl (896.5 kB view hashes)

Uploaded CPython 3.8 macOS 10.14+ universal2 (ARM64, x86-64)

ctrlutils-1.5.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (502.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page