betaFeedback

WorksComputer Science

From Orbit Matching to Docking: A Hierarchical Reinforcement-Learning Approach to Multiphase Rendezvous Trajectory Design

Abstract

As the complexity of space missions increases, autonomous spacecraft guidance must accommodate transitions between mission phases with distinct dynamics, objectives, and constraints. Rendezvous and proximity operations (RPO) are particularly challenging because they span multiple operating regimes, from orbital-scale matching and far-range approach to close-range maneuvering and terminal docking. Existing reinforcement-learning approaches generally address only a subset of this sequence or rely on manually defined switching conditions between controllers. This study presents a hierarchical reinforcement-learning framework for autonomous, three-degree-of-freedom RPO that spans the complete trajectory from orbit matching to docking. Five specialized policies are trained for orbit matching, far-range approach, mid-range approach, close-range approach, and docking. A learned high-level manager policy then selects among these phase-specific controllers based on the evolving spacecraft state. The hierarchical approach is evaluated over the full end-to-end rendezvous sequence and compared with a fixed sequential-invocation heuristic to assess trajectory performance and transition behavior. Training and inference metrics are also analyzed for the individual phase policies and the complete hierarchical system.

Introduction

Rendezvous and proximity operations (RPO) are an essential component of many space missions, encompassing spacecraft docking, on-orbit servicing, active debris removal, and more. RPO trajectories require a chaser spacecraft to move from an initially separated orbit to a controlled relative state near a target. The full maneuver can be conceptually divided into distinct phases, such as orbit matching, approach, and docking. Each phase has different guidance objectives (eg. minimum fuel, minimum time), control time scales, and safety constraints. This close coordination between two or more spacecraft often requires the trajectory to be continually revised to account for state estimation uncertainty, spacecraft anomalies, or changing mission constraints during execution. Thus, autonomous RPO algorithms must be able to quickly regenerate updated control actions.

Reinforcement learning (RL) has been studied as an alternative to traditional spacecraft guidance and control because a trained policy can produce state-dependent actions without repeatedly solving a computationally expensive optimization problem during execution. Early work applied RL to spacecraft rendezvous in cluttered environments by combining learned guidance with obstacle-avoidance methods [1]. Subsequent studies extended these ideas to continuous-thrust rendezvous guidance [2], experimental demonstrations of deep-RL controllers [3], and terminal rendezvous under stochastic disturbances [4]. More recent work has considered six-degree-of-freedom docking with rotating targets [5], proximity maneuvering with collision avoidance [6], integrated rendezvous-and-docking trajectory planning [7], and far-range rendezvous with safety and observability considerations [8]. Learning-based decomposition has also been explored through multiphase model-based RL for close-range approach and docking [9] and hierarchical RL for coordinating translational rendezvous guidance with attitude control [10]. Standardized environments have further enabled comparisons among RL algorithms for close-range rendezvous, docking, and attitude-control tasks [11].

Collectively, these studies demonstrate that RL can learn effective policies for individual RPO tasks. However, existing literature generally treats orbit matching, far-range rendezvous, close-range proximity operations, and docking as separate control problems. A complete mission spans substantially different spatial and temporal scales, dynamical regimes, operational constraints, and control objectives. Furthermore, many existing RL formulations employ linearized Clohessy–Wiltshire dynamics [4, 9, 11, 12], which are well suited to relative motion near a circular reference orbit but are not generally appropriate when the chaser and target begin in distant orbital states. Far-range orbit matching instead requires accounting for the nonlinear orbital motion of both vehicles before transitioning to the relative-motion descriptions commonly used during proximity operations. Consequently, policies designed for close-range motion cannot be directly extended to the complete orbital-scale maneuver. Existing multiphase approaches have considered long-range rendezvous through terminal docking, but do not explicitly include the orbit-matching maneuvers required to bring spacecraft from distinct orbital states into a common rendezvous regime [9, 12, 13]. To the authors’ knowledge, no prior RL formulation integrates orbit matching, far-range rendezvous, intermediate proximity operations, terminal approach, and docking within a learned control architecture.

This paper presents a hierarchical RL approach for autonomous, three-degree-of-freedom RPO that addresses this full multiphase problem. First, we train a set of specialized policies, each dedicated to a distinct phase of the rendezvous trajectory: orbit matching, far-range approach, mid-range approach, close-range approach, and docking. Then, we train a high-level RL manager policy that learns to transition between the single-phase models to form a complete end-to-end maneuver. Rather than relying on hard-coded switching logic, the high-level policy learns directly from experience when to invoke each phase, producing a single autonomous system that spans the full multiphase mission from orbit matching to docking. Unlike prior hierarchical RL work for RPO that focuses on close-range operations under linearized dynamics, our approach encompasses the complete trajectory range using nonlinear dynamics modeled in the Earth-Centric Inertial (ECI) frame. We implement this system using Proximal Policy Optimization (PPO) with neural network policies, providing a computationally efficient solution for real-time onboard execution. We evaluate this hierarchical RL policy and compare against a fixed sequential-invocation heuristic to demonstrate reliable performance across the full end-to-end maneuver. We then perform an analysis of the computational requirements for each single-phase and multiphase model during training and inference.

The remainder of this paper is organized as follows. We first present the RPO problem formulation, including the spacecraft state and control variables, equations of motion, problem constraints, and rendezvous phase definitions. The RL approach is then described, including the reward component formulations, single-phase RL model architectures and the hierarchical managers. This is followed by the single-phase and multiphase trajectory results, as well as an analysis of each model’s computational requirements. Finally, we conclude with an overview of the main findings, limitations, and areas for future work.

Rendezvous and Proximity Operations

Orbital Dynamics Formulation

An RL model framework that can learn both far-range and close range maneuvering requires a dynamics formulation that is appropriate for both regimes, without linearized simplifications such as the Hill-Clohessy-Wiltshire (HCW) equations [14]. We define the orbital dynamics as an orbit propagation in ECI coordinates, similar to the formulation given by Wijayatunga et al. [8]. We omit the modeling of orbital perturbations and assume that spacecraft motion is dominated by Earth’s gravitational force and the spacecraft’s own actuation, but make no further assumptions about the orbital parameters or relative motion in the dynamics formulation. Table I defines the relevant notation used throughout the dynamics formulation and the remainder of the paper.

