osiris-agent 0.1.4__py3-none-any.whl → 0.1.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: osiris_agent
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: OSIRIS agent for ROS2/Humble
5
5
  Home-page: https://github.com/nicolaselielll/osiris_agent
6
6
  Author: Nicolas Tuomaala
@@ -44,45 +44,63 @@ A ROS2 Humble node that bridges your robot to the OSIRIS remote monitoring platf
44
44
 
45
45
  ## Install
46
46
 
47
- From PyPI:
47
+ Install the OSIRIS agent on your robot:
48
48
  ```bash
49
- python -m pip install --upgrade pip
50
- python -m pip install osiris_agent
49
+ pip3 install osiris-agent
51
50
  ```
52
51
 
53
- Editable / development install:
52
+ ## Quick Start
53
+
54
+ ### 1. Add token to your environment
55
+
54
56
  ```bash
55
- git clone https://github.com/nicolaselielll/osiris_agent.git
56
- cd osiris_agent
57
- python -m pip install -e .
57
+ export OSIRIS_AUTH_TOKEN=your-token-here
58
58
  ```
59
59
 
60
- ## Quick Start
60
+ ### 2. (Optional) Enable behaviour tree collector
61
+
62
+ If you're using BT.CPP with Groot2 monitoring:
61
63
 
62
- Set the auth token and run the agent:
63
64
  ```bash
64
- export OSIRIS_AUTH_TOKEN="your-robot-token-here"
65
- agent_node
65
+ export OSIRIS_BT_COLLECTOR_ENABLED=true
66
66
  ```
67
67
 
68
- Verify installation:
68
+ Default host is `127.0.0.1`. Default port for server is `1667` and for publisher `1668`. To change these:
69
+
69
70
  ```bash
70
- python -c "import importlib.metadata as m; print(m.version('osiris_agent'))"
71
+ export OSIRIS_BT_HOST=127.0.0.1
72
+ export OSIRIS_BT_SERVER_PORT=1667
73
+ export OSIRIS_BT_PUBLISHER_PORT=1668
74
+ ```
75
+
76
+ ### 3. Start agent
77
+
78
+ ```bash
79
+ osiris_node
71
80
  ```
72
81
 
73
82
  ## Usage & Configuration
74
83
 
75
- - Environment: OSIRIS_AUTH_TOKEN — your robot token.
76
- - Editable install reflects code changes immediately.
77
- - Common constants are in `osiris_agent/agent_node.py`:
78
- - MAX_SUBSCRIPTIONS, ALLOWED_TOPIC_PREFIXES, GRAPH_CHECK_INTERVAL, PARAMETER_REFRESH_INTERVAL, TELEMETRY_INTERVAL
84
+ ### Required Environment Variables
85
+
86
+ - `OSIRIS_AUTH_TOKEN` Your robot authentication token from the OSIRIS platform
87
+
88
+ ### Optional Environment Variables
89
+
90
+ **Behaviour Tree Monitoring (BT.CPP + Groot2):**
91
+ - `OSIRIS_BT_COLLECTOR_ENABLED` — Set to `true` to enable BT.CPP tree monitoring (default: `false`)
92
+ - `OSIRIS_BT_HOST` — Groot2 ZMQ host address (default: `127.0.0.1`)
93
+ - `OSIRIS_BT_SERVER_PORT` — Groot2 REQ/REP server port (default: `1667`)
94
+ - `OSIRIS_BT_PUBLISHER_PORT` — Groot2 PUB/SUB publisher port (default: `1668`)
95
+
96
+ ## BT.CPP Integration
97
+
98
+ The agent automatically collects behaviour tree events from BT.CPP when `OSIRIS_BT_COLLECTOR_ENABLED=true`. Your BT.CPP application must:
79
99
 
80
- ## Badge suggestions
100
+ 1. Enable Groot2 monitoring in your code
101
+ 2. Use the standard Groot2 ZMQ ports (1667/1668) or configure custom ports via environment variables
81
102
 
82
- - PyPI: https://img.shields.io/pypi/v/osiris_agent.svg
83
- - Python versions: https://img.shields.io/pypi/pyversions/osiris_agent.svg
84
- - License: https://img.shields.io/pypi/l/osiris_agent.svg
85
- - GitHub Actions CI: https://github.com/<user>/osiris_agent/actions
103
+ The collector uses BT.CPP's standardized Groot2 protocol, so it works with any behaviour tree without custom configuration.
86
104
 
87
105
  ## Contributing
88
106
 
@@ -0,0 +1,9 @@
1
+ osiris_agent/__init__.py,sha256=E0YxGzSMUelxIPB6kRPKL-2Da_QaYCZeOd8fEaLtQ5c,73
2
+ osiris_agent/agent_node.py,sha256=Rx1IXKCL7tRhLwZQS4YaJTKuE9A47pRayMSC_plezZ8,39973
3
+ osiris_agent/bt_collector.py,sha256=lFfrjObFnZKgrAb9HUpEpWAROc52QdqPXBjAtRDpkjg,20976
4
+ osiris_agent-0.1.5.dist-info/licenses/LICENSE,sha256=tv_rYfXPsDuLDPIrpAFFZfgaO15H-gz89GW1TfyCQ48,10758
5
+ osiris_agent-0.1.5.dist-info/METADATA,sha256=CZyg3IW7ndtZM-uX2c6aVcr5VKVKqC53Hjex5QNzKsQ,3230
6
+ osiris_agent-0.1.5.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
7
+ osiris_agent-0.1.5.dist-info/entry_points.txt,sha256=eIDN_LuzMOpqZgGnMz8MGqYxZSJ7bS76sm2xv2zwdcU,61
8
+ osiris_agent-0.1.5.dist-info/top_level.txt,sha256=qT-C0LRSrwlNjTuA7bVsTmwYJzhONP18wuyAXwUBZnU,13
9
+ osiris_agent-0.1.5.dist-info/RECORD,,
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ osiris_node = osiris_agent.agent_node:main
@@ -1,9 +0,0 @@
1
- osiris_agent/__init__.py,sha256=E0YxGzSMUelxIPB6kRPKL-2Da_QaYCZeOd8fEaLtQ5c,73
2
- osiris_agent/agent_node.py,sha256=Rx1IXKCL7tRhLwZQS4YaJTKuE9A47pRayMSC_plezZ8,39973
3
- osiris_agent/bt_collector.py,sha256=lFfrjObFnZKgrAb9HUpEpWAROc52QdqPXBjAtRDpkjg,20976
4
- osiris_agent-0.1.4.dist-info/licenses/LICENSE,sha256=tv_rYfXPsDuLDPIrpAFFZfgaO15H-gz89GW1TfyCQ48,10758
5
- osiris_agent-0.1.4.dist-info/METADATA,sha256=HFMNlgTWH2rFWMl9ZBXMmb1YxSplITY2F1ZTopRWykQ,2702
6
- osiris_agent-0.1.4.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
7
- osiris_agent-0.1.4.dist-info/entry_points.txt,sha256=ff4USKDLj8unIsvb7iQrVvfhP52Fhp3QAR5AchypnuE,60
8
- osiris_agent-0.1.4.dist-info/top_level.txt,sha256=qT-C0LRSrwlNjTuA7bVsTmwYJzhONP18wuyAXwUBZnU,13
9
- osiris_agent-0.1.4.dist-info/RECORD,,
@@ -1,2 +0,0 @@
1
- [console_scripts]
2
- agent_node = osiris_agent.agent_node:main