# Pure Pursuit Curvature Calculator AI Agent Connect

> Pure Pursuit Curvature Calculator provides the geometric math needed for robot path tracking. Your AI client uses this MCP to solve for steering curvature, target points, and path proximity. It handles the heavy lifting of motion planning geometry so your agent can focus on high-level navigation logic.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_gC5HP50FcgaoaZLpHzaYQ7ovv7TdM33997OIneZx/ai-agent-connect
- **Tags:** robotics, pure-pursuit, geometry, path-tracking, navigation

## Description

You can stop manually calculating steering angles and target points. This MCP gives your AI agent direct access to the geometric math required for pure pursuit motion planning. When you're working on autonomous robot trajectories, your agent can use these tools to determine exactly how a vehicle needs to turn to stay on a specific path. 

Instead of writing custom geometry functions, you hand the path data to your agent. It can find the closest point on a trajectory, check if a robot's current pose is mathematically valid, and pull descriptive statistics about a path. This is built for developers and robotics engineers who want to bridge the gap between high-level AI reasoning and low-level geometric control. Whether you are simulating a mobile robot or working on real hardware, this MCP provides the mathematical foundation for accurate trajectory following.

## Tools

### calculate_pursuit_geometry
This tool calculates the specific steering curvature and target points needed to follow a path. It outputs the required steering angle and geometry for the robot.

### find_nearest_path_point
Use this to locate the exact point on a trajectory that is closest to the robot's current position.

### get_path_metrics
This tool provides high-level statistical data about a path, such as its total length or whether it forms a closed loop.

### validate_pose_integrity
This tool checks if a robot's current position and orientation are mathematically valid for geometric calculations.

## Prompt Examples

**Prompt:** 
```
Calculate the pursuit geometry for a robot at x=1.0, y=1.0, theta=0.0 with a path at [(2,2), (3,3), (4,4)], a lookahead distance of 1.5, and a wheelbase of 0.5.
```

**Response:** 
```
The target point is (2.12, 2.12), the calculated steering angle is 0.28 radians, and the cross-track error is 0.17.
```

**Prompt:** 
```
What is the total length of this path: [(0,0), (0,5), (5,5), (5,0), (0,0)]?
```

**Response:** 
```
The total length of the path is 20.0 units and it is a closed loop.
```

**Prompt:** 
```
Verify if this robot pose is valid: {'x': 10, 'y': 20, 'theta': 1.5}.
```

**Response:** 
```
The pose is valid.
```

## Capabilities

### Steering Geometry
Your agent calculates the exact steering angle needed to hit a target point.

### Path Proximity
Your agent identifies the nearest point on a path to manage cross-track error.

### Path Analysis
Your agent retrieves descriptive statistics like path length and loop status.

### Pose Validation
Your agent confirms that robot coordinates are valid before running calculations.

## Use Cases

### Mobile Robot Navigation
An agent uses the steering geometry tool to guide a warehouse robot along a predefined path.

### Trajectory Validation
A developer checks if a proposed path is a closed loop using path metrics.

### Error Correction
Your agent finds the nearest path point to calculate and minimize cross-track error.

### Simulation Testing
Engineers validate robot poses in a simulated environment before deploying control logic.

## Benefits

- Offloads complex geometric calculations from your agent's reasoning loop.
- Provides consistent steering parameters based on pure pursuit mathematics.
- Ensures mathematical validity of robot poses before executing motion commands.
- Reduces manual coding of path analysis and proximity detection.

## How It Works

Connect your client to Vinkius and start sending geometric data to your agent immediately.

1. Connect your MCP-compatible client to the Vinkius platform.
2. Provide your agent with path coordinates and robot pose data.
3. Your agent invokes the specific geometry or metric tools.
4. The MCP returns precise steering angles or path statistics.
5. Your agent uses the results to issue movement commands.

## Frequently Asked Questions

**What kind of math does this MCP perform?**
It performs pure pursuit geometric motion planning, including steering curvature, target point calculation, and path proximity detection.

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

**Does this MCP handle robot pose validation?**
Yes, the validate_pose_integrity tool ensures the robot's current state is mathematically valid for geometric calculations.

**How do I get path statistics?**
You can use the get_path_metrics tool to get descriptive statistics like total path length.

**Do I need to host this myself?**
No, Vinkius hosts and manages the MCP so it is ready to use as soon as you connect your client.

**What is the primary use of this MCP?**
It is used to calculate the steering curvature and control parameters needed for a robot to follow a specific path using the Pure Pursuit algorithm via `calculate_pursuit_geometry`.

**Can I analyze path properties?**
Yes, you can use `get_path_metrics` to find the total length of a path and determine if it is a closed loop.

**How do I find the robot's distance from the path?**
You can use `find_nearest_path_point` to identify the closest point on the path and calculate the distance to it.