The same gravitational two-body dynamics apply to both the chaser and the target, so the state and dynamics below are written for a general body B∈{C,T}B \in\{C,T\}. The chaser is actuated, while the target is assumed to be a non-maneuvering body. Control is commanded in the target-centered Local-Vertical-Local-Horizontal (LVLH) frame L\mathcal{L}, otherwise known as the Hill frame, defined from the target’s instantaneous state [14].

Notation/VariableDefinition
rrPosition
vvVelocity
FFThrust force (control)
mmMass
ttTime
[B,C,T][B,C,T][Body, Chaser, Target]
[I,L][\mathcal{I},\mathcal{L}][Inertial (Earth-Centered), Target LVLH (Hill)] Frame
RC→I\mathcal{R}_{\mathcal{C}\rightarrow\mathcal{I}}Rotation from LVLH to inertial frame
μ\muEarth Gravitational Parameter
ωL\omega_{\mathcal{L}}LVLH frame angular velocity
ρrelL\rho_{\mathrm{rel}}^{\mathcal{L}}Relative range, ∣rrelL∣\left|r_{\mathrm{rel}}^{\mathcal{L}}\right|
θappch\theta_{\mathrm{appch}}Approach angle (total cone angle)
a^appchL\hat{a}_{\mathrm{appch}}^{\mathcal{L}}Approach cone axis, [1,0,0]T[1,0,0]^{\mathsf{T}}
kkControl step index
kfk_fFinal control step
NNSuccess condition hold duration (steps)

Table 1. Notation and Variable Definitions

State Vector:

xB=[rBIvBI](1)x_B = \begin{bmatrix} r_B^{\mathcal{I}} \\ v_B^{\mathcal{I}} \end{bmatrix} \tag*{(1)}

Control Vector:

uB=FBL∈R3(2)u_B = F_B^{\mathcal{L}} \in\mathbb{R}^{3} \tag*{(2)}

Coordinate Frame Rotation:

e^RI=rTI∥rTI∥2(3)\hat{e}_R^{\mathcal{I}} = \frac{r_T^{\mathcal{I}}}{\left\|r_T^{\mathcal{I}}\right\|_2} \tag*{(3)}
e^NI=hTI∥hTI∥2,  where hTI=rTI×vTI(4)\hat{e}_N^{\mathcal{I}} = \frac{h_T^{\mathcal{I}}}{\left\|h_T^{\mathcal{I}}\right\|_2}, \;\text{where } h_T^{\mathcal{I}} = r_T^{\mathcal{I}} \times v_T^{\mathcal{I}} \tag*{(4)}
e^TI=e^NI×e^RI(5)\hat{e}_T^{\mathcal{I}} = \hat{e}_N^{\mathcal{I}} \times\hat{e}_R^{\mathcal{I}} \tag*{(5)}
RI→L=[(e^RI)T(e^TI)T(e^NI)T],RL→I=RI→LT(6)\mathcal{R}_{\mathcal{I}\rightarrow\mathcal{L}} = \begin{bmatrix} (\hat{e}_R^{\mathcal{I}})^{\mathsf{T}} \\ (\hat{e}_T^{\mathcal{I}})^{\mathsf{T}} \\ (\hat{e}_N^{\mathcal{I}})^{\mathsf{T}} \end{bmatrix}, \qquad \mathcal{R}_{\mathcal{L}\rightarrow\mathcal{I}} = \mathcal{R}_{\mathcal{I}\rightarrow\mathcal{L}}^{\mathsf{T}} \tag*{(6)}

Dynamics:

x˙B=[vBI−μ∥rBI∥23rBI+RL→IFBLmB](7)\dot{x}_B = \begin{bmatrix} v_B^{\mathcal{I}} \\ -\dfrac{\mu}{\left\|r_B^{\mathcal{I}}\right\|_2^{3}}r_B^{\mathcal{I}}+\mathcal{R}_{\mathcal{L}\rightarrow\mathcal{I}}\dfrac{F_B^{\mathcal{L}}}{m_B} \end{bmatrix} \tag*{(7)}

Relative Motion:

rrelL=RI→L(rCI−rTI)(8)r_{\mathrm{rel}}^{\mathcal{L}}=\mathcal{R}_{\mathcal{I}\rightarrow\mathcal{L}}\left(r_C^{\mathcal{I}}-r_T^{\mathcal{I}}\right) \tag*{(8)}
vrelL=RI→L(vCI−vTI)−ωL/IL×rrelL(9)v_{\mathrm{rel}}^{\mathcal{L}}=\mathcal{R}_{\mathcal{I}\rightarrow\mathcal{L}}\left(v_C^{\mathcal{I}}-v_T^{\mathcal{I}}\right)-\omega_{\mathcal{L}/\mathcal{I}}^{\mathcal{L}}\times r_{\mathrm{rel}}^{\mathcal{L}} \tag*{(9)}
whereωL/IL=[00∥hTI∥2∥rTI∥22]\text{where}\qquad \omega_{\mathcal{L}/\mathcal{I}}^{\mathcal{L}}= \begin{bmatrix} 0\\ 0\\ \dfrac{\left\|h_T^{\mathcal{I}}\right\|_2}{\left\|r_T^{\mathcal{I}}\right\|_2^2} \end{bmatrix}
θappch=arccos⁡(a^appchL⋅rrelL∥rrelL∥2)(10)\theta_{\mathrm{appch}}=\arccos\left(\frac{\hat{a}_{\mathrm{appch}}^{\mathcal{L}}\cdot r_{\mathrm{rel}}^{\mathcal{L}}}{\left\|r_{\mathrm{rel}}^{\mathcal{L}}\right\|_2}\right) \tag*{(10)}

Constraints:

Idle Target:

FTL=0(11)F^{\mathcal{L}}_{T}=0 \tag*{(11)}

Thrust Bound:

∥FCLmC∥∞≤amax⁡,(12)\left\|\frac{F^{\mathcal{L}}_{C}}{m_{C}}\right\|_{\infty}\leq a_{\max}, \tag*{(12)}

Range Bound:

∥rrelL∥2≤ρmax⁡,(13)\left\|r^{\mathcal{L}}_{\mathrm{rel}}\right\|_{2}\leq\rho_{\max}, \tag*{(13)}

Delta-V Budget:

