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 edit_pois --map-name <map_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 in a formatted table with size, built status, and POI count
  • tinynav map build --rosbag-name <rosbag_name>
    • allowed only in idle
    • starts the map build workflow in a tmux session inside the container
  • tinynav map edit_pois --map-name <map_name>
    • allowed only in idle
    • starts the POI editor for an existing map in a tmux session inside the container
    • opens http://localhost:8080/ in the default browser when possible
    • reads and writes pois.json under the selected map directory

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.13.tar.gz (12.0 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.13-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tinynav-0.0.13.tar.gz
  • Upload date:
  • Size: 12.0 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.13.tar.gz
Algorithm Hash digest
SHA256 16051a2e1cdc234c9ea82b6d5b05ce95b04e077e16df190e63955bb7dd4d0b8a
MD5 8985fbe7e71264630a27b850f29df8ab
BLAKE2b-256 2d3a63771624f84542fe2400f8d823249d709685957ffffd3892ef3e3c4fb5ee

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinynav-0.0.13.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.13-py3-none-any.whl.

File metadata

  • Download URL: tinynav-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 12.9 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.13-py3-none-any.whl
Algorithm Hash digest
SHA256 ca04c95e0c5a9c5845bdd8895a8481ae88a4bf24ef025c44e015c23d4bcb0b70
MD5 e52015a1f9f3e041cb3bfa74c718aca6
BLAKE2b-256 95064168fda01783403dc93a5f986c6aa4f82317b6edd9b36b030c82acff2596

See more details on using hashes here.

Provenance

The following attestation bundles were made for tinynav-0.0.13-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