betaFeedback

WorksComputer Science

CtRoFlow: Monocular Camera-to-Robot Pose Estimation via Conditioned 3D Flow Matching

Abstract

Camera-to-robot pose estimation from a monocular image is significant for vision-based robot navigation and control. Existing camera-to-robot pose estimation methods either rely on time-consuming iterative rendering, PnP based on predicted 2D keypoints with limited robustness or 3D registration which suffers from monocular scale ambiguity and complex training configuration. In this work, we propose CtRoFlow, a flow matching-based framework for camera-to-robot pose estimation. From the predicted 2D heatmaps, we propose a Keypoint-centered Feature Extractor (KFE) to obtain positional features along with contextual representations from keypoints-centered multi-scale patches. Moreover, we introduce Graph-guided Condition Generator (GCG), which generates condition for flow matching based on correlation among keypoints. Besides, we introduce Bone Length Loss and Ray-based Loss for decoupled training and scale consistency, with joint-wise weighting to mitigate varied prediction difficulty across joints. The proposed method outperforms state-of-the-art methods for pose estimation across different types of robots with multiple cameras, as well as for zero-shot cross-scene robot pose estimation. Code will be available upon acceptance.

Introduction

Accurate pose estimation of articulated robots from monocular RGB is a core capability for vision-based navigation [2], human–robot collaboration [21], closed-loop manipulation [10] and multi-robot collaboration [20]. Unlike rigid object pose estimation, robot pose requires recovering the configuration of a kinematic chain whose links are self-occluding and appearance-ambiguous under changing viewpoints and lighting. Conventional approaches perform camera-to-robot calibration using externally mounted fiducial markers such as ArUco Markers [3] and AprilTags [15]. With a collection of multiple robot configurations,

camera-to-robots pose can be recovered by Perspective-n-Point (PnP) algorithms based on 2D marker coordinates and 3D positions from forward kinematics. However, such calibration can easily drift from minor impacts or repeated operation, alongside time-varying environmental conditions such as vibration.

To enable flexible camera-robot calibration for robot interaction in unstructured environments, render-based pipelines [5, 22] perform iterative rendering supervised by segmentation masks to directly reconstruct the robot body. However, these methods rely on iterative refinement and require proper initialization for the optimization loop to converge [8]. To boost efficiency, end-to-end models [4, 11, 12] detect 2D keypoints and recover 3D structure via Perspective-n-Point (PnP), combined with robot forward kinematics (FK) and camera intrinsics. Some recent works [1, 9] adopt 3D models for 2D–3D registration to jointly optimize 2D and 3D representations. However, performance of keypoint-based approaches using PnP [1, 4, 11, 12] is inherently limited due to the sensitivity to correspondence noise from occlusion or out-of-vision body shown in Figure 2. Meanwhile, monocular models used in 2D-3D registration [1, 9] provide depth maps with scale ambiguity. In contrast, generative keypoint-based methods utilize diffusion process to lift 2D keypoints to 3D space with multiple sampling candidates, achieving better generalization performance for robot pose estimation [19]. Inspired by excellent performance of single sampling-based flow matching model for various downstream tasks [17], we explore more efficient and training-stable flow matching with single initial sampling for camera-to-robot pose estimation, instead of DDIM [22] or SDE [19] in existing arts shown in Figure 1. Moreover, for single-sampling flow matching, we need better condition from more keypoints-based feature representations and stronger geometric constraint to avoid ambiguity.

Figure 1. Comparison of CtRoFlow with existing markerless camera-to-robot pose estimation methods [1, 4, 5, 9, 19, 22]. CtRoFlow is a novel flow matching-based framework with conditioning features extracted based on 2D keypoints distribution by KFE and GCG.

Figure 2. Challenges for existing camera-to-robot pose estimation methods and the proposed method.

To this end, we propose CtRoFlow, a conditioned flow matching-based model for camera-to-robot pose estimation. We find two major challenges shown in Figure 2 when applying flow matching to estimate robot pose. First, directly predicting camera-frame 3D keypoints without PnP and forward kinematics (FK) fails to enforce rigid structural constraints, kinematic priors and inter-joint relationships, leading to projection ambiguity. Second, the prediction difficulty varies across different robot joints, which leads to unbalanced learning for previous keypoint-based methods. To tackle these issues, we make the following contributions:

  1. We propose a Keypoints-centered Feature Extractor to learn multi-scale contextual representations at keypoint locations together with positional embeddings.

  2. We propose Graph-guided Condition Generator, which provides the condition for 3D flow matching based on keypoint-centric features and the relationships among keypoints.

  3. We introduce Bone Length Loss and Ray-based Loss during training to guarantee rigid structural consistency and scale stability, respectively. Meanwhile, Joint-wise Weighting is adopted in loss computation to balance the varied prediction difficulty over joints.

  4. The proposed CtRoFlow outperforms state-of-the-art models for in-domain, sim-to-real and zero-shot camera-to-robot pose estimation across DREAM dataset [7], RoboKeyGen dataset [19] and our in-house dataset.

Related Work

Marker-based Robot Pose Estimation

The goal of Camera-to-Robot Pose Estimation is to estimate the transformation between a robot’s end-effector and its vision system. Camera-to-Robot Pose Estimation describes the setup where the camera is stationary and positioned away from the robot [13, 16], in contrast to eye-in-hand setting where the camera is mounted on the robot end-effector [14]. Traditional camera-to-robot pose estimation approaches attach fiducial markers to the end-effector [3, 15], move the marker to multiple known poses, detect marker locations in captured images, and then solve for the camera-to-robot transformation. While widely applicable, such classic pipeline requires a full offline recalibration whenever the camera-robot relative pose shifts, which becomes cumbersome for real-world deployment.

