Skip to main content

zainar-halo

ZaiNar RF halo awareness — egocentric proximity for Device Connect nodes.

A robot's onboard sensors see line-of-sight only. ZaiNar's RF network sees every tagged entity in a facility, through walls and around blind corners. zainar-halo packages that awareness as Device Connect–native primitives: a halo (per-node view of surrounding entities) computed locally by the robot from a zone broadcast, with no GPU and no training run required.

Install

pip install zainar-halo

Requires device-connect-edge>=0.2.5.

What's in the box

Class What it does
HaloConfig Per-node filter spec — radius, entity types, time-decay, detail
Position One tracked entity's 3D position (cm-int, spatial_vocab wire types)
HaloProvider Computes halos; also provides heartbeat_provider_for() for stock DC
RobotDriver DeviceDriver subclass with @on subscription + local compute_halo()
TMIPayload / TMIEntity TMI (Traffic Management Information) wire contract

Quick start — robot subscriber

from zainar_halo import HaloConfig, RobotDriver

class MyRobot(RobotDriver):
    async def _on_halo_computed(self, halo: dict) -> None:
        # feed to costmap, planner, alerting...
        nearest = halo["nearest_entity_type"]
        dist_m  = (halo["nearest_distance_cm"] or 0) / 100
        print(f"{nearest} at {dist_m:.1f}m")

robot = MyRobot(halo_config=HaloConfig(radius_cm=1500, entity_types=["forklift", "human"]))
# register with DeviceRuntime and connect — the @on subscription is automatic

Quick start — heartbeat provider (stock Device Connect, no core change)

from zainar_halo import HaloConfig, HaloProvider, Position

provider = HaloProvider()
provider.set_config("amr-7", HaloConfig(radius_cm=1500, zone_of=my_zone_fn))

# returns a callable for DeviceRuntime.set_heartbeat_provider()
heartbeat_fn = provider.heartbeat_provider_for("amr-7", live_positions, now_fn=time.time)
runtime.set_heartbeat_provider(heartbeat_fn)

Units and conventions

  • Lengths: centimeters as int (distance_cm, radius_cm, x_cm/y_cm/z_cm)
  • Speeds: cm/s as int (closing_speed_cmps, vx_cmps)
  • Entity types: spatial_vocab wire values — human, amr, forklift, drone, pallet, …
  • 3D throughout — distance is 3D Euclidean; a drone 4m overhead is 400cm away

See also

  • zainar-halo-agent-tools — FastMCP server exposing halo tools to LLM agents
  • CLAUDE.md at repo root — full architecture, scenario, and integration guide

Download files

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

Source Distribution

zainar_halo-0.1.1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zainar_halo-0.1.1-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file zainar_halo-0.1.1.tar.gz.

File metadata

  • Download URL: zainar_halo-0.1.1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for zainar_halo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0d16e0f45d6e8dd0bdc7697d17900fdaa8d2dcdae7385e48fe8433cde0b2d060
MD5 9066d375ce6cd3eb5d78c014c0e98fba
BLAKE2b-256 32de53e8a3a79564af78ace7d6c4074289357762874ca3aa2674ef9651076386

See more details on using hashes here.

File details

Details for the file zainar_halo-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: zainar_halo-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.13

File hashes

Hashes for zainar_halo-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8669c4d2e928b5cac97b387b4e68c19346d373a9011367894e307a05526c9de
MD5 1f03f2cd675f23c281019780543e533e
BLAKE2b-256 d219c8ffdb092c215193342f9239773905efe47fa853984c4da614306505c011

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page