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.0.tar.gz (11.1 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.0-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zainar_halo-0.1.0.tar.gz
  • Upload date:
  • Size: 11.1 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.0.tar.gz
Algorithm Hash digest
SHA256 82ca6584210f44f04246ac52964b012e5aa6bd040aa313f8e681f6011817c34d
MD5 2775a6c6d9ffc0e1e0fcc987e483878c
BLAKE2b-256 ff37fc59f79d80d2f3cff045b937e2ae8d0b6bbfeb81e8863e9e4dc58ef5b6e3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zainar_halo-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.5 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e9178dbac74651434a10df56294c6cfce97fe6b3061952cdadf20291ca9ebad
MD5 18d59dceda9975068994428c01d7a53f
BLAKE2b-256 d5007c3e923934be2f43682b72c8c3598fe0e6581cafcab303f12dade8345428

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

0.1.1

2 files

This release

0.1.0 This release

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