Markerless Robot Pose Estimation

To enable flexible online camera-to-robot pose estimation for real-world deployment, DREAM [7] pioneers online markerless estimation with a large-scale dataset. RoboPose [5] and MonoSE(3)-Diffusion [22] uses iterative rendering supervised by alignment between projected robot models and segmentation masks for pose estimation, with low inference efficiency though. To improve efficiency, CtRNet [11] and CtRNet-X [12] predict 2D keypoints and recover robot poses via PnP with given known joint angles. SGTAPose [18] further exploits temporal cues through a sequential input. RoboPEPP [4] adopts embedding predictive pretraining on masked-joint images to mitigate occlusions, while HPE [1] integrates a depth branch to leverage 3D priors. Nevertheless, such keypoint-based pose reconstruction using PnP is still sensitive to occlusion and noise which leads to limited robustness. The most recent work RoboTAC [9] directly predicting camera extrinsics instead of PnP. However, its monocular 3D model usually suffers from scale ambiguity, with high-cost training and complex parameter regularization for multi-way 2D-3D alignment. Without PnP, a keypoint-based generative method RoboKeyGen [19] utilizes 2D keypoints position-conditioned VP-SDE for iterative denoising 3D keypoints. In contrast, CtRoFlow directly predicts camera-frame 3D keypoints and joint angles from full image using more training-stable flow matching with constraints for 2D-3D ambiguity and keypoint-centered representations beyond just positions.

Figure 3. Pipeline of the proposed method. CtRoFlow mainly consists of a pretrained image encoder with two separate groups of LoRA adapters (LoRAkpLoRA_{kp}, LoRAqLoRA_q), 2D heatmap decoders (HmDec KP, HmDec joint), Keypoints-centered Feature Extractors (KFEkpKFE_{kp}, KFEqKFE_q) and Graph-guided Condition Generators (GCGkpGCG_{kp}, GCGqGCG_q), as well as a Joint Head and a 3D conditioned flow matching network.

Method

2D Keypoints Prediction

A pretrained image encoder produces a spatial feature map F∈RC×h×w\mathbf{F} \in\mathbb{R}^{C \times h \times w}. The backbone remains frozen, while Low-Rank Adaptation module (LoRA) is injected into projection layers of multi-head self-attention and MLPs of feed forward network for finetuning. Four transposed convolutions followed by a 1×11 \times1 convolution compose Heatmap Decoder (HmDec KP and HmDec joint) to produce per-keypoint belief maps H∈[0,1]K×H×W\mathbf{H} \in[0,1]^{K \times H \times W}. Hard argmax on channel k∈{1,2,...,K}k \in\{1, 2, ..., K\}, where KK is the number of keypoints, gives a peak coordinate to denote a position of each keypoint pk=(uk,vk)=arg max⁡(u,v)Hk(u,v)\mathbf{p}_k = (u_k, v_k) = \operatorname*{arg\,max}_{(u,v)} H_k(u,v), while confidence of each keypoint also comes from the predicted heatmap sk=Hk(uk,vk)s_k = H_k(u_k, v_k).

Keypoints-centered Feature Extractor

Around peak uk\mathbf{u}_k, we bilinearly sample patches Pk,n\mathbf{P}_{k,n} of sizes n∈{3,7,11}n \in\{3, 7, 11\} from Hk\mathbf{H}_k. Each flattened patch is mapped by a two-layer MLP ϕp\phi_p, then three embeddings are concatenated and fused by another MLP, formulating each keypoint-centered patch embedding tk\mathbf{t}_k based on Eq. (1).

tk=MLP([ϕ3(Pk,3); ϕ7(Pk,7); ϕ11(Pk,11)]).(1)\mathbf{t}_k = MLP\left(\left[\phi_3(\mathbf{P}_{k,3});\ \phi_7(\mathbf{P}_{k,7});\ \phi_{11}(\mathbf{P}_{k,11})\right]\right). \tag*{(1)}

The final keypoint representation is the concatenation of 2D coordinate, confidence and patch embedding fk=[pk;sk;tk]\mathbf{f}_k = [\mathbf{p}_k; s_k; \mathbf{t}_k], which is further linearly embedded to a latent code Fk\mathbf{F}_k.

Graph-guided Condition Generator

A shared adjacency A∈RK×K\mathbf{A} \in\mathbb{R}^{K \times K}, initialized as I\mathbf{I}, is processed by softmax along the row dimension. Given input feature map Fin\mathbf{F}_{in}, one graph convolution provides the processed feature map Fout\mathbf{F}_{out} based on connections among keypoints Fout=softmax⁡(A)FinW\mathbf{F}_{out} = \operatorname{softmax}(\mathbf{A})\mathbf{F}_{in}\mathbf{W}.

Concatenated keypoints feature F={[Fk]}\mathbf{F} = \{[\mathbf{F}_k]\} will be processed by three graph convolution layers and flattened, linearly projected to keypoint-based condition ckp\mathbf{c}_{kp}. Meanwhile, normalized camera intrinsics κ\boldsymbol{\kappa} are mapped by a two-layer MLP (CamEnc) whose last layer is zero-initialized, then added residually to form the final condition code c\mathbf{c} for flow matching, as Eq. (2) shows.