∑k=0kf−1Δvk≤Δvmax⁡,(14)\sum_{k=0}^{k_{f}-1}\Delta v_{k}\leq\Delta v_{\max}, \tag*{(14)}

where

Δvk=∥FC,kLmC∥2Δt,\Delta v_{k}=\left\|\frac{F^{\mathcal{L}}_{C,k}}{m_{C}}\right\|_{2}\Delta t,

Timestep Bound: 0≤k≤kmax⁡0\leq k\leq k_{\max}.

∀k∈{kf−N+1,…,kf}:\forall k\in\{k_{f}-N+1,\ldots,k_{f}\}:
∥rrel,kL∥2≤ρtol,(15)\left\|r^{\mathcal{L}}_{\mathrm{rel},k}\right\|_{2}\leq\rho_{\mathrm{tol}}, \tag*{(15)}
∥vrel,kL∥2≤vtol,(16)\left\|v^{\mathcal{L}}_{\mathrm{rel},k}\right\|_{2}\leq v_{\mathrm{tol}}, \tag*{(16)}
θappch,k≤θtol.(17)\theta_{\mathrm{appch},k}\leq\theta_{\mathrm{tol}}. \tag*{(17)}

This formulation provides a single dynamically consistent model across all mission phases, avoiding the range and orbit-geometry limitations of local linearized models while remaining simple enough for large-scale RL training. In Section II-B, we describe the initial and terminal conditions of each trajectory phase, in addition to constraint bound values on the acceleration, range, Δv\Delta v, and time used when training the RL models. The approach angle success condition is enforced only for the close-range, docking, and hierarchical manager models.

Rendezvous Trajectory Phase Definitions

Rather than learning a single RL policy for the full RPO control protocol from orbit matching to docking, we divide the full RPO problem into five distinct phases: orbit matching, far-range approach, mid-range approach, close-range approach, and docking. This is advantageous because a feasible reward formulation for orbit matching differs vastly from a feasible reward formulation for docking behavior. Table 2 outlines the initial and terminal conditions used to define each phase of the RPO trajectory, as well as the corresponding modeling parameters. At very far initial separations, the initial condition becomes easier to characterize in terms of orbital elements rather than relative position and velocity.

PhaseInitial ConditionTerminal ConditionModel Parameters
Orbit MatchPhase: [−90.0,90.0]∘[-90.0, 90.0]^\circ<br>SMA: [−20k,20k][-20k, 20k] m<br>Ecc.: [0.0,0.01][0.0, 0.01]<br>Inc.: [−45.0,45.0]∘[-45.0, 45.0]^\circ<br>RAAN: [−45.0,45.0]∘[-45.0, 45.0]^\circρtol=10,000\rho_{\mathrm{tol}}=10{,}000 m<br>vtol=50v_{\mathrm{tol}}=50 m/sΔvmax⁡=10,000\Delta v_{\max}=10{,}000 m/s<br>Δvk,max⁡=1200\Delta v_{k,\max}=1200 m/s<br>ρmax⁡=25,000\rho_{\max}=25{,}000 km<br>kmax⁡=180k_{\max}=180
Far Range∣rrel,0L∣\left|r^{\mathcal{L}}_{\mathrm{rel},0}\right|: [3000,10000][3000,10000] m<br>∣vrel,0L∣\left|v^{\mathcal{L}}_{\mathrm{rel},0}\right|: [0.0,1.0][0.0,1.0] m/sρtol=1000\rho_{\mathrm{tol}}=1000 m<br>vtol=0.5v_{\mathrm{tol}}=0.5 m/sΔvmax⁡=180\Delta v_{\max}=180 m/s<br>ρmax⁡=20,000\rho_{\max}=20{,}000 m<br>amax⁡=0.05a_{\max}=0.05 m/s2^{2}<br>kmax⁡=500k_{\max}=500
Mid Range∣rrel,0L∣\left|r^{\mathcal{L}}_{\mathrm{rel},0}\right|: [800,1200][800,1200] m<br>∣vrel,0L∣\left|v^{\mathcal{L}}_{\mathrm{rel},0}\right|: [0.0,0.3][0.0,0.3] m/sρtol=100\rho_{\mathrm{tol}}=100 m<br>vtol=0.3v_{\mathrm{tol}}=0.3 m/sΔvmax⁡=70.7\Delta v_{\max}=70.7 m/s<br>ρmax⁡=3,000\rho_{\max}=3{,}000 m<br>amax⁡=0.05a_{\max}=0.05 m/s2^{2}<br>kmax⁡=900k_{\max}=900
Close Range∣rrel,0L∣\left|r^{\mathcal{L}}_{\mathrm{rel},0}\right|: [80.0,120.0][80.0,120.0] m<br>∣vrel,0L∣\left|v^{\mathcal{L}}_{\mathrm{rel},0}\right|: [0.0,0.3][0.0,0.3] m/s<br>θappch,0=60.0∘\theta_{\mathrm{appch},0}=60.0^\circρtol=10\rho_{\mathrm{tol}}=10 m<br>vtol=0.2v_{\mathrm{tol}}=0.2 m/s<br>θtol=30∘\theta_{\mathrm{tol}}=30^\circΔvmax⁡=50\Delta v_{\max}=50 m/s<br>ρmax⁡=300\rho_{\max}=300 m<br>amax⁡=0.05a_{\max}=0.05 m/s2^{2}<br>kmax⁡=900k_{\max}=900
Docking∣rrel,0L∣\left|r^{\mathcal{L}}_{\mathrm{rel},0}\right|: [8.0,12.0][8.0,12.0] m<br>∣vrel,0L∣\left|v^{\mathcal{L}}_{\mathrm{rel},0}\right|: [0.0,0.2][0.0,0.2] m/s<br>θappch,0=60.0∘\theta_{\mathrm{appch},0}=60.0^\circρtol=1\rho_{\mathrm{tol}}=1 m<br>vtol=0.1v_{\mathrm{tol}}=0.1 m/s<br>θtol=30∘\theta_{\mathrm{tol}}=30^\circΔvmax⁡=20\Delta v_{\max}=20 m/s<br>ρmax⁡=150\rho_{\max}=150 m<br>amax⁡=0.05a_{\max}=0.05 m/s2^{2}<br>kmax⁡=900k_{\max}=900

Table 2. Rendezvous Approach Phases

