# Reeds-Shepp Path Calculator AI Agent Connect

> Reeds-Shepp Path Calculator MCP handles the heavy math for 2D motion planning. It calculates the shortest paths for vehicles that can move both forward and backward while respecting a minimum turning radius. Your AI client uses these tools to solve complex geometric pathing problems in constrained environments.

## Overview
- **Category:** mathematics
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_OBaQgPWn7Ius7icS7nH97eVZeX2BOxP9vEfCSfdA/ai-agent-connect
- **Tags:** reeds-shepp, path-planning, planar-poses, vehicle-kinematics, geometry

## Description

If you are working on motion planning for vehicles that need to maneuver in tight spaces, you need precise geometric paths. This MCP handles the Reeds-Shepp calculations required to move a vehicle between two planar poses using forward and reverse gears. Instead of writing your own geometry solvers, you can let your agent handle the math. 

You can find the absolute shortest path between two points or list every possible geometric path family that connects them. If you need to verify if a vehicle has actually reached its target, you can check pose equivalence within a specific tolerance. You can also pull specific statistics on a path, such as segment counts or total distance, to evaluate how complex a maneuver is. It is a specialized math tool for anyone dealing with non-holonomic constraints in 2D space.

## Tools

### calculate_shortest_path
This tool finds the absolute shortest path available among all feasible Reeds-Shepp path families.

### enumerate_path_families
This tool retrieves every valid path sequence that connects two specific poses.

### get_path_statistics
This tool provides a detailed summary of a path's specific characteristics like length and segments.

### validate_pose_equivalence
This tool checks if two poses are effectively the same based on a provided tolerance.

## Prompt Examples

**Prompt:** 
```
Find the shortest path from start pose {x:0, y:0, theta:0} to end pose {x:5, y:5, theta:1.57} with a minimum turning radius of 1.0.
```

**Response:** 
```
The shortest path has a total length of 8.42 units with 1 gear switch.
```

**Prompt:** 
```
Is the pose {x:1, y:1, theta:0} the same as {x:1.01, y:0.99, theta:0.01} with a tolerance of 0.05?
```

**Response:** 
```
Yes, the poses are equivalent within the specified tolerance.
```

**Prompt:** 
```
What are the statistics for this path: [{"type":"Left", "direction":"Forward", "length":2.0}, {"type":"Straight", "direction":"Forward", "length":3.0}]?
```

**Response:** 
```
The path consists of 2 segments, 0 switches, and a total distance of 5.0.
```

## Capabilities

### Shortest Path Calculation
Your agent identifies the most efficient route between two poses.

### Path Family Enumeration
Your agent lists all possible geometric sequences to connect two points.

### Pose Validation
Your client checks if a vehicle has reached its target within a set tolerance.

### Path Analysis
Your agent extracts specific metrics like segment counts and total distance.

## Use Cases

### Parking Maneuvers
Calculate the shortest path for a car to enter a tight parking spot using forward and reverse gears.

### Warehouse Robotics
Plan movements for small robots navigating constrained aisles with specific turning limits.

### Path Validation
Verify if a planned trajectory successfully lands a vehicle at the target pose.

### Trajectory Comparison
Compare different path families to find the one with the fewest gear switches.

## Benefits

- Calculates paths for vehicles that can move in reverse.
- Solves for minimum turning radius constraints in 2D space.
- Provides exact geometric path statistics for analysis.
- Handles pose equivalence checks with custom tolerances.

## How It Works

Connect your client to Vinkius and start running geometric calculations immediately.

1. Connect your MCP-compatible client to Vinkius.
2. Provide the start and end poses to your agent.
3. Specify the minimum turning radius for the vehicle.
4. Your agent calls the necessary tool to compute the path.
5. Receive the path length, segments, or gear switches in your chat interface.

## Frequently Asked Questions

**What is a Reeds-Shepp path?**
It is a path used for vehicles that can move both forward and backward, accounting for a minimum turning radius.

**Does this MCP support 3D space?**
No, this MCP is designed for planar poses in 2D environments.

**How do I use this with Claude?**
You connect your Claude client to Vinkius, and the tools become available for your agent to call.

**Can I specify the turning radius?**
Yes, you provide the minimum turning radius as a parameter when requesting path calculations.

**What kind of vehicles is this for?**
It is for any vehicle with non-holonomic constraints, such as cars or robots that cannot move sideways.

**What is the difference between Reeds-Shepp and Dubins paths?**
Dubins paths only allow forward motion, whereas Reeds-Shepp paths allow for both forward and reverse motion, enabling tighter maneuvers.

**How do I find the most efficient route between two points?**
You can use the `calculate_shortest_path` tool to find the absolute shortest path among all feasible families.

**Can I see all possible ways to get from A to B?**
Yes, the `enumerate_path_families` tool retrieves all valid path sequences that connect two poses.