c=ckp+CamEnc⁡(κ)(2)\mathbf{c} = \mathbf{c}_{kp} + \operatorname{CamEnc}(\boldsymbol{\kappa}) \tag*{(2)}

3D Conditioned Flow Matching

Camera-frame 3D keypoints are generated under the graph condition c\mathbf{c} via conditional flow matching. Let x03D∼N(0,IK×3)\mathbf{x}^{3D}_0 \sim\mathcal{N}(0, \mathbf{I}_{K \times3}), the interpolant xt3D\mathbf{x}^{3D}_t is generated following Eq. (3). A four-layer MLP v3D\mathbf{v}_{3D} is utilized to predict velocity from concatenation of interpolant distribution, time token and condition [xt3D;t;c][\mathbf{x}^{3D}_t; t; \mathbf{c}].

xt3D=(1−t)x03D+txcamGT(3)\mathbf{x}^{3D}_t = (1-t)\mathbf{x}^{3D}_0 + t\mathbf{x}^{GT}_{cam} \tag*{(3)}

Sampling starts from standard Gaussian noise $\mathbf{x}^{3D}_0 \sim N(0,IK×3)\mathcal{N}(0, I_{K \times3}) and applies NN Euler steps to generate final predicted 3D Keypoints X^=x13D\hat{X} = x^{3D}_1, shown as Eq. (4)

xt+Δt3D=xt3D+Δt⋅v3D(xt3D,t,c),Δs=1/N(4)x^{3D}_{t+\Delta t} = x^{3D}_t + \Delta t \cdot v_{3D}(x^{3D}_t, t, \mathbf{c}), \qquad\Delta s = 1/N \tag*{(4)}

Joint Angle Prediction

Keypoint estimation mainly depends on localization cues for heatmap peaks, while joint-angle regression benefits from cleaner subject-centric representations that preserve the robot’s structure beyond peak positions alone. Therefore, a separated adaptation module LoRAq\mathrm{LoRA}_q is placed on the last 6 ViT blocks, followed by a dedicated 2D keypoint decoder (HmDec Joint, denoted as HmDecq\mathrm{HmDec}_q), KFEq\mathrm{KFE}_q and GCGq\mathrm{GCG}_q, which have the same structure as them in the branch for 3D keypoints. Different from 3D keypoints estimation, the condition for joint angle prediction cq\mathbf{c}_q is concatenation of pooled image feature from image encoder fimg(q)\mathbf{f}^{(q)}_{\mathrm{img}} and keypoints-aware condition using Eq. (5).

cq=[fimg(q); GCGq(KFEq(HmDecq(fimg(q))))](5)\mathbf{c}_q = \left[\mathbf{f}^{(q)}_{\mathrm{img}};\ \mathrm{GCG}_q\left(\mathrm{KFE}_q\left(\mathrm{HmDec}_q\left(\mathbf{f}^{(q)}_{\mathrm{img}}\right)\right)\right)\right] \tag*{(5)}

Following RoboPEPP [4], we use an iterative residual MLP gϕg_\phi as Joint Head to perform 4-step iteration of Eq. (6), starting from qˉ(0)=0\bar{\mathbf{q}}^{(0)} = 0:

qˉ(i+1)=qˉ(i)+gϕ([cq;qˉ(i)]).(6)\bar{\mathbf{q}}^{(i+1)} = \bar{\mathbf{q}}^{(i)} + g_\phi\left([\mathbf{c}_q; \bar{\mathbf{q}}^{(i)}]\right). \tag*{(6)}

Training Losses

Training on Synthetic Data

Synthetic supervision has three training stages for 2D keypoints prediction, 3D keypoints prediction and joint angle prediction, respectively.

Stage I: 2D keypoint prediction. In stage I, only encoder-decoder architecture for 2D keypoints prediction is trained by Lhm\mathcal{L}_{\mathrm{hm}}. Ground-truth locations of 2D keypoints {ukgt,vkgt}\{u_k^{\mathrm{gt}}, v_k^{\mathrm{gt}}\} are rendered as isotropic Gaussians {Hkgt}\{H_k^{\mathrm{gt}}\}. Following [4], we further use CornerNet-style modified focal loss [6] to supervise 2D keypoints prediction.

Stage II: 3D keypoints prediction. In Stage II, we keep training Encoder and heatmap decoder with small learning rate, while modules in KFE, GCG and 3D flow matching are mainly optimized. We utilize weighted joint-wise velocity loss of Eq. (7) to train 3D flow matching.

LFM=Et,y0∑k=1Kwk∥vθ(xt,t,c)k−(x1−x0)k∥22.(7)\mathcal{L}_{\mathrm{FM}} = \mathbb{E}_{t,\mathbf{y}_0}\sum_{k=1}^{K} w_k\left\|v_{\theta}(\mathbf{x}_t,t,\mathbf{c})_k-(\mathbf{x}_1-\mathbf{x}_0)_k\right\|_2^2. \tag*{(7)}

Geometric loss on the predicted 3D keypoints X^\hat{X} consists of a weighted joint-wise 3D L1 (Eq. (8)).

L3D=∑k=1Kwk∥X^k−Xkgt∥1(8)\mathcal{L}_{3D} = \sum_{k=1}^{K} w_k\left\|\hat{X}_k-X_k^{\mathrm{gt}}\right\|_1 \tag*{(8)}

