# Differential-Drive Odometry Calculator AI Agent Connect

> Differential-Drive Odometry Calculator MCP gives your AI agent the math needed to track robot movement. It handles the heavy lifting of kinematic calculations, converting encoder ticks to linear distance and computing exact pose changes. Whether you need small-step linear approximations or exact circular arc integration, this MCP provides the precision required for reliable differential-drive navigation.

## Overview
- **Category:** kinematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_JEuphBxDfhO0Vnv2jW9378ynu8Raq0uKrc2ZcEwC/ai-agent-connect
- **Tags:** odometry, differential-drive, robotics, kinematics, pose-estimation

## Description

You can stop manually calculating robot movement in your chat window. This MCP gives your AI client the specific kinematic tools it needs to track a differential-drive robot's position and orientation. Instead of guessing how much a robot moved based on wheel turns, your agent can use this MCP to translate raw sensor data into actual coordinates. 

You can use it to verify that your chassis dimensions are mathematically sound before you run a simulation. It handles the conversion from encoder ticks to displacement and calculates the resulting pose changes (x, y, and theta) for every movement interval. It supports both simple linear approximations and more precise circular arc integration, so you aren't stuck with inaccurate drift during turns. It's a direct way to bridge the gap between raw hardware data and high-level navigation logic in your AI-driven robotics workflows.

## Tools

### calculate_odometry_step
This tool calculates the change in a robot's pose and kinematic properties after a single movement. It outputs the new position and orientation based on wheel movement.

### convert_ticks_to_displacement
This tool transforms raw encoder tick counts into actual linear distance. It uses your specific wheel radius and scale to get accurate displacement values.

### get_odometry_summary
This tool provides a high-level overview of movement characteristics. It gives you displacement data without needing to output the full pose coordinates.

### validate_robot_dimensions
This tool checks if your physical chassis parameters are mathematically valid. It prevents errors by ensuring dimensions like axle track are viable for odometry math.

## Prompt Examples

**Prompt:** 
```
Calculate the new pose if the left wheel moved 10 units, the right wheel moved 12 units, radius is 5, axle track is 20, initial pose is { "x": 0, "y": 0, "theta": 0 }, and encoder scale is 1.
```

**Response:** 
```
The final pose is x: 11.0, y: 0.0, theta: 0.1 radians.
```

**Prompt:** 
```
Convert 500 left ticks and 500 right ticks to displacement with a radius of 5 and scale of 0.01.
```

**Response:** 
```
The left displacement is 5.0 and the right displacement is 5.0.
```

**Prompt:** 
```
Check if a robot with wheel radius 5 and axle track 0 is valid.
```

**Response:** 
```
The dimensions are invalid: axle track must be greater than zero.
```

## Capabilities

### Encoder Translation
Your agent converts raw hardware ticks into usable distance measurements.

### Pose Estimation
Your agent calculates exact x, y, and theta updates for every movement step.

### Dimension Validation
Your agent checks chassis parameters to ensure they won't break kinematic math.

### Movement Summarization
Your agent gets quick movement overviews without processing full pose datasets.

### Kinematic Integration
The tool uses circular arc integration for precise tracking during turns.

## Use Cases

### Real-time Pose Tracking
Your agent calculates the robot's current position based on continuous wheel encoder updates.

### Chassis Design Verification
You check if your robot's physical dimensions are compatible with differential-drive math.

### Sensor Data Processing
Your agent converts raw hardware tick counts into meaningful distance values for navigation.

### Movement Analysis
You get a summary of displacement and movement characteristics without full pose data.

## Benefits

- Eliminates manual kinematic math errors in the chat interface.
- Provides high-precision pose updates using circular arc integration.
- Validates physical robot parameters before running movement logic.
- Converts raw sensor ticks to linear distance instantly.

## How It Works

Connect the MCP to your client and start passing hardware data to your agent.

1. Connect your AI client to the Vinkius-hosted MCP.
2. Provide your agent with robot chassis parameters like wheel radius and axle track.
3. Send raw encoder ticks or wheel displacements to your agent.
4. Your agent uses the MCP tools to calculate pose or distance.
5. Receive precise coordinate updates or movement summaries.

## Frequently Asked Questions

**How does this MCP handle robot turns?**
It supports both small-step linear approximation and exact circular arc integration to ensure accurate tracking during rotation.

**Can I use this with any AI client?**
Yes, it works with any MCP-compatible client like Claude, Cursor, or Windsurf.

**What happens if my robot dimensions are wrong?**
The validate_robot_dimensions tool will catch invalid parameters, such as an axle track of zero, and alert you.

**Does this work for non-differential drive robots?**
No, this specific MCP is designed for differential-drive kinematics.

**Do I need to host the MCP myself?**
No, Vinkius hosts and manages the MCP for you. You connect and use it.

**How do I calculate the new position of my robot?**
You can use the `calculate_odometry_step` tool. Provide the wheel displacements, wheel radius, axle track, and the initial pose to receive the updated coordinates and orientation.

**Can I account for wheel slip in my calculations?**
Yes, the `convert_ticks_to_displacement` and `calculate_odometry_step` tools both accept an optional `slipCorrection` parameter to adjust for real-world friction losses.

**What happens if my axle track is set to zero?**
If the axle track is zero, the `validate_robot_dimensions` tool will flag the dimensions as invalid, and `calculate_odometry_step` will return an `isTrackInvalid` status because rotation cannot be calculated.
