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.3.tar.gz (22.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.3-py3-none-any.whl (21.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zainar_halo-0.1.3.tar.gz
  • Upload date:
  • Size: 22.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.3.tar.gz
Algorithm Hash digest
SHA256 0879e32212e270dc41b61630bfe32709a5703f8cd791dca557c73eaa0da145ab
MD5 3682c027f6c90ebe224a3c80a84a04ba
BLAKE2b-256 1f61f323a35b990cb85b487f4033fa228a84c7a290a6aaff0904acd4aeea242c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zainar_halo-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 21.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2a7a08b8374b52e8ac7113ef4bf5b7cf704a19936db9647925b00219c74f5888
MD5 f0ed1b9eff720a97ba349a6ef249cee3
BLAKE2b-256 c7aedfa62220399d6d3bc7937cfbd9fe91bdbf869bfb846936e49b7a9ec9a40e

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.4

2 files

This release

0.1.3 This release

2 files

0.1.2

2 files

0.1.1

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