However, direct supervision by the camera-frame 3D keypoints makes training process difficult for flow matching from random initialization. Therefore, we supplement two soft loss functions to supervise the robot shape simultaneously, Bone-Length Loss (Eq. (9)) and FK alignment loss (Eq. (10)), which can be more easily decreased when the network predicts 3D keypoints with right robot shape but wrong spatial positions.

Lbone=1∣E∣∑(i,j)∈E∣∥X^i−X^j∥2−∥Xigt−Xjgt∥2∣(9)\mathcal{L}_{\mathrm{bone}} = \frac{1}{|\mathcal{E}|}\sum_{(i,j)\in\mathcal{E}}\left|\|\hat{X}_i-\hat{X}_j\|_2-\|X_i^{\mathrm{gt}}-X_j^{\mathrm{gt}}\|_2\right| \tag*{(9)}
LFK=∥X^r−FK(qgt)∥1(10)\mathcal{L}_{\mathrm{FK}} = \|\hat{X}_r-\mathrm{FK}(\mathbf{q}^{\mathrm{gt}})\|_1 \tag*{(10)}

where X^r=(Rgt)T(X^−tgt)\hat{X}_r=(R^{\mathrm{gt}})^{\mathsf{T}}(\hat{X}-t^{\mathrm{gt}}), FK(qgt)\mathrm{FK}(\mathbf{q}^{\mathrm{gt}}) denotes forward kinematics based on ground-truth joint angles and {Rgt,tgt}\{R^{\mathrm{gt}},t^{\mathrm{gt}}\} is the ground-truth camera extrinsics. The overall training objective for Stage II is formulated as:

LII=λhmLhm+λFMLFM+λ3DL3D+λboneLbone+λFKLFK(11)\mathcal{L}_{\mathrm{II}}=\lambda_{\mathrm{hm}}\mathcal{L}_{\mathrm{hm}}+\lambda_{\mathrm{FM}}\mathcal{L}_{\mathrm{FM}}+\lambda_{3D}\mathcal{L}_{3D}+\lambda_{\mathrm{bone}}\mathcal{L}_{\mathrm{bone}}+\lambda_{\mathrm{FK}}\mathcal{L}_{\mathrm{FK}} \tag*{(11)}

with (λhm,λFM,λ3D,λbone,λFK)=(0.2,1,2,1,1)(\lambda_{\mathrm{hm}},\lambda_{\mathrm{FM}},\lambda_{3D},\lambda_{\mathrm{bone}},\lambda_{\mathrm{FK}})=(0.2,1,2,1,1).

Stage III: joint angle prediction. The supervised loss of MSE in normalized joint space Eq. (12) is utilized to train the pathway for joint angles prediction, with frozen pathway for 3D keypoints prediction.

Ljoint=16∑j=16(qˉj−qˉjgt)2.(12)\mathcal{L}_{\mathrm{joint}}=\frac{1}{6}\sum_{j=1}^{6}\left(\bar{q}_j-\bar{q}^{\mathrm{gt}}_j\right)^2. \tag*{(12)}

Sim-to-Real Fine-tuning

We firstly finetune the pathway for 3D keypoints prediction except keypoints decoder on realistic data. 3D keypoints X^b\hat{X}_b of the sample bb obtained from the model trained on synthetic data are mapped back to original-image pixels by p^b=π(X^b;K)\hat{\mathbf{p}}_b=\pi(\hat{X}_b;\mathbf{K}). The reprojection residual of the sample bb is rb=1K∑k=1K∥p^b,k−pb,k∥1r_b=\frac{1}{K}\sum_{k=1}^{K}\|\hat{\mathbf{p}}_{b,k}-\mathbf{p}_{b,k}\|_1, where ub\mathbf{u}_b denotes heatmap peaks predicted by synthetic-domain model. Samples with rb<τpxr_b<\tau_{\mathrm{px}} (τpx=100\tau_{\mathrm{px}}=100) form the inlier set V\mathcal{V}, otherwise the upper p=50%p=50\% of finite residuals are kept. The Smooth-L1 reprojection loss is defined as:

Lproj=1∣V∣∑b∈VSmoothL1⁡(π(X^b;K),pb).(13)\mathcal{L}_{\mathrm{proj}}=\frac{1}{|\mathcal{V}|}\sum_{b\in\mathcal{V}}\operatorname{SmoothL1}(\pi(\hat{X}_b;\mathbf{K}),\mathbf{p}_b). \tag*{(13)}

We formulate bone length loss with adjacent supervised-link distances ℓij\ell_{ij} at q=0\mathbf{q}=0 (pose-invariant):

LboneS2R=1∣E∣∑(i,j)∈E∣∥X^i−X^j∥2−ℓij∣.(14)\mathcal{L}_{\mathrm{bone}}^{\mathrm{S2R}}=\frac{1}{|\mathcal{E}|}\sum_{(i,j)\in\mathcal{E}}\left|\|\hat{X}_i-\hat{X}_j\|_2-\ell_{ij}\right|. \tag*{(14)}

