# GNSS & Odometry Sensor Fusion Engine AI Agent Connect

> GNSS & Odometry Sensor Fusion Engine provides high-fidelity state estimation for vehicles by merging absolute GNSS position data with high-frequency wheel odometry and heading measurements. It uses Kalman filters and complementary filters to manage sensor drift and maintain continuous, accurate motion tracking.

## Overview
- **Category:** navigation
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_1SPk1D512FcGVj7igG6R5Gvnj517x6F7U8UXD00D/ai-agent-connect
- **Tags:** gnss, odometry, kalman-filter, state-estimation, robotics, navigation

## Description

You can use this MCP to handle the heavy lifting of vehicle localization. Instead of relying on a single, drifting sensor, you provide your agent with a way to fuse absolute GNSS coordinates with high-frequency wheel odometry and yaw rates. This engine uses mathematical models like Kalman filters and weighted updates to predict motion and refine states. It effectively manages the gap between GNSS updates by using odometry to fill in the blanks, ensuring your vehicle's position and orientation stay accurate even when GNSS signals are sparse or noisy. You also get real-time health monitoring through fusion metrics, which lets your agent detect sensor anomalies or divergence before they cause navigation errors.

## Tools

### calculate_fusion_metrics
This tool evaluates the quality and health of the sensor fusion process.

### apply_gnss_correction
This tool refines your predicted vehicle state using absolute GNSS position measurements.

### apply_odometry_refinement
This tool uses wheel speed and yaw rate to update the vehicle state between GNSS updates.

### predict_motion_state
This tool calculates the predicted position and orientation of the vehicle.

## Prompt Examples

**Prompt:** 
```
Predict the next state: previous pose is {x: 10, y: 10, yaw: 0}, odometry delta is {distance: 5, yawDelta: 0.1}, and 1 second has passed.
```

**Response:** 
```
{ "predictedPose": { "x": 14.99, "y": 10.0, "yaw": 0.1 }, "predictedCovariance": { "x": 0.01, "y": 0.01, "yaw": 0.001 } }
```

**Prompt:** 
```
Apply a GNSS correction using Kalman mode. Current estimate is {pose: {x: 15, y: 10, yaw: 0.1}, covariance: {x: 0.5, y: 0.5, yaw: 0.05}}, GNSS measurement is {x: 16, y: 11}, and GNSS covariance is {x: 0.1, y: 0.1, yaw: 0.01}.
```

**Response:** 
```
{ "fusedPose": { "x": 15.83, "y": 10.83, "yaw": 0.1 }, "fusedCovariance": { "x": 0.08, "y": 0.08, "yaw": 0.008 }, "innovation": { "x": 1.0, "y": 1.0 }, "residual": { "x": 0.83, "y": 0.83 } }
```

**Prompt:** 
```
Refine the state with wheel odometry: current estimate is {pose: {x: 20, y: 20, yaw: 0.5}, covariance: {x: 0.1, y: 0.1, yaw: 0.01}}, distance traveled is 2.5, and yaw rate is 0.05.
```

**Response:** 
```
{ "updatedPose": { "x": 22.35, "y": 20.45, "yaw": 0.625 }, "updatedCovariance": { "x": 0.15, "y": 0.15, "yaw": 0.02 } }
```

## Capabilities

### Motion Prediction
Your agent calculates the expected position and orientation based on current velocity.

### GNSS Correction
Your agent uses absolute position data to fix drift in the predicted state.

### Odometry Refinement
Your agent updates the state using wheel speed and yaw rate between GNSS pulses.

### Health Monitoring
Your agent checks fusion metrics to identify sensor divergence or errors.

### Drift Management
The engine uses mathematical filters to keep odometry from drifting over time.

## Use Cases

### Autonomous Mobile Robots
Maintain accurate localization in environments where GNSS might be intermittent.

### Agricultural Automation
Track vehicle position and heading for precise field navigation.

### Sensor Validation
Use fusion metrics to check if wheel odometry or GNSS is providing faulty data.

### Path Following
Provide a continuous state estimate to a controller for smooth movement.

## Benefits

- Reduces position drift by combining absolute and relative sensors.
- Maintains high-frequency state updates even when GNSS is unavailable.
- Detects sensor anomalies through real-time fusion health metrics.
- Provides mathematical rigor via Kalman and complementary filters.

## How It Works

Connect your client to Vinkius to start running sensor fusion calculations immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Feed raw GNSS, odometry, and yaw data to your agent.
3. Your agent calls the fusion tools to process the incoming sensor streams.
4. The engine outputs refined position and orientation estimates.

## Frequently Asked Questions

**What kind of sensor data does this MCP use?**
It uses GNSS position data, wheel odometry, and yaw measurements.

**How does it handle GNSS signal loss?**
It uses wheel odometry and yaw rate to refine the state between GNSS updates, filling the gaps.

**Which AI clients can use this MCP?**
You can use it with any MCP-compatible client like Claude, Cursor, Windsurf, or VS Code.

**Does it support Kalman filtering?**
Yes, the engine uses mathematical models including Kalman filters and complementary filters.

**Can I detect if a sensor is failing?**
Yes, the calculate_fusion_metrics tool provides health monitoring to detect sensor anomalies.

**What fusion models are supported?**
The engine supports weighted updates, complementary filters, and Kalman filter updates via the `apply_gnss_correction` tool.

**How can I check if my sensor data is diverging?**
You can use the `calculate_fusion_metrics` tool to evaluate the health score and check the `isDiverging` flag.

**Can I predict movement without GNSS?**
Yes, you can use `predict_motion_state` to estimate the next position based on previous pose and odometry data alone.
