arXiv:2610.33916cs.ROOct 2026

Manuscript Offprint

arXiv:2610.33916

Real-Time Human Trajectory Prediction from RGB-D for Mobile Robots Using Bi-Mamba

Basheer Al-Tawil, Magnus Jung, Ayoub Al-Hamadi

1 st^{st} Basheer Al-Tawil

Neuro Information Technology

Otto von Guericke University

39106 Magdeburg, Germany

basheer.al-tawil@ovgu.de

2 nd^{nd} Magnus Jung

Neuro Information Technology

Otto von Guericke University

39106 Magdeburg, Germany

magnus.jung@ovgu.de

3 rd^{rd} Ayoub Al-Hamadi

Neuro Information Technology

Otto von Guericke University

39106 Magdeburg, Germany

ayoub.al-hamadi@ovgu.de

Abstract—Predicting the short-term future trajectory of a person from RGB-D cameras is a key capability for mobile robots navigating in dynamic and human populated environment. The key challenge to deploying learned predictors on real robots is the train-deploy pipeline gap. Training data are often prepared with an idealized, smoothed ground truth, whereas at inference, the model is fed noisy estimates from pose detectors and depth sensors. The model is therefore evaluated on an input distribution it never encountered during training. Most existing models rely on recurrent neural networks (RNNs) or transformers, which either struggle to capture short-term temporal dependencies or suffer from computational cost. We present TrajMamba, a lightweight, bidirectional state space model for short-term human trajectory prediction using an RGB-D camera. The model uses a single shared processing path for both training and deployment, aligning human pose extraction, depth back projection, and smoothing processes. It encodes a short window of persons' hip center velocities with stacked bidirectional Mamba blocks and decodes future velocities with a GRU head. On the ETH/UCY benchmark, TrajMamba reaches an average ADE of 0.29 m FDE of 0.51 m. With 262K parameters, it runs in real time on modest hardware and is deployed on a TIAGo robot with an onboard NVIDIA Jetson Orin.

Index Terms—Human Trajectory Prediction, Selective State Space Models, Mamba, MediaPipe, Mobile Robotics, Human Robot Interaction, Navigation

I. INTRODUCTION

Trajectory estimation of a person over short, rapid time horizons is essential for collision-free robot navigation in dynamic environments [2], [3]. For people and robots to interact safely in shared spaces, a robot's predicted trajectories for moving people must be consistent with their social behavior. Over the past decade, many data-driven systems have been presented for this task, ranging from early recurrent neural networks (RNNs) [2], to attention-based networks [4], [5] and transformers [6], [7], and more recently to diffusion-based generative models [8]. Most of these methods are evaluated on trajectory-based benchmarks derived from overhead video observations of pedestrian motion, such as ETH/UCY, or that assume clean, pre-computed skeletons [9]. This setting does not match how a mobile robot actually sees the world. On a robot, the input comes from a forward-facing RGB-D camera, and the person's position must be estimated on the fly from noisy pose and depth data [10]. Figure 1 illustrates the target problem addressed in this work.

This mismatch creates a practical but often overlooked problem. During training, the model usually learns from the clean, smoothed ground truth provided with a dataset. At deployment, it is instead fed live estimates from a pose detector and a depth sensor, which carry jitter, noise, and occasional gaps. The model is therefore asked to work on a kind of input it never saw while learning. We call this the train-deploy pipeline gap. Our solution is to remove this gap by design. We use the same processing pipeline, MediaPipe pose extraction, depth back-projection, and Kalman/EMA filtering in both training and inference. On top of this, we build TrajMamba, a small and fast bidirectional state space model that predicts a person's short-term trajectory and runs in real time on a robot. The complete system is released as an open-source ROS2 package, together with the training pipeline and trained checkpoints. 1^{1}

Our main contributions are:

• TrajMamba, a lightweight bidirectional Mamba-GRU model for real-time trajectory prediction ( ≈\approx262K parameters).

  • A pipeline-consistent strategy that shares the same pose, depth, and filtering code across training and inference, with normalization stored in the checkpoint, reducing the train-deploy gap.

• Evaluation on ETH/UCY and real-time deployment on a TIAGo PAL robot [1], NVIDIA Jetson Orin.

References (27)