Similarly, it is difficult to directly supervise three components of 3D keypoints spatial position by LboneS2R\mathcal{L}^{S2R}_{bone} and Lproj\mathcal{L}_{proj}. Hence, we propose ray-based loss to decouple the supervision into two supervision component for the z-position and xy-position shown in Figure 4. For each predicted keypoint X^k=[xk,yk,zk]\hat{\mathbf{X}}_k = [x_k,y_k,z_k] we take the predicted depth zkz_k and lift the detached 2D peak pk\mathbf{p}_k along the corresponding camera ray dk=K−1[uk,vk,1]⊤\mathbf{d}_k = \mathbf{K}^{-1}[u_k,v_k,1]^{\top}, yielding a ray-consistent point Xkray=zkdk\mathbf{X}^{ray}_k = z_k\mathbf{d}_k. We use smooth L1 loss Lpl\mathcal{L}_{pl} (Eq. (15)) between predicted 3D keypoints and corresponding points on the same z-plane as well as the camera ray Xkray\mathbf{X}^{ray}_k. Meanwhile, we use the bone length loss Lrb\mathcal{L}_{rb} (Eq. (16)) of ray-consistent points Xiray\mathbf{X}^{ray}_i and Xjray\mathbf{X}^{ray}_j to control the position of z-plane. We finally develop ray-based loss Lray\mathcal{L}_{ray} by further filtering of predicted points which is unreasonably near to camera (zmin=0.05mz_{min}=0.05m).

Figure 4. Loss functions for our camera-to-robot pose estimation. (a) LFK\mathcal{L}_{FK} and Lbone\mathcal{L}_{bone} mainly supervise the shape of robot body while L3D\mathcal{L}_{3D} regularize the camera-frame position. (b) For self-supervised sim-to-real learning, Lproj\mathcal{L}_{proj} is used to drag the keypoints to the corresponding camera rays, while LboneS2R\mathcal{L}^{S2R}_{bone} will guarantee the body shape to avoid scale ambiguity. (c) Lpl\mathcal{L}_{pl} will supervise xy-position of 3D keypoints while Lrb\mathcal{L}_{rb} will focus on corresponding z-plane position. (d) The bone length loss on the whole chain of joints can further alleviate the ray depth ambiguity.

Lpl=SmoothL1⁡(X^,Xray)(15)\mathcal{L}_{pl}=\operatorname{SmoothL1}(\hat{\mathbf{X}},\mathbf{X}^{ray}) \tag*{(15)}
Lrb=1∣E∣∑(i,j)∈E∣∥Xiray−Xjray∥2−ℓij∣(16)\mathcal{L}_{rb}=\frac{1}{|\mathcal{E}|}\sum_{(i,j)\in\mathcal{E}}\left|\left\|\mathbf{X}^{ray}_i-\mathbf{X}^{ray}_j\right\|_2-\ell_{ij}\right| \tag*{(16)}
Lray=Lpl+Lrb+1K∑kReLU⁡(zmin−zk)(17)\mathcal{L}_{ray}=\mathcal{L}_{pl}+\mathcal{L}_{rb}+\frac{1}{K}\sum_k\operatorname{ReLU}(z_{min}-z_k) \tag*{(17)}

The final sim-to-real training loss is formulated as Eq. (18), where λboneS2R=20\lambda^{S2R}_{bone}=20, λray=40\lambda_{ray}=40

LS2Rkp=Lproj+λboneS2RLboneS2R+λrayLray(18)\mathcal{L}^{kp}_{S2R}=\mathcal{L}_{proj}+\lambda^{S2R}_{bone}\mathcal{L}^{S2R}_{bone}+\lambda_{ray}\mathcal{L}_{ray} \tag*{(18)}

Additionally, we adapt pathway for joint angle prediction following self-supervised sim-to-real finetuning following [4] using 3D keypoints X^q=FK(q)\hat{\mathbf{X}}_q=FK(q) from predicted joint angles and predicted 2D keypoints u\mathbf{u} from the frozen module as well as bone length loss calculated on X^q\hat{\mathbf{X}}_q.

Experiments & Results

Implementation Details

Following [4, 9], we train and evaluate our method on the DREAM dataset [7] firstly. Moreover, we further perform the same training and evaluation following RoboKeyGen [19] on its dataset. Results of RoboTAG [9], RoboKeyGen [19] and MonoSE(3)-Diffusion [22] are directly from published papers due to lack of public evaluation codes.

We use pretrained DINOv3 ViT-L/16/B16 as the image encoder of CtRoFlow-L (default)/CtRoFlow-B. Staged training runs 100, 300 and 300 epochs with batch size 32 for Stage I–III under the OneCycle schedule respectively. Joint-wise weights are set to [1.0, 1.0, 1.0, 1.0, 1.5, 2.0, 2.0], [1.0, 1.0, 1.0, 1.0, 1.5, 2.0, 2.0, 2.5] and [1.0, 1.0, 1.0, 1.0, 1.0, 1.2, 1.2, 1.5, 1.5, 2.0, 2.0, 2.5, 2.5, 3.0, 3.0, 3.5, 3.5] for Panda, Kuka and Baxter respectively, based on finding of harder distal joints prediction from initial experiments. Sim-to-real finetuning takes 20 epochs with a batch size of 16. All training processes and evaluation experiments are conducted on one NVIDIA H100 GPU. More detailed setting can be found in Supplementary Materials.

Camera-to-Robot Pose Estimation

We compare CtRoFlow with prior camera-to-robot pose estimation methods on the DREAM dataset, using the Area Under Curve (AUC) of Average Distance Distribution (ADD) as in previous works [4, 9]. Table 1 shows our method surpasses SOTA approaches on all splits across different robots and cameras in DREAM. We also adopt Mean Average Distance between predicted and ground-truth camera-frame joint positions for evaluation (Table 2). CtRoFlow yields the most accurate joint positions without joint priors and achieves competitive results against methods using known joint states.