Reinforcement Learning Architecture

Reinforcement Learning (RL) is a machine learning framework that learns a reward-maximizing policy through environment interaction. RL formulates problems as Markov Decision Processes (MDP):

M=(X,U,p,ϕ,χ0,γ),(18)\mathcal{M}=(\mathcal{X},\mathcal{U},p,\phi,\chi_{0},\gamma), \tag*{(18)}

where X\mathcal{X} and U\mathcal{U} denote the state and action spaces, p(xt+1∣ut,xt)p(x_{t+1}\mid u_{t},x_{t}) is the transition distribution, ϕ\phi is the reward function, χ0\chi_{0} is the initial-state distribution, and γ∈[0,1]\gamma\in[0,1] is the discount factor. At each time step, a policy πθ(ut∣xt)\pi_{\theta}(u_{t}\mid x_{t}) parameterized by θ\theta selects an action from the current state and the environment produces a corresponding reward and next state [15, 16].

For a task M\mathcal{M}, the expected return of policy πθ\pi_{\theta} is

JM(θ)=Eτ∼pθ(τ∣M)[∑t=0H−1γtϕt],(19)J_{\mathcal{M}}(\theta)=\mathbb{E}_{\tau\sim p_{\theta}(\tau\mid\mathcal{M})}\left[\sum_{t=0}^{H-1}\gamma^{t}\phi_{t}\right], \tag*{(19)}

where τ\tau is a trajectory generated by the policy in task M\mathcal{M} and the corresponding RL objective is

arg⁡max⁡θ JM(θ).(20)\underset{\theta}{\arg\max}\ J_{\mathcal{M}}(\theta). \tag*{(20)}

Proximal policy optimization (PPO) is an actor-critic method used for RL training. Actor-critic algorithms use a policy network (actor) πθ\pi_{\theta} to select actions and a value network (critic) VψV_{\psi} to estimate expected returns, with the critic providing advantage estimates that reduce variance in policy gradient updates. PPO is a common choice in using RL for control design where simulation is relatively inexpensive and the action space is typically continuous. Its on-policy nature requires many fresh samples for training but provides stable policy updates through its clipped objective function, which prevents destructively large policy changes that could be catastrophic in continuous control tasks [17, 18].

Reward Design

Reward design is a critical element of RL model training. For our RPO problem, we define the reward components given in Table III, which we divide conceptually into four groups. The first group consists of potential-based progress terms, including relative position and orbital-element progress. These rewards measure the change in error between timesteps, so the reward reflects the controller’s net improvement rather than absolute error. This is especially useful at long range, where a per-timestep error penalty can unintentionally incentivize fast episode termination. The second group contains continuous regulation terms, which shape how the vehicle moves rather than where it is. Velocity and range-rate penalties regulate approach speed, while the coast incentive discourages unnecessary thrusting. The third group includes precision terms like a station keeping reward and hold-streak bonus that rewards remaining within position and velocity tolerances, while the exponential error and position/velocity penalty terms provide a stronger incentive for highly accurate convergence. The remaining terms provide general trajectory efficiency and outcome signals. The Δv\Delta v penalty discourages excessive thrusting, the time penalty discourages unnecessarily long solutions, the terminal condition captures success or failure, and the skill no-op penalty prevents the hierarchical manager from repeatedly selecting a skill whose subgoal has already been satisfied.

