Metadata-Version: 2.4
Name: spaider-ros2
Version: 0.1.0
Summary: ROS 2 bridge that stores topics as SpAIder memory
Author: Spaider Studio
License: Apache-2.0
Keywords: ros2,robotics,memory
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: spaider-edge>=0.1.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"

# spaider-ros2

Subscribes to ROS 2 topics and stores messages as episodes in
[`spaider-edge`](../edge). Syncs to a SpAIder server when one is reachable and
answers recall requests on a topic.

```python
from spaider_edge import EdgeMemory
from spaider_ros2 import MemoryBridge, TopicMapping
from std_msgs.msg import String

bridge = MemoryBridge(node, EdgeMemory("robot.db"), [TopicMapping("/events", String, kind="event")])
```

Publish a query as `std_msgs/String` on `/spaider/recall`. Results arrive as JSON
on `/spaider/recall_result`.

**Testing status:** this bridge has only been tested against fake `rclpy` objects
in `tests/`. It has not been run on a real ROS 2 installation or a robot.
