Skip to main content

CLI for TinyNav

Project description

tinynav-cli

A lightweight command-line interface for TinyNav.

Install

pip install tinynav

Commands

tinynav init
tinynav doctor
tinynav example
tinynav nav
tinynav map status
tinynav map start_record
tinynav map stop_record
tinynav map build --rosbag-name <rosbag_name>
tinynav map list
tinynav sensors
tinynav sensors --preview
tinynav version

Development

uv sync --dev
uv run tinynav --help
uv run python -m build
uv run twine check dist/*

Typical flow

tinynav init
tinynav doctor
tinynav example
  • tinynav init prepares the container environment and builds models.
  • tinynav doctor prints a machine report for debugging.
  • tinynav example launches the rosbag example workflow inside the running container.
  • tinynav sensors checks connected sensors inside the running container, including RealSense detection and whether a ROS 2 looper node is present.
  • tinynav sensors --preview launches the sensor preview workflow inside the running container via /tinynav/scripts/run_sensors_preview.sh.
  • tinynav version prints the CLI version.

tinynav map commands

The tinynav map workflow uses three runtime states inferred directly from ros2 node list. No separate state file is used.

Map states

  • idle
    • default state when neither recording nor map building is active
  • recording
    • detected when ros2 node list contains /rosbag2_recorder
  • building
    • detected when ros2 node list contains /build_map_node

State priority:

  1. /build_map_nodebuilding
  2. /rosbag2_recorderrecording
  3. otherwise → idle

Commands

  • tinynav map status
    • reports one of idle, recording, or building
  • tinynav map start_record
    • allowed only in idle
    • starts the recording workflow in a tmux session inside the container
  • tinynav map stop_record
    • allowed only in recording
    • stops the recording workflow
  • tinynav map list
    • allowed only in idle
    • lists rosbags, their directory sizes, and whether a corresponding map has been built
  • tinynav map build --rosbag-name <rosbag_name>
    • allowed only in idle
    • starts the map build workflow in a tmux session inside the container

Planned data layout

All map-related outputs live under the TinyNav XDG data directory:

  • rosbags: ${XDG_DATA_HOME:-$HOME/.local/share}/tinynav/rosbags/
  • maps: ${XDG_DATA_HOME:-$HOME/.local/share}/tinynav/maps/

The intent is:

  • recording outputs go under rosbags/
  • map build outputs go under maps/
  • map build consumes a rosbag name from rosbags/ and produces a map directory in maps/

Project details


Download files

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

Source Distribution

tinynav-0.0.12.tar.gz (11.5 kB view details)

Uploaded Source

Built Distribution

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

tinynav-0.0.12-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

Details for the file tinynav-0.0.12.tar.gz.

File metadata

  • Download URL: tinynav-0.0.12.tar.gz
  • Upload date:
  • Size: 11.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tinynav-0.0.12.tar.gz
Algorithm Hash digest
SHA256 b89de97a95196f50b6264d389064f243def94e51e2852682e714f80d86bc86b9
MD5 7d67ffcc8b62db27909477e52239e32a
BLAKE2b-256 d99b1b73fcd2047a44b5773536392c57b22b87b0f9d96f708b50777095296f43

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinynav-0.0.12.tar.gz:

Publisher: pypi.yml on UniflexAI/tinynav-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tinynav-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: tinynav-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 12.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tinynav-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 d6b51c997335588c92464bbf08b848133e493230ce439f3df50a0a59d8f1e639
MD5 c47a639b5dcf2c529d288226d67c4d42
BLAKE2b-256 46ba1c2b3d3e5eb8e52f1426acadb8c8a152550f0cd31db71cbbcd0b20c51fea

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinynav-0.0.12-py3-none-any.whl:

Publisher: pypi.yml on UniflexAI/tinynav-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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