RewardDefinition
Position Penaltyϕ={rrel/10rrel<rprox0otherwise\phi= \begin{cases} r_{\mathrm{rel}}/10 & r_{\mathrm{rel}} < r_{\mathrm{prox}} \\ 0 & \text{otherwise} \end{cases}
Velocity PenaltyConstant: ϕ=−∥vrel∥\phi= -\lVert\mathbf{v}_{\mathrm{rel}}\rVert; Distance-Scaled: ϕ=−∥vrel∥max⁡(rrel,rmin⁡)\phi= -\dfrac{\lVert\mathbf{v}_{\mathrm{rel}}\rVert}{\max(r_{\mathrm{rel}},r_{\min})}
Progressϕ=ϵprev−ϵcurs\phi= \dfrac{\epsilon_{\mathrm{prev}}-\epsilon_{\mathrm{cur}}}{s}, where ϵ∈{altitude difference3000,eccentricity difference0.005,inclination difference0.01,relative positionrrel,true anomaly difference2.0,plane alignment5E−4}\epsilon\in\left\{\dfrac{\text{altitude difference}}{3000},\dfrac{\text{eccentricity difference}}{0.005},\dfrac{\text{inclination difference}}{0.01},\dfrac{\text{relative position}}{r_{\mathrm{rel}}},\dfrac{\text{true anomaly difference}}{2.0},\dfrac{\text{plane alignment}}{5\mathrm{E}{-}4}\right\}
Range-Rate Controlϕ={−(1E−5)(vrel−vmax⁡)2vrel<−vmax⁡0.1(1−rrel/ract)rrel<ract−(5E−5)vrelvrel>00otherwise\phi= \begin{cases} -(1\mathrm{E}{-}5)(v_{\mathrm{rel}}-v_{\max})^2 & v_{\mathrm{rel}} < -v_{\max} \\ 0.1(1-r_{\mathrm{rel}}/r_{\mathrm{act}}) & r_{\mathrm{rel}} < r_{\mathrm{act}} \\ -(5\mathrm{E}{-}5)v_{\mathrm{rel}} & v_{\mathrm{rel}} > 0 \\ 0 & \text{otherwise} \end{cases}; vmax⁡=vmax⁡,nearv_{\max}=v_{\max,\mathrm{near}} if r<rgater<r_{\mathrm{gate}}, else vmax⁡,farv_{\max,\mathrm{far}}
Coast Incentiveϕ={−∥acmd∥rrel<rprox0otherwise\phi= \begin{cases} -\lVert\mathbf{a}_{\mathrm{cmd}}\rVert& r_{\mathrm{rel}} < r_{\mathrm{prox}} \\ 0 & \text{otherwise} \end{cases}
Safety Penaltyϕ={−(3E−8)(hwarn−h)h<hwarn0otherwise\phi= \begin{cases} -(3\mathrm{E}{-}8)(h_{\mathrm{warn}}-h) & h<h_{\mathrm{warn}} \\ 0 & \text{otherwise} \end{cases}
Station Keepingϕ={10rrel<rtol, vrel<vtol−(1E−8)[(rrel−rSKrtol)2+(vrelvtol)2]otherwise\phi= \begin{cases} 10 & r_{\mathrm{rel}}<r_{\mathrm{tol}},\ v_{\mathrm{rel}}<v_{\mathrm{tol}} \\ -(1\mathrm{E}{-}8)\left[\left(\dfrac{r_{\mathrm{rel}}-r_{\mathrm{SK}}}{r_{\mathrm{tol}}}\right)^2+\left(\dfrac{v_{\mathrm{rel}}}{v_{\mathrm{tol}}}\right)^2\right] & \text{otherwise} \end{cases}
Hold Bonusϕ=nhold⋅b\phi= n_{\mathrm{hold}}\cdot b
Approach Coneϕ={−(θapproach−θtol)2/sθapproach>θtol, and rrel<rapproach0otherwise\phi= \begin{cases} -(\theta_{\mathrm{approach}}-\theta_{\mathrm{tol}})^2/s & \theta_{\mathrm{approach}}>\theta_{\mathrm{tol}},\ \text{and }r_{\mathrm{rel}}<r_{\mathrm{approach}} \\ 0 & \text{otherwise} \end{cases}
Exponential Errorϕ=exp⁡(−∥ϵ∥)\phi=\exp(-\lVert\epsilon\rVert) (or exp⁡(−∥ϵ∥2)\exp(-\lVert\epsilon\rVert^2)), where ϵ∈{h−htgt3000,i−itgt0.02,1−n^⋅n^tgt0.0005,∥htgt−h∥0.05⋅∥htgt∥}\epsilon\in\left\{\dfrac{h-h_{\mathrm{tgt}}}{3000},\dfrac{i-i_{\mathrm{tgt}}}{0.02},\dfrac{1-\hat{\mathbf{n}}\cdot\hat{\mathbf{n}}_{\mathrm{tgt}}}{0.0005},\dfrac{\lVert\mathbf{h}_{\mathrm{tgt}}-\mathbf{h}\rVert}{0.05\cdot\lVert\mathbf{h}_{\mathrm{tgt}}\rVert}\right\}
Delta-v PenaltyLinear: ϕ=−Δv\phi=-\Delta v; Quadratic: ϕ=−Δv2\phi=-\Delta v^2
Time Penaltyϕ=−1\phi=-1
Skill No-Op Penaltyϕ={−1Δt≤tmin⁡ and Δr<Δrmin⁡0otherwise\phi=\begin{cases}-1 & \Delta t\leq t_{\min}\text{ and }\Delta r<\Delta r_{\min}\\0&\text{otherwise}\end{cases}
Terminal Conditionϕ={100if success−100otherwise\phi=\begin{cases}100&\text{if success}\\-100&\text{otherwise}\end{cases}

Table III. Reward Component Definitions

Single-Phase RL Controllers

Using the reward components defined in Section III-A, we first train a set of single-phase controllers, each specialized for a distinct portion of the overall rendezvous and docking problem. The far-range and mid-range approach models rely on reward terms that consider relative position and velocity, and the close-range and docking models employ an additional approach-cone corridor to constrain the final approach direction. In contrast, the orbit-matching model considers semi-major axis (SMA), eccentricity, inclination, orbital-plane, and true-anomaly errors that are better suited to impulsive Δv\Delta v actions. The orbit-matching controller is trained over a three-stage curriculum that progressively widens the inclination and right ascension (RAAN) offset ($5^\circ \rightarrow 20^\circ \rightarrow 45^\circ$) and scales the per-step Δv\Delta v budget (400 m/s →\rightarrow 600 m/s →\rightarrow 1200$ m/s) while keeping the reward formulation constant. Table IV lists the reward weights for all controllers, and Table III defines reward components.

ParameterOrbit MatchFar RangeMid RangeClose RangeDockMulti Phase
Reward Weights
Position Penalty----1.0-1.0-
Velocity Penalty — Distance-Scaled-1.01.0--1.0
Velocity Penalty — Constant---1.01.0-
Position Progress-1.01.0--1.0
(Scale Value)(s=50)(s=50)--(s=50k)
Approach Cone---1.01.0-
(Scale Value)--(s=1.0)(s=0.1)-
Altitude Progress1.0-----
Eccentricity Progress10.0-----
Inclination Progress10.0-----
True Anomaly Progress10.0-----
Plane Progress10.0-----
Range Rate Control1.0-----
Coast Incentive0.1-----
Safety Penalty1.0-----
Station-Keeping1.0-----
Hold Streak Bonus1.0-----
Exponential Error10.0-----
Delta-v Penalty — Linear-1.01.01.01.01.0
Delta-v Penalty — Quadratic0.0012-----
Time Penalty0.00.10.1--0.1
Skill No-Op Penalty-----5.0
Terminal Success1.01.01.01.01.01.0
Terminal Failure0.51.01.01.05.01.0

Table IV. Reward Weights Across All Controllers

All controllers use the same two-body relative-motion environment, PPO for training, and compact multi-layer perceptron (MLP) policy architecture given in Table V. Only the initial condition distribution, success tolerances, Δv\Delta v and range limits, and reward weights are changed across stages. Fixing the simulator, learning algorithm, and policy capacity allows reward designs to be compared without confounding due to differences in model size or optimization method.

ParameterOrbit MatchFar RangeMid RangeClose RangeDockingMulti Phase
Network Size[128, 128][128, 128]
Activationtanhtanh
Learning Rate0.00030.0003
Batch size256256
Discount0.9980.990.990.990.990.99
GAE λ\lambda0.950.95
Entropy Coef.0.010.00.00.00.00.01
Target KL0.03NoneNone0.03NoneNone

Table V. RL Model Parameters

Multiphase Hierarchical RL Manager

We train a hierarchical reinforcement learning manager to select among the trained single-phase controllers. The manager operates at a coarser temporal resolution than the low-level controllers and is trained using PPO with a discrete action space corresponding to the five available skills. After a skill is selected, its frozen policy controls the spacecraft for up to 950 low-level environment steps before the manager selects again. The 950 step-cap is chosen such that it comfortably exceeds each single-phase model’s own mean episode length. To simplify the large-range operating regime, the orbit-matching controller is selected whenever the chaser-target separation exceeds 100 km. At smaller separations, the manager may select any of the five controllers, including an earlier-phase controller when the current state requires recovery or correction. A macro-step can also terminate before reaching the 950-step limit when the active controller

satisfies its local handoff condition. This allows control to return to the manager as soon as the current phase objective is achieved and limits operation of each controller outside its training distribution.

The manager is trained using a dense shaping reward constructed from similar general reward components used for the single-phase controllers. Each episode’s initial conditions include offsets in phase angle, semi-major axis (SMA), inclination (Inc), right ascension (RAAN), and eccentricity (Ecc), consistent with the orbit-matching training distribution. Observations and rewards are normalized online to stabilize value-function learning against the large reward-scale swings between a normal in-distribution macro-step and an out-of-distribution skill invocation. Since each phase transition requires the simulation of multiple low-level steps under a frozen controller, hierarchical training has substantially lower effective throughput than single-phase training. Table IV lists the reward parameters used for the hierarchical multiphase model, while the corresponding reward-component definitions are provided in Table III.

All six controllers – five single-phase and one multiphase – were trained independently with Stable-Baselines3’s PPO implementation. Table V outlines the values for all training parameters in this study that differ from the default value in Stable-Baselines3 [19].

Results

Single-Phase Model Results

Before composing the single-phase models into the multiphase hierarchical policy, we evaluate each of the five single-phase controllers in isolation. Each policy is evaluated over N=1000N = 1000 held-out episodes with a deterministic policy and a fixed evaluation seed. Table VI summarizes each model’s success rate, final range, final velocity, and total Δv\Delta v statistics at episode termination.

PhaseSuccess RateMin. Range (m)Final Range (m)Final Vel. (m/s)Δv\Delta v (m/s)
Orbit Match97.0%5380.105383.522.0055660.64
Far Range100.0%249.96269.970.47826.83
Mid Range100.0%53.5264.480.2968.99
Close Range100.0%9.809.950.0232.66
Docking100.0%0.980.980.0090.25

Table VI. Single-phase policy Evaluation (N=1000N = 1000 episodes each, deterministic policy, held-out seed, all except success rate are median values).

Four of five phases attain a perfect 100.0% success rate over their held-out evaluation set, with the exception of the orbit matching policy, which reaches 97.0% success. This validates that each single-phase policy is individually reliable within its own operating regime. As a performance benchmark, the best-performing SpaceGym baseline reports success rates of (82%) for docking and (62%) for rendezvous [11]. Although the SpaceGym tasks differ in exact initial and terminal conditions, the comparison highlights the strong performance of each single-phase model in this study. The median Δv\Delta v decreases monotonically with the shrinking size of the operating range, from 5660.64 m/s for orbit matching to 0.25 m/s for docking. This is consistent with the two-order-of-magnitude decrease in starting range and the correspondingly limited burn authority each closer-range phase is allowed.

Comparing each model’s median final range against its own position tolerance reveals each policy’s success margin. For example, the far-range model converges to only 27.0% of its 1000 m tolerance, leaving comfortable margins. By contrast, the close-range and docking models converge to 99.5% and 97.6% of their 10 m and 1 m tolerances, respectively. We attribute this to the additional 30 degree approach-angle success condition imposed on these proximity phases. The combined approach cone and proximity constraints likely consume most of the policy’s available Delta-v budget, leaving little incentive to converge to a tighter range after the success condition is met.

Relative Position and Velocity Magnitude

Figure 1. Relative Position and Velocity Magnitude

Multiphase Hierarchical Model Results

We evaluate the trained hierarchical manager over N=1000N=1000 held-out episodes with a fixed seed, sampled from the same initial condition distribution as the single-phase orbit match model. The learned manager achieves 99.4% success, with terminal accuracy within tolerance on both position and velocity. The median result is 0.976m and 0.00930m/s for the terminal position and velocity respectively, against the 1m and 0.1m/s tolerance requirement.

Trajectory Visualization from Learned Manager

Figure 2. Trajectory Visualization from Learned Manager (Left: Earth-Centric, Right: Target-Centric)

To contextualize these results, we compare the learned manager against a heuristic baseline that runs the same five single-phase models exactly once each, in a fixed order determined by each model’s own termination tolerance. Without any shared hierarchical environment, each model executes in

its own independent environment under its own full dynamics and tolerances, with no shared timestep cap and no shared Delta-v budget across models. Instead, only the terminal physical state is carried forward to the next model as its initial state. As seen in Table VII, the heuristic achieves 97.0% success at a median Δv\Delta v of 5684.86m/s, while the learned manager reaches a higher 99.4% success rate at a comparable 5706.86m/s median Δv\Delta v.

MetricLearned managerSequential Heuristic
Success rate99.4%97.0%
Final Range (m)0.976 (3.76e4 ± 5.13e5)0.977 (5.25e4 ± 6.37e5)
Final Velocity (m/s)0.00930 (66.6 ± 947)0.00930 (40.4 ± 525)
Δv\Delta v (m/s)5706.86 (5.67e3 ± 2.85e3)5684.86 (5.55e3 ± 2.41e3)

Table VII. Comparison of learned manager vs. heuristic baseline performance metrics with N=1000N=1000 (Format: Median (Mean ± Std))

The two approaches converge to nearly identical terminal margins: a median final range of 0.976m and velocity 0.00930m/s for the learned manager, against 0.977m and 0.00930m/s for the heuristic. Both results are within the 1m and 0.1m/s tolerance requirements. This behavior is consistent with each single-phase model handing off exactly at its own success threshold rather than continuing to refine the approach once nominally within tolerance. We note that the mean–std statistics are dominated by the small number of failed episodes in the 1000-episode sample (6 for the learned manager, 30 for the heuristic) and should thus be taken in context with the median results.

Comparison of learned manager vs. heuristic baseline for relative position and velocity through each trajectory

Figure 3. Comparison of learned manager vs. heuristic baseline for relative position and velocity through each trajectory. Only successful trajectories are displayed.

Next, we investigate how each manager’s time is distributed across the five phases, as presented in Table VIII. The learned manager spends a majority of each trajectory in the orbit-matching phase (97.141%), with the far-range, mid-range, close-range, and docking models together accounting for under 3%. The heuristic shows a similar pattern, with 97.491% of time spent in orbit-matching. This is consistent with the physical intuition behind the trajectory design, where far-range orbital-plane matching is a slow, coast-dominated maneuver, while the near-field approach and docking sequence is relatively fast, although it requires many more individual control decisions. The learned manager’s mean trajectory duration is 26.6 hours, similar to the heuristic’s 26.6 hours.

PhaseLearned ManagerHeuristic
Orbit Match97.141% ± 1.052% (25.8836 ± 7.4155 h)97.491% ± 0.803% (25.9421 ± 6.3255 h)
Far Range1.161% ± 0.380% (0.2868 ± 0.0275 h)0.970% ± 0.303% (0.2456 ± 0.0448 h)
Mid Range0.484% ± 0.154% (0.1194 ± 0.0109 h)0.375% ± 0.121% (0.0945 ± 0.0174 h)
Close Range0.197% ± 0.069% (0.0507 ± 0.0125 h)0.265% ± 0.087% (0.0665 ± 0.0117 h)
Docking1.018% ± 0.561% (0.2437 ± 0.0543 h)0.899% ± 0.295% (0.2263 ± 0.0398 h)

Table VIII. Time breakdown of learned manager and heuristic baseline by phase (percentages and hours reported as mean ± std across episodes)

Computational Resource Analysis

The computational analysis was conducted on an Intel Core Ultra 7 268V CPU (8 cores/8 threads) with 32 GB of RAM, using single-threaded execution without parallelization or GPU acceleration. Training was parallelized across 8 concurrent processes, one per physical core, using CPU-only execution.

Table IX reports the training compute cost of each policy. The five phase-specific skills range from 0.49M to 4.01M total timesteps seen during training, with per-skill training times of up to 1.56 hours. The hierarchical manager required substantially more training time since each of its high-level decisions requires a roll-out of the single-phase policies.

ModelTimestepsTraining Time (h)Throughput (fps)
Orbit Match
Stage 1491,5200.062,296
Stage 2430,8480.052,256
Stage 32,179,0720.292,072
Total3,101,4400.402,129
Far Range491,5200.091,510
Mid Range688,1280.171,135
Close Range4,014,0801.18942
Docking3,031,0401.56539
Multiphase199,9683.0218.4

Table IX. Training metrics per model

We characterize each policy’s computational cost using four metrics:

  1. Parameter count: the number of trainable weights in the network

  2. Checkpoint size: the on-disk storage footprint of the saved model

  3. Inference latency: the mean wall-clock time required to compute a single action from an observation

  4. Control-step margin: the ratio of the simulated control step duration to the mean inference latency

All six learned policies – the five phase-specific controllers and the hierarchical manager – use the same two-layer actor-critic network, differing only in observation and action dimensions. Single-sample inference latency is therefore similar across models, ranging from 0.093 to 0.117 ms. At this scale, the measured latency is largely dominated by Stable-Baselines3 and Gymnasium call overhead rather than network computation [19], [20]. For comparison, Bashnick and Ulrich report mean online solution times that are nearly four orders of magnitude larger at 0.34-4.82 s for a three-dimensional rendezvous problem, although differences in hardware and implementation preclude a direct speedup comparison [21]. Table X reports the model size, inference latency, and control step margin of each model. This real-time margin ranges from (8.53×103)(8.53 \times10^{3}) for the close-range skill to (9.35×106)(9.35 \times10^{6}) for the orbit matching model, whose 1031.8s macro-step interval makes inference cost negligible relative to the control timescale. The hierarchical manager itself achieves a comparable (8.62×103)(8.62 \times10^{3}) margin evaluated against the same 1 Hz reference cadence.

ModelParamsCheckpoint (KB)Latency (ms)Control Step Margin
Docking35,8474620.095 ± 0.0321.05×1041.05 \times10^{4}
Close Range35,8474640.117 ± 0.0728.53×1038.53 \times10^{3}
Mid Range35,8474640.093 ± 0.0371.08×1041.08 \times10^{4}
Far Range35,8474640.096 ± 0.0533.75×1043.75 \times10^{4}
Orbit Matching36,8714760.110 ± 0.0539.35×1069.35 \times10^{6}
Multiphase37,1264840.116 ± 0.0628.62×1038.62 \times10^{3}

Table X. Model size and inference latency (N = 1,000)

As presented in Table XI, the physics/environment operations account for 64.74% of the learned manager’s episode time and 63.86% of the heuristic baseline’s episode time. Inference contributes only 0.21% of wall-clock time under the learned hierarchical manager, while the heuristic baseline avoids any manager inference given its deterministic hand-off policy. Over N=1,000N = 1{,}000 episodes with identical initialization, both approaches complete in under one second per episode on average. The learned manager’s mean episode time of 0.961s is modestly higher than the heuristic’s 0.917s, but this gap is an artifact of the cases on which the heuristic fails. On the episodes where the two disagree on success, the heuristic terminates in ~0.058s by failing fast and halting the skill chain, whereas the learned manager expends ~0.963s to complete the docking maneuver. On the episodes both controllers solve, their per-episode costs are comparable, and the learned manager exhibits lower run-to-run variance (±0.152\pm0.152s vs. ±0.221\pm0.221s), reflecting more consistent skill sequencing. Accounting for task completion, the learned manager’s 99.4% success rate corresponds to 0.967s of expected computation per successful docking, compared to 0.945s for the sequential baseline’s 97.0% success rate.

MetricsLearnedHeuristic
Success rate0.9940.970
Mean episode wall-clock (s)0.961 ±\pm 0.1520.917 ±\pm 0.221
Median episode wall-clock (s)0.9320.905
Expected wall-clock per success (s)0.9670.945
Computational Breakdown
Manager Inference (%)0.21-
Single-Phase Inference (%)35.0536.14
Physics/Environment Simulation (%)64.7463.86

Table XI. Computational breakdown for the learned and heuristic hierarchical managers (N = 1,000 paired episodes)

Conclusion

This work presents a hierarchical reinforcement learning framework for autonomous rendezvous and proximity operations that successfully integrates the complete mission sequence from orbit matching to terminal docking within a learned control architecture. By training five specialized phase-specific policies and a high-level manager that learns state-dependent phase transitions, the approach achieves 99.4% success rate over 1,000 held-out evaluation episodes while maintaining comparable Delta-v efficiency (median Δv\Delta v of 5706.86 m/s) to a fixed sequential baseline (97.0% success, 5684.86 m/s). The use of nonlinear orbital dynamics in the ECI frame enables the framework to handle large initial separations that cannot be adequately addressed by linearized relative-motion models. The hierarchical structure allows each phase to be optimized independently with phase-appropriate reward formulations before integration into the complete system. Computational analysis demonstrates that the learned policies are suitable for real-time onboard execution, with inference latencies under 0.12 milliseconds and control-step margins exceeding 10310^3.

Several limitations remain: the current formulation considers only three-degree-of-freedom translational dynamics without perturbations, assumes an idle target, and does not explicitly model sensor noise or actuation uncertainties that would be present in operational systems. Additionally, further reward tuning could improve model training times and trajectory behavior.

Acknowledgment

We gratefully acknowledge Andrew Rogers for his insight on RPO trajectory design, as well as Christopher Koh and Kshitija Taywade for their early contributions to code development. This project was supported by the LDRD program project 20240415ER “Initial Orbital Determination using Adaptive Optimization” at Los Alamos National Laboratory. Research conducted at Los Alamos National Laboratory is done under the auspices of the National Nuclear Security Administration of the U.S. Department of Energy under Contract No. 89233218CNA000001. Report LA-UR-26-27724.

References

  1. [1]Jacob Broida and Richard Linares. Spacecraft Rendezvous Guidance in Cluttered Environments via Reinforcement Learning. In 29th AAS/AIAA Space Flight Mechanics Meeting, pages 1–15, 2019.
  2. [2]Xinyu Wang, Guohui Wang, Yi Chen, and Yongfeng Xie. Autonomous Rendezvous Guidance via Deep Reinforcement Learning. 2020 Chinese Control and Decision Conference (CCDC), pages 1848–1853, August 2020. ISSN: 1948-9447.DOI
  3. [3]Kirk Hovell and Steve Ulrich. Deep Reinforcement Learning for Spacecraft Proximity Operations Guidance. Journal of Spacecraft and Rockets, 58(2):254–264, March 2021.DOI
  4. [4]Lorenzo Federici, Boris Benedikter, and Alessandro Zavoli. Deep Learning Techniques for Autonomous Spacecraft Guidance During Proximity Operations. Journal of Spacecraft and Rockets, 58(6):1774–1785, November 2021.DOI
  5. [5]Charles E. Oestreich, Richard Linares, and Ravi Gondhalekar. Autonomous Six-Degree-of-Freedom Spacecraft Docking with Rotating Targets via Reinforcement Learning. Journal of Aerospace Information Systems, 18(7):417–428, 2021.DOI
  6. [6]Qingyu Qu, Kevin Liu, Wei Wang, and Jinhu Lü. Spacecraft Proximity Maneuvering and Rendezvous with Collision Avoidance Based on Reinforcement Learning. IEEE Transactions on Aerospace and Electronic Systems, 58(6):5823–5834, December 2022.DOI
  7. [7]Vincent Chen, Sean A. Phillips, and David A. Copp. Planning autonomous spacecraft rendezvous and docking trajectories via reinforcement learning. In Proceedings of the 45th Annual AAS Guidance, Navigation and Control Conference, Breckenridge, Colorado, 2023. AAS Paper 23-026.
  8. [8]Minduli Charithma Wijayatunga, Roberto Armellin, and Harry Holt. Robust trajectory design and guidance for far-range rendezvous using reinforcement learning with safety and observability considerations. Aerospace Science and Technology, 159:109996, 2025.DOI
  9. [9]Anthony Aborizk and Norman Fitz-Coy. Multiphase Autonomous Docking via Model-Based and Hierarchical Reinforcement Learning. Journal of Spacecraft and Rockets, 61(4):993–1005, July 2024.DOI
  10. [10]Abdulla Tammam and Nabil Aouf. Hierarchical deep reinforcement learning for CubeSat guidance and control. Control Engineering Practice, 156:106213, 2025.DOI
  11. [11]Mysore Sreepath and Manish Mehta. SpaceGym: A Gymnasium-Based Benchmark for Deep Reinforcement Learning in Spacecraft Proximity Operations, pages 1038–10396, 2026.
  12. [12]Jeremy J. Kaczmarek and Constantinos Zagaris. Autonomous multi-phase rendezvous, proximity operations, and docking via model predictive control. In IEEE Aerospace Conference, pages 1–10, 2023.DOI
  13. [13]Tanner Gill, Greg Furlich, and Nisar Ahmed. Multi-Phase Guidance and Control for Small Satellite Docking via Deep Reinforcement Learning. Small Satellite Conference, August 2026.
  14. [14]W. H. Clohessy and R. S. Wiltshire. Terminal guidance system for satellite rendezvous. Journal of the Aerospace Sciences, 27(9):653–658, September 1960.DOI
  15. [15]Richard S. Sutton and Andrew G. Barto. Reinforcement learning: An introduction. MIT Press, Cambridge, MA, 2nd edition, 2018.
  16. [16]Martin L. Puterman. Markov decision processes: Discrete stochastic dynamic programming. John Wiley & Sons, New York, NY, 1994.
  17. [17]John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.arxiv.org/abs/1707.06347
  18. [18]Vijay R. Konda and John N. Tsitsiklis. Actor-critic algorithms. In Advances in Neural Information Processing Systems, volume 12, pages 1008–1014, 2000.
  19. [19]Antonin Raffin, Ashley Hill, Adam Gleave, Anssi Kervanisto, Maximilian Ernestus, and Noah Dormann. Stable-Baselines3: Reliable Reinforcement Learning Implementations. Journal of Machine Learning Research, 22(268):1–8, 2021.
  20. [20]Mark Towers, Ariel Kwiatkowski, John Balis, Gianluca De Cola, Tristan Deleu, Manuel Goulão, Kallinteris Andreas, et al. Gymnasium: A standard interface for reinforcement learning environments. Advances in Neural Information Processing Systems, 38, 2026.arxiv.org/abs/2407.17032
  21. [21]Courtney Bashnick and Steve Ulrich. Fast model predictive control for spacecraft rendezvous and docking with obstacle avoidance. Journal of Guidance, Control, and Dynamics, 46(5):998–1007, 2023.DOI

Paper details

vlnc:W_fut3s8ry
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents