# Vehicle Dead Reckoning & Odometry AI Agent Connect

> Vehicle Dead Reckoning & Odometry MCP provides kinematic modeling tools to estimate vehicle position, heading, and distance. It uses models like the Bicycle Model to turn sensor inputs like wheel speed and steering angle into accurate movement histories. Your AI client can handle everything from single-step state updates to full trajectory processing and error measurement.

## Overview
- **Category:** automotive
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_QE7ZoVWioJkS0UcMTyIsamkVlET17EotB5zUVJ3L/ai-agent-connect
- **Tags:** odometry, kinematics, dead-reckoning, vehicle-dynamics, trajectory

## Description

You can use this MCP to handle the heavy lifting of vehicle kinematics. Instead of manually calculating how a vehicle moves based on steering angles and wheel speeds, you let your AI client run the math through kinematic models. It works by taking your initial pose and sensor data to determine exactly where a vehicle is, which way it's facing, and how far it has traveled. 

If you are working with sensor logs, you can process entire sequences of data at once to build a movement history. If you are running a real-time simulation, you can step through time one interval at a time to update the vehicle state. It also helps you keep your math honest by quantifying the drift between where your model thinks the vehicle is and where it actually is. Whether you need to turn odometer readings into linear velocity or run a full batch of trajectory data, this MCP handles the math so you can focus on the higher-level logic.

## Tools

### calculate_pose_residual
This tool measures the error between an estimated pose and an observed pose to quantify drift.

### batch_trajectory_calculator
This tool processes a full sequence of sensor readings to build a complete movement history.

### get_single_step_propagation
This tool calculates the new state of a vehicle after one discrete time interval.

### odometer_to_velocity_converter
This tool transforms raw odometer distance increments into linear velocity.

## Prompt Examples

**Prompt:** 
```
Calculate the next position for a vehicle at (0,0) with heading 0, wheelbase 2.5, velocity 5, steering angle 0.1, and deltaTime 1.0.
```

**Response:** 
```
The updated position is x: 4.98, y: 0.25 with a heading of 0.1 radians and distance traveled of 5.0.
```

**Prompt:** 
```
Convert an odometer increment of 10 meters over 2 seconds to velocity.
```

**Response:** 
```
The calculated linear velocity is 5.0 m/s.
```

**Prompt:** 
```
What is the error if the estimated pose is (10, 10, 0) and the observed pose is (10.5, 10, 0)?
```

**Response:** 
```
The position error is 0.5 and the heading error is 0.0.
```

## Capabilities

### Trajectory Estimation
Your agent uses kinematic models to predict vehicle paths.

### Error Quantification
Your agent calculates the difference between estimated and measured poses.

### State Propagation
Your client updates vehicle position and heading over specific time steps.

### Velocity Conversion
The tool turns distance data from an odometer into linear velocity.

### Batch Processing
Your agent processes entire sensor logs to generate movement histories.

## Use Cases

### Localization Error Analysis
Compare estimated vehicle positions against ground truth to find drift.

### Sensor Data Processing
Turn a long list of wheel speeds and steering angles into a path.

### Real-time State Updates
Step through a simulation to see how a vehicle moves over time.

### Odometer Calibration
Convert distance traveled into linear velocity for speed monitoring.

## Benefits

- Automates kinematic math using the Bicycle Model.
- Reduces manual calculation errors in trajectory estimation.
- Provides a direct way to measure pose drift.
- Converts distance increments to velocity instantly.

## How It Works

Connect your AI client to Vinkius to start running kinematic calculations.

1. Connect your preferred MCP-compatible client to Vinkius.
2. Provide sensor inputs like wheelbase, velocity, and steering angle.
3. Your agent invokes the specific kinematic tool needed for your task.
4. Receive the calculated position, heading, or velocity directly in your chat.

## Frequently Asked Questions

**What kinematic models does this MCP use?**
The MCP uses models like the Bicycle Model to calculate vehicle position, heading, and distance.

**Can I process large sensor logs?**
Yes, you can use the batch_trajectory_calculator to process full sequences of sensor readings.

**How do I calculate vehicle velocity from an odometer?**
You use the odometer_to_velocity_converter tool to turn distance increments into linear velocity.

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

**How do I check for pose drift?**
Use the calculate_pose_residual tool to find the error between an estimated pose and an observed pose.

**How does the trajectory calculation work?**
The `batch_trajectory_calculator` tool iterates through a sequence of time steps, applying kinematic equations to update the vehicle's state at each interval.

**Can I convert odometer readings to velocity?**
Yes, use the `odometer_to_velocity_converter` tool to transform distance increments into linear velocity based on the elapsed time.

**How do I measure the error in my estimated position?**
You can use `calculate_pose_residual` to compare your estimated pose against an observed pose to find position and heading errors.