MethodsSourceJABBPanda PhotoPanda DRPanda AKPanda XKPanda RSPanda ORBKuka PhotoKuka DRBaxter DRAvg
DREAM-F✓✗79.581.368.924.476.161.9////
DREAM-QICRA’20✓✗74.377.852.437.578.057.0//75.5/
DREAM-H✓✗81.182.960.564.078.869.172.173.3//
RoboPoseCVPR’24✗●79.782.970.477.674.370.473.280.232.771.3
HPEECCV’24✗✓82.082.782.276.075.275.273.975.158.875.7
RoboPEPPCVPR’25✗●84.183.075.378.580.577.576.176.234.474.0
RoboTAGCVPR’26✗✗84.382.583.175.778.377.576.675.058.876.9
CtRoFlow-B✗✗85.685.088.580.283.680.181.781.268.581.6
CtRoFlow-L✗✗87.186.690.981.685.182.187.386.974.184.6

Table 1. Comparison Results of ADD AUC on DREAM dataset. JA denotes requirement of known joint states. BB denotes provided bounding box of robot body, while ● denotes the bounding boxes are predicted. The second best results compared with CtRoFlow are underlined.

MethodsPanda PhotoPanda DRPanda AKPanda XKPanda RSPanda ORBKuka PhotoKuka DRBaxter DR
DREAM-F*785.8552.011413.1491911.42077.495319.1///
DREAM-Q*569.0359.078089.354178.227.264247.6//59.0
DREAM-H*518.8325.656.57381.623.625685.35613.211099.4/
RoboPose*21.57.924.414.023.119.433.519.215.5
RoboPose21.432.234.322.326.030.189.034.287.9
HPE18.018.418.924.024.824.829.028.045.0
RoboPEPP29.849.529.022.023.027.072.484.2157.5
CtRoFlow-B13.514.915.720.519.420.718.219.540.1
CtRoFlow-L12.913.89.118.614.918.413.014.530.6

Table 2. Comparison Results of mean ADD (mm) on DREAM dataset. * denotes methods with known joint states. The best results are in bold, while the second best results are underlined.

We compare our method with RoboPose [5], HPE [1] and RoboPEPP [4] for joint angle prediction on the Panda and Kuka splits of the DREAM dataset, using the mean average error (MAE) of all joint angles. Since the last Franka joint’s rotation aligns with its corresponding 3D keypoint axis, we only compute errors for the first six joints [4]. Quantitative results are listed in Table 3. Even though HPE and RoboPEPP rely on ground truth or preprocessed bounding boxes, CtRoFlow achieves the best joint angle accuracy on both Franka and Kuka. We further reconstruct robot 3D models from predicted joint angles and 3D keypoints using provided URDFs for qualitative evaluation. As shown in Figure 5, our method yields more accurate robot models than prior SOTA approaches.

MethodsRoboPoseHPERoboPEPPOurs
P-Photo5.74.53.23.2
P-DR4.94.53.93.4
K-Photo7.24.53.92.9
K-DR6.24.54.43.1
P-AK9.36.98.56.2
P-XK13.76.18.04.8
P-RS12.210.415.79.4
P-ORB9.07.615.66.3

Table 3. Comparison Results of mean joint angle errors (°) on DREAM dataset. P and K respectively denotes Panda and Kuka. The best results are in bold, while the second best results are underlined.

Qualitative comparison of camera-to-robot pose estimation on DREAM dataset

Figure 5. Qualitative comparison of camera-to-robot pose estimation on DREAM dataset.

Zero-shot Cross-scene Evaluation

To perform zero-shot cross-scene evaluation, we firstly evaluate the proposed CtRoFlow with existing methods on

datasets from RoboKeyGen [19], following protocol to train on simulated dataset while evaluating on two realistic subsets. Furthermore, we capture 50 samples by RealSense from diverse views with varied backgrounds. Inspired by RoboPose [5], we adopt mIoU and Dice coefficient between robot masks of input image and masks from reconstructed 3D models for zero-shot evaluation. We compare CtRoFlow with two publicly available SOTA methods, RoboPEPP [4] and HPE [1]. Quantitative results of Table 5 and Table 4 verify our method’s outstanding zero-shot generalization, and qualitative results are presented in Figure 6. Based on visualized results, we can further find that our method has stronger robustness to occlusion compared with RoboPEPP [4] and HPE [1].

MethodsRealSense AUC↑RealSense Mean↓AzureKinect AUC↑AzureKinect Mean↓
RoboPose29.011.632.010.6
RoboKeyGen67.03.560.74.9
HPE45.95.739.76.2
MonoSE(3)69.03.266.83.3
RoboPEPP26.613.427.012.8
CtRoFlow68.03.273.82.6

Table 4. Quantitative comparison on zero-shot sim-to-real evaluation on RoboKeyGen [19] dataset. Best results are in bold, while the second best results are underlined.

Qualitative comparison of zero-shot camera-to-robot pose estimation on in-house dataset and RoboKeyGen dataset

Figure 6. Qualitative comparison of zero-shot camera-to-robot pose estimation on in-house dataset and RoboKeyGen [19] dataset.

MethodsmIoUDice
HPE0.1167 ± 0.0490.2056 ± 0.077
RoboPEPP0.4456 ± 0.2110.5836 ± 0.229
Ours0.7328 ± 0.0360.8453 ± 0.024

Table 5. Quantitative comparison on zero-shot cross-scene evaluation on our in-house dataset.

Ablation Studies

