arXiv:2610.09165cs.ROOct 2026

Manuscript Offprint

arXiv:2610.09165

geodex: A Library for Motion Planning on Riemannian Manifolds

Phone Thiha Kyaw, Ben Wei, Sepehr Samavi, Miguel Angel Rogel Garcia, Jonathan Kelly

Phone Thiha Kyaw 1^{1}, Ben Wei 1^{1}, Sepehr Samavi 2^{2}, Miguel Angel Rogel Garcia 1^{1} and Jonathan Kelly 1^{1}

Abstract—Planning motions that respect the intrinsic geometry of a robot's configuration space, including its curvature and a configuration-dependent notion of cost, yields shorter, lower-energy, and more natural trajectories than planning under the ambient flat metric. Existing libraries for optimization on manifolds provide rich geometric primitives but do not plan around obstacles. While general-purpose motion planning libraries support many state spaces and custom distance functions, they do not yet treat a configuration-dependent Riemannian metric as the geometry that drives distance, interpolation, and geodesics. We present geodex, an open-source C++20 library with Python bindings. The library exposes the manifold, its Riemannian metric, the retraction, and the sampler as independent, interchangeable components through a single sampling-based motion planning interface. The same planner runs unchanged on canonical spaces RnR^n, TnT^n, SnS^n, matrix Lie groups such as SO(2), SE(2), SO(3), and SE(3), products of these spaces, and articulated-robot configuration spaces, each equipped with a user-defined Riemannian metric. We make geodex publicly available with documentation, tests, and a reproducible benchmark suite.

I. INTRODUCTION

Robot configuration spaces are rarely flat. The pose of a rigid body lies in the Lie group SE(2) or SE(3), the configuration of an arm with revolute joints lies on a product of circles, and task or closed-chain constraints restrict the configuration to a curved submanifold [1]. The cost of moving is also rarely uniform; the kinetic energy of a manipulator, its distance to the nearest obstacle, and the steering effort of a wheeled robot all vary with configuration. Planning with a Euclidean metric ignores both the curvature of the space and this variation in cost. A Riemannian metric is an inner product on velocities that varies smoothly with configuration, so it can represent both. Shortest paths under a Riemannian metric are geodesics, which generalize straight lines in Euclidean space to curved manifolds. For a shortest-path planner, the choice of metric therefore determines the objective. When the distance function, interpolator and sampler of the planner are all derived from the same metric, the paths it returns respect the geometry of the configuration space by construction [2], [3], [4].

Existing libraries, however, do not support obstacle-aware planning under a configuration-dependent Riemannian metric. Geometry libraries [5], [6], [7] let the user define manifolds, metrics, and geodesics, but they solve optimization and estimation problems that do not include obstacles. Motion planning libraries such as OMPL [8] and its successors [9], [10] plan around obstacles in many state spaces and accept a custom

geodex

A metric-first planning framework

BUILT-IN MANIFOLDS

Eight geometries out of the box.

Figure

Fig. 1: In geodex, the metric comes first. A user builds a space from a manifold and three swappable policies: a metric, a retraction, and a sampler. We show a Franka manipulator moving a box between shelf compartments under the kinetic-energy metric, and a Clearpath Jackal planning nonholonomic motions on the Lie group SE(2) under a left-invariant metric. Both tasks use the same planner, and only the space argument changes.

distance function, but they do not support a configuration-dependent metric. Planning under a new metric therefore requires changing the planner, not only supplying the metric.

We present geodex, an open-source library for sampling-based motion planning on Riemannian manifolds. 1^{1} geodex builds on established libraries, taking planners from OMPL [8], dynamics from Pinocchio [11], and fast collision checking from VAMP [10] to create a single planning interface with the robot manifold, its Riemannian metric, the retraction, and the sampler as independent and interchangeable components. This way, the Riemannian metric defines the geometry that shapes every stage of planning, so a change of metric propagates through the whole planner at once.

Our contributions are threefold. First, we present geodex, a metric-first planning framework, which provides a single planning interface across many robot manifolds and metrics. Second, we extensively evaluate the capabilities of geodex on two different robot platforms, a Franka manipulator and a Clearpath Jackal mobile robot (Figure 1), in both offline and real-world experiments. Our manipulation experiment uses geodex for a shelving task and we show that swapping the

1^{1}Authors are with the Space & Terrestrial Autonomous Robotic Systems (STARS) Laboratory at the University of Toronto Institute for Aerospace Studies (UTIAS), Toronto, Ontario, Canada, M3H 5T6. Email: <first name>.<last name>@robotics.utias.utoronto.ca

2^{2}Author is with the University of Toronto Institute for Aerospace Studies (UTIAS) and the Vector Institute for Artificial Intelligence, Toronto, Ontario, Canada. Email: sepehr@robotics.utias.utoronto.ca

1^{1}Code is available at github.com/utiasSTARS/geodex, with documentation and tutorials at geodex.readthedocs.io.

metric alone changes how the Franka arm moves a box between shelf compartments. Our mobile robot experiments compare geodex with existing planners for nonholonomic navigation on SE(2). We show that planning on the manifold yields paths that are smoother and that can be traversed more quickly than the ones the existing planners build from discretized motion primitives. Third, we make geodex publicly available with documentation, tutorials, and tests, along with the integration of our framework into popular robotics software stacks through MoveIt2 and Nav2 plugins.

References (35)