﻿# MoveIt Cartesian fraction: waypoint progress is not physical path-length coverage

Inspect CartesianInterpolator waypoint weighting and partial-path output before reporting a MoveIt fraction as a percentage of distance or completed robot work.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/robotics-moveit-cartesian-fraction-waypoint-weighting/
Language: en

## Ask what the reported fraction divides

A manipulation application asks for a long approach followed by a short insertion and receives a partial Cartesian path. A dashboard turns the returned fraction into a percentage of physical distance completed. That conversion needs a denominator the API may not provide. Keep requested waypoint progress, generated geometric trajectory and actual robot execution separate. A nonempty returned prefix can be useful diagnostic output while still failing the application’s requirement to reach the final insertion pose.

## Read the service result fields together

The [GetCartesianPath definition](https://raw.githubusercontent.com/moveit/moveit_msgs/ros2/srv/GetCartesianPath.srv) returns a solution trajectory, fraction and error code as separate fields. Its request also identifies start state, group, link, waypoint frame, interpolation step and collision-related settings. These inputs define the computation being summarized. Do not interpret a successful transport response as full interpolation, or assume a nonempty solution establishes that requested collision avoidance was enabled. Preserve the response fields together with the request that produced them.

## Inspect equal waypoint-segment weighting

In the inspected [multi-waypoint interpolator](https://raw.githubusercontent.com/moveit/moveit2/main/moveit_core/robot_state/src/cartesian_interpolator.cpp), each fully solved requested segment advances the accumulated percentage by its share of the waypoint count. An incomplete segment contributes its local solved fraction divided by that same count, then the loop stops. Requested segments therefore receive equal weight regardless of their physical lengths. A long approach and a short insertion do not automatically contribute in proportion to metres. This describes the examined interpolation implementation, not every possible higher-level reporting adapter.

## Use unequal segments to expose the denominator

A proposed planning-only fixture should contain deliberately unequal segment lengths and an endpoint that prevents complete interpolation under controlled settings. Inspect the returned endpoint and joint states as well as fraction. Then subdivide an otherwise unchanged reachable section into additional requested waypoints. The fraction’s denominator can change even when the broad geometric task remains similar. Treat this as a diagnostic of reporting semantics, not a method for improving success by inflating waypoint counts.

## Define an application acceptance boundary

An application requiring full approach and insertion should verify final-pose coverage, relevant error status and trajectory contents under declared interpolation tolerances. Explicitly reject or separately classify partial prefixes. If distance coverage is needed, define and calculate a separate geometric measure from the chosen reference path; do not rename fraction. Retain waypoint ordering and frame context so repeated evaluations compare the same request. The proposed checks have not been executed on hardware here.

## Do not promote interpolation into execution evidence

Even complete computed coverage does not measure tracking, contact or grasp success. The [R2R representation guide](/journal/fg2-matterport-r2r-viewpoint-graph-not-continuous-path/) explains another path-result boundary; [ManiSkill controller conversion](/journal/fg2-maniskill-controller-conversion-replayed-outcome-selection/) explains why replay outcomes need independent validation. For this interface, retain the exact waypoint-based computation and its partial trajectory. Execution, timing and the physical task outcome should contribute their own evidence rather than borrowing a percentage from geometric interpolation.