We conduct ablation experiments on the Keypoints Feature Extraction (KFE) module using single patches of varying sizes (N×NN \times N Patch) instead of multi-scale patches. We also evaluate the effect of patch-wise contextual feature extraction (w/o Patch Embed) and position embedding (w/o Position Embed) in KFE. Moreover, we replace the 3D CFM pathway with PnP algorithm from RoboPEPP [4] based on our predicted 2D keypoints and joint angles (CFM→\rightarrowPnP) to validate the effect of flow matching. Meanwhile, we evaluate the performance of the framework without graph convolution (w/o Graph). Besides, we ablate core loss components including the proposed Bone Length Loss, Joint-wise Weighting wkw_k and Ray-based Loss Lray\mathcal{L}_{ray}.

Ablation results in Table 6 show larger single patches perform better on synthetic data while smaller patches favor sim-to-real fine-tuning. The full model with multi-scale patch embeddings and position embeddings achieves optimal overall performance. Graph-guided 3D flow matching outperforms the PnP-based pipeline. Based on results in Figure 7, joint-wise weighting wkw_k indeed alleviate the varied prediction difficulty for different joints with lower and more consistent performance on each joint. Furthermore, qualitative results in Figure 8 also demonstrate that even with similar projections, the model trained with bone-length loss Lbone\mathcal{L}_{bone} can achieve better 3D accuracy. Similarly, when replacing CFM with PnP, we can find that the same 2D keypoints prediction leads to totally distinct 3D results in Figure 8. Besides, to further explore the source of improved robustness, we find that learned adjacent map can effectively control the 3D position drifting of joints without destruction of robot structure (bone length change) when disturbing or even expiring (occlusion/out-of-vision) one 2D keypoint.

AblationsPandaKukaBaxterAvg
PhotoDRAKXKRSORBPhotoDRDR
Full Model87.186.690.981.685.182.187.386.974.184.6
Keypoints-centered Feature Extraction
w/ 3×33 \times3 Patch86.085.889.381.484.676.486.886.270.883.0
w/ 7×77 \times7 Patch86.686.390.279.484.679.486.986.569.983.3
w/ 11×1111 \times11 Patch87.086.789.075.577.279.787.687.274.282.7
w/o Patch Embed83.283.289.378.283.980.584.884.273.382.3
w/o Position Embed39.638.20.00.00.00.045.445.729.722.1
Graph-Conditioned Flow Matching
CFM→\rightarrowPnP83.483.288.875.684.279.067.263.554.175.4
w/o Graph84.183.888.676.085.078.983.583.172.781.7
Loss Functions
w/o wkw_k83.082.588.678.182.478.975.875.263.578.7
w/o Lbone\mathcal{L}_{bone}87.086.588.966.183.080.187.286.674.082.2
w/o LFK\mathcal{L}_{FK}86.386.190.176.483.279.787.286.773.783.3
w/o L3D\mathcal{L}_{3D}60.854.950.134.24.542.856.553.766.947.2
Sim-to-Real Finetuning
w/o LboneS2R\mathcal{L}^{S2R}_{bone}--82.570.176.562.0----
w/o Lray\mathcal{L}_{ray}--90.976.784.581.5----

Table 6. Results of ablation studies on DREAM dataset. The Best, Second Best and Third Best results are marked by colors.

Error distribution along joints w/ or w/o $w_k$

Figure 7. Error distribution along joints w/ or w/o wkw_k.

Qualitative results of ablation studies

Figure 8. Qualitative results of ablation studies.

Conclusion

In this work, we propose CtRoFlow, a flow matching-based approach for monocular camera-to-robot pose estimations. Trained by multiple geometry-aware losses, CtRoFlow with multi-scale keypoint-based feature extraction alongside graph-guided flow matching outperforms existing methods by delivering more accurate predictions of camera-frame robot poses based on in-domain, sim-to-real and zero-shot experiments. Further experiments demonstrate that the proposed method alleviates projection ambiguity and improves robustness to keypoint noise. Despite of outstanding results, our method still leaves future optimization regarding the prediction of self-rotating and distant joints, as well as inference efficiency.

