Robot integration runtime for the ARENA
Project description
ARENA-robot
Robot integration runtime for the ARENA.
Installation
Requires Python3.6+
pip install git+https://github.com/conix-center/ARENA-robot#egg=arena-robot
Or for development, clone the repo and from inside the directory:
pip install -e .
The vl53l5cx_py
module requires Linux i2c interface (linux/i2c.h
and linux/i2c-dev.h
).
Modules
arenarobot
Services that stream to MQTT may be started with the arena-robot-service
command. See examples/service_vl53l5cx_lidar_1.json
for a service file example. All services require the following arguments:
service_type
: Required. Currently onlysensor_vl53l5cx
is supported.instance_name
: Required. The name of this running service.subtopic
: Required. The device subtopic to publish to. For sensors this will always be prefixed withsensors/
.interval_ms
For services that run repeatedly, this is the interval. Set to 0 by default, which will fire the service once.
sensor_vl53l5cx
This is a lidar sensor that connects through I2C and addresses by toggling its LPn pins. It additionally supports the following arguments:
dev_path
: Required. Path to the I2C dev file device. For example, the first I2C port on the Raspberry Pi is/dev/i2c-1
.gpio_path
: Required. Path to the GPIO dev file device. For example, the first I2C port on the Raspberry Pi is/dev/gpiochip0
.lpn_pins
: Required. Array of pins (integers) ongpio_path
connected to Lpn pins on the sensor. The array must be present, and at least one pin must be specified or the service won't initialized any sensors.
arenavideocall
After installing the repo, you should now have the arena-video-call-chrome
command. You can also run it with python3 -m arena-video-call-chrome
. It uses the standard arena-py scene environment variables.
The first argument sets the surface that the video should be mapped to. For example, to map to an object called avideobox
:
MQTTH=arenaxr.org NAMESPACE=namespace SCENE=scene arena-video-call-chrome avideobox
vl53l5cx_py
C shared library
gcc -fPIC -shared -o vl53l5cx.so -Ivl53l5cx_py/include -Ivl53l5cx_py/VL53L5CX_Linux_driver_1.1.2/user/platform -Ivl53l5cx_py/VL53L5CX_Linux_driver_1.1.2/user/uld-driver/inc vl53l5cx_py/src/*.c vl53l5cx_py/VL53L5CX_Linux_driver_1.1.2/user/platform/*.c vl53l5cx_py/VL53L5CX_Linux_driver_1.1.2/user/uld-driver/src/*.c -l
License
Copyright (c) 2021, The CONIX Research Center All rights reserved.
This source code is licensed under the BSD-3-Clause license found in the LICENSE file in the root directory of this source tree.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for arena_robot-0.1.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16d06ac45814ae994af6b1b906c148d543048cbc33a924913a91ada23092d53b |
|
MD5 | b9659764ecbd7d6c07f90fd548ea35b8 |
|
BLAKE2b-256 | ff7eef91714a3e206700ddf1ba67d0face442966020b2b2a64b78032ae5fb625 |
Hashes for arena_robot-0.1.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 782de3492c97e6b354b3f693ce0762dfb16711c36233de4a92607138d1dc4c78 |
|
MD5 | ffa35f80272f886f8b18d4590e4912c6 |
|
BLAKE2b-256 | af1ecbcd596a675df540fe28a90b61dfb1e9e9ad04c24b2f899b6f43a70a10b2 |
Hashes for arena_robot-0.1.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3863a27b472c28fdbdcfd38e07e3c57084e814b481713866291a0c27bfc5e96a |
|
MD5 | 7b05f8a0d95a6291bac4fabb7c7174ae |
|
BLAKE2b-256 | d650dbac509b600d9b074944001827de5143c1280f8a4b83af474f52b77bad96 |
Hashes for arena_robot-0.1.1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d66d266932c8237ee699681bf086b5007d024c2ba6f33abe324bb4eeb939c4b1 |
|
MD5 | 47cab6b670e2adb3ba2082715d7caf06 |
|
BLAKE2b-256 | 7d793856577baea9c03e66ddeffe39711960923f5df7dd87776caef3ca050433 |
Hashes for arena_robot-0.1.1-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e044e6c193abc3516c2afb8fc21b4a90ad1df3df05b81a6e7326a564bf4fa855 |
|
MD5 | 4f035cc5e7c07f36921205e2e38b80ab |
|
BLAKE2b-256 | 61d0b6a02544942f8e167b19cb001d9b27f182a9473f01f70f71a10a08cb69d6 |