References

  1. [1]Shikun Ban, Juling Fan, Xiaoxuan Ma, Wentao Zhu, Yu Qiao, and Yizhou Wang. Real-time holistic robot pose estimation with unknown states. In European Conference on Computer Vision, pages 1–17. Springer, 2024. 1, 2, 5, 6, 7arxiv.org/abs/2402.05655
  2. [2]Simon Bultmann, Raphael Memmesheimer, and Sven Behnke. External camera-based mobile robot pose estimation for collaborative perception with smart edge sensors. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pages 8194–8200. IEEE, 2023. 1arxiv.org/abs/2303.03797
  3. [3]Sergio Garrido-Jurado, Rafael Muñoz-Salinas, Francisco José Madrid-Cuevas, and Manuel Jesús Marín-Jiménez. Automatic generation and detection of highly reliable fiducial markers under occlusion. Pattern Recognition, 47(6):2280–2292, 2014. 1, 2
  4. [4]Raktim Gargam Goswami, Prashanth Krishnamurthy, Yann LeCun, and Farshad Khorrami. Robopp: Vision-based robot pose and joint angle estimation through embedding predictive pre-training. In 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 6930–6939. IEEE, 2025. 1, 2, 4, 5, 6, 7arxiv.org/abs/2411.17662
  5. [5]Yann Labbé, Justin Carpentier, Mathieu Aubry, and Josef Sivic. Single-view robot pose and joint angle estimation via render & compare. In 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 1654–1663. IEEE, 2021. 1, 2, 5, 6arxiv.org/abs/2104.09359
  6. [6]Hei Law and Jia Deng. Cornernet: Detecting objects as paired keypoints. In Proceedings of the European conference on computer vision (ECCV), pages 734–750, 2018. 4
  7. [7]Timothy E Lee, Jonathan Tremblay, Thang To, Jia Cheng, Terry Mosier, Oliver Kroemer, Dieter Fox, and Stan Birchfield. Camera-to-robot pose estimation from a single image. In 2020 IEEE international conference on robotics and automation (ICRA), pages 9426–9432. IEEE, 2020. 2, 5arxiv.org/abs/1911.09231
  8. [8]Yi Li, Gu Wang, Xiangyang Ji, Yu Xiang, and Dieter Fox. Deepim: Deep iterative matching for 6d pose estimation. In Proceedings of the European conference on computer vision (ECCV), pages 683–698, 2018. 1DOI
  9. [9]Yifan Liu, Fangneng Zhan, Wanhua Li, Haowen Sun, Katerina Fragiadaki, and Hanspeter Pfister. Robotag: End-to-end robot pose estimation via topological alignment graph. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 35146–35155, 2026. 1, 2, 5arxiv.org/abs/2511.07717
  10. [10]Ze’an Liu, Xuanyin Wang, Ziyue Hao, and Jiaqi Sun. Eevs: Monocular end-effector pose estimation-based visual servoing against uncertainties. Journal of Field Robotics, 43(2):1033–1047, 2026. 1DOI
  11. [11]Jingpei Lu, Florian Richter, and Michael C Yip. Markless camera-to-robot pose estimation via self-supervised sim-to-real transfer. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 21296–21306. IEEE, 2023. 1, 2DOI
  12. [12]Jingpei Lu, Zekai Liang, Tristin Xie, Florian Richter, Shan Lin, Sainan Liu, and Michael C Yip. Ctrnet-X: Camera-to-robot pose estimation in real-world conditions using a single camera. In 2025 IEEE International Conference on Robotics and Automation (ICRA), pages 1914–1920. IEEE, 2025. 1, 2arxiv.org/abs/2409.10441
  13. [13]Jeffrey Mahler, Matthew Matl, Vishal Satish, Michael Danielczuk, Bill DeRose, Stephen McKinley, and Ken Goldberg. Learning ambidextrous robot grasping policies. Science robotics, 4(26):eaau4984, 2019. 2DOI
  14. [14]Douglas Morrison, Peter Corke, and Jürgen Leitner. Closing the loop for robotic grasping: a real-time, generative grasp synthesis approach. In Robotics: Science and Systems, 2018. 2arxiv.org/abs/1804.05172
  15. [15]Edwin Olson. AprilTag: A robust and flexible visual fiducial system. In 2011 IEEE international conference on robotics and automation, pages 3400–3407. IEEE, 2011. 1, 2DOI
  16. [16]Dongwon Park, Yonghyeok Seo, and Se Young Chun. Real-time, highly accurate robotic grasp detection using fully convolutional neural network with rotation ensemble module. In 2020 IEEE international conference on robotics and automation (ICRA), pages 9397–9403. IEEE, 2020. 2arxiv.org/abs/1812.07762
  17. [17]Igor Pavlovic, Thiemo Wandel, Anton Obukhov, Luca Bartolomei, Andrey Davydov, Fabio Tosi, Matteo Poggi, Sabine Süsstrunk, and Dengxin Dai. Marigold v2: Revisiting diffusion transformers for monocular depth estimation. ACM Trans. Graph., 45(6), 2026. 2arxiv.org/abs/2609.08084
  18. [18]Yang Tian, JiaYao Zhang, Zekai Yin, and Hao Dong. Robot structure prior guided temporal attention for camera-to-robot pose estimation from image sequence. In 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pages 8917–8926. IEEE, 2023. 2arxiv.org/abs/2307.12106
  19. [19]Yang Tian, JiaYao Zhang, Guowei Huang, Bin Wang, Ping Wang, Jiangmiao Pang, and Hao Dong. Robokeygen: robot pose and joint angles estimation via diffusion-based 3d key-point generation. In 2024 IEEE International Conference on Robotics and Automation (ICRA), pages 5375–5381. IEEE, 2024. 1, 2, 5, 6, 7
  20. [20]Yanpu Yun, Guohao Peng, Yichen Zhou, Jun Zhang, Yiyao Liu, Kaimin Mao, and Danwei Wang. Overlapping free: Anchorless wub-assisted relative pose estimation for multi-robot systems. In 2025 IEEE International Conference on Robotics and Automation (ICRA), pages 12586–12592. IEEE, 2025. 1DOI
  21. [21]Chuye Zhang, Xiaoxiong Zhang, Linfang Zheng, Wei Pan, and Wei Zhang. Generative visual foresight meets task-agnostic pose estimation in robotic table-top manipulation. In Proceedings of The 9th Conference on Robot Learning, pages 2823–2846. PMLR, 2025. 1arxiv.org/abs/2509.00361
  22. [22]Kangjian Zhu, Haobo Jiang, Yigong Zhang, Jianjun Qian, Jian Yang, and Jin Xie. Monose (3)-diffusion: A monocular se (3) diffusion framework for robust camera-to-robot pose estimation. IEEE Robotics and Automation Letters, 2025. 1, 2, 5

Paper details

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

views · 7

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