Embodied Robot Terrain Mapping and Foothold Planning

The development of embodied robot systems, particularly humanoid platforms, has reached a stage where autonomous navigation in complex, unstructured environments is becoming a central research focus. An embodied robot must not only perceive its surroundings but also reason about its own physical capabilities and limitations when interacting with terrain. Unlike wheeled robots that operate on relatively flat grounds, humanoid robots are expected to traverse stairs, debris, and uneven surfaces while maintaining dynamic balance. This requires a tight integration of visual perception, pose estimation, mapping, and motion planning. In this work, I concentrate on two fundamental components of this pipeline: real-time 3D polygonal terrain mapping and efficient foothold planning. The proposed algorithms are designed to support a humanoid embodied robot in climbing staircases and navigating through multi-level terrains. I present a complete framework that transforms raw depth images into semantic polygonal maps, extracts feasible planar regions, and then converts the map into a neighbor-guided topology graph to accelerate sample-based foothold search. Through extensive experiments in both simulated and real environments, I demonstrate that the proposed methods achieve high accuracy, robustness, and real-time performance, enabling an embodied robot to autonomously execute stair-climbing tasks.

The core challenge for an embodied robot in complex terrain is the ability to rapidly and reliably extract usable footholds from sensory data. Traditional map representations such as occupancy grids and elevation maps often require additional post-processing to derive planar patches, which can introduce latency and reduce the effective usable area. To overcome these limitations, I adopt a polygonal map representation that directly encodes planar regions as convex polygons. This representation is naturally compatible with continuous foothold optimization and provides a compact search space for footstep planning. Another major issue is the drift in vertical direction that accumulates during visual-inertial odometry. I address this by incorporating a Kalman-filter-based height drift compensation that continuously corrects the map alignment using overlapping planar observations. This ensures that the global polygonal map remains consistent even during long stair-climbing sequences.

In the remainder of this article, I first review the relevant state-of-the-art methods for pose estimation, terrain mapping, and footstep planning. Then, I describe the proposed real-time polygonal mapping algorithm with GPU acceleration, followed by the neighbor-guided topology map and the improved RRT* foothold planner. Experimental results are presented to validate the performance of each module. Finally, I conclude with a discussion of the contributions and future directions.

System Overview of the Embodied Robot

The overall sensing and planning framework adopted in this work is illustrated conceptually by the modules described below. An embodied robot typically carries an RGB-D camera for terrain perception, a visual-inertial sensor for pose estimation, and a locomotion controller that executes the planned footsteps. The perception module receives synchronized depth images and pose estimates. The depth images are processed by a GPU-accelerated anisotropic diffusion filter to reduce sensor noise while preserving edge sharpness. Then, surface normals are computed from the filtered depth image using a Sobel operator combined with the camera intrinsic matrix. Plane candidates are extracted through edge detection and convex hull simplification, and each candidate polygon is refined by a GPU-accelerated RANSAC plane fitting step. The extracted polygons are transformed into the global frame using the visual-inertial odometry output. A map manager continuously merges the new polygons with the existing global map and applies height drift compensation. The resulting polygonal map is passed to a foothold planner that first constructs a neighbor-guided topology graph based on the robot’s kinematic reachability. The planner then runs an informed RRT* algorithm to search for a feasible sequence of footsteps. Finally, the footstep sequence is executed by a whole-body controller.

Unlike conventional mobile robots, an embodied robot must reason about the exact contact position of each foot. This requires the planner to verify that the entire sole area is in contact with a flat polygon, that the step is within the kinematic limits, and that the swing foot does not collide with nearby obstacles. The proposed mapping and planning pipeline is specifically tailored to these requirements.

Pose Estimation for an Embodied Robot

Accurate self-localization is the foundation of terrain mapping and navigation. Three main categories of pose estimation are commonly used in legged robots: leg odometry, visual odometry, and LiDAR odometry. Each has its own strengths and weaknesses.

Leg Odometry

Leg odometry relies on the kinematic model of the robot and the joint encoders to compute the pose of the base link with respect to the supporting foot. Given the joint angles, the homogeneous transformation from the support foot to the base can be obtained by forward kinematics. Suppose that the local coordinate frame of link \(j\) with respect to its parent link is described by a joint axis vector \(\mathbf{a}_j\) and a relative position vector \(\mathbf{b}_j\). The transformation matrix is given by

$$
\mathbf{T}_j = \begin{bmatrix} e^{\hat{\mathbf{a}}_j q_j} & \mathbf{b}_j \\ \mathbf{0}^T & 1 \end{bmatrix},
$$

where \(q_j\) is the joint angle and \(\hat{\mathbf{a}}_j\) is the skew-symmetric matrix of \(\mathbf{a}_j\). The overall base pose is then computed by chaining the transformations from the support foot. However, leg odometry suffers from drift due to foot slippage, compliance, and calibration errors. Therefore, it is often fused with other sensors.

Visual Odometry

Visual odometry estimates the camera motion by tracking features across consecutive images. In this work, I use a feature-based approach. First, ORB keypoints are extracted from the images and matched between frames. Then, the relative pose is determined by minimizing the reprojection error. Given a 3D point \(\mathbf{P}\) in the camera coordinate system and its observed pixel \(\mathbf{p} = [u, v]^T\), the projection equation is

$$
\begin{bmatrix} u \\ v \\ 1 \end{bmatrix} = \frac{1}{Z} \mathbf{K} \begin{bmatrix} X \\ Y \\ Z \end{bmatrix},
$$

where \(\mathbf{K}\) is the camera intrinsic matrix. For two frames, the pose \(\mathbf{T} \in SE(3)\) can be estimated by minimizing the cost function

$$
\mathbf{T}^* = \arg\min_{\mathbf{T}} \sum_{i} \left\| \mathbf{p}_2^i – \pi(\mathbf{T} \mathbf{P}_1^i) \right\|^2,
$$

where \(\pi(\cdot)\) denotes the projection function. Visual odometry provides metric localization in well-textured environments, but it can fail under motion blur or poor lighting. In this work, a VINS-Fusion module is used to fuse visual and inertial data, improving robustness during dynamic walking.

LiDAR Odometry

LiDAR odometry uses point clouds from laser scanners to estimate motion. The LOAM family of algorithms extracts edge and planar features from each point cloud and registers them with the previous frames. The residual error is defined by point-to-line and point-to-plane distances. For a point \(\mathbf{p}\), the roughness \(c\) is calculated from neighboring points in the same scan line. Points with high curvature are treated as edge features, while points with low curvature are treated as planar features. The relative transformation is found by solving a nonlinear least-squares problem. LiDAR odometry is accurate and robust to lighting conditions, but the sensors are typically heavier and more expensive. For an embodied robot operating indoors, depth-camera-based visual-inertial odometry provides a good compromise between accuracy, size, and cost.

Point Cloud Filtering and Plane Extraction

To generate reliable polygonal maps, the raw depth point cloud must be preprocessed. Depth cameras produce dense point clouds with structured pixel organization, which allows the use of image-filtering techniques. In this work, I use an anisotropic diffusion filter that smooths homogeneous regions while preserving sharp discontinuities at edges. The diffusion process is described by the partial differential equation

$$
\frac{\partial I}{\partial t} = \nabla \cdot \left( c(\|\nabla I\|) \, \nabla I \right),
$$

where \(I\) is the depth image, \(\nabla I\) is the gradient, and the diffusion coefficient \(c\) is defined as

$$
c(\|\nabla I\|) = \exp\left(-\frac{\|\nabla I\|^2}{k^2}\right).
$$

Here, \(k\) controls the sensitivity to edge magnitude. With this filter, the noise in flat regions is effectively reduced, while the boundary between different planes remains sharp. The discretized update is

$$
I_{p,t+1} = I_{p,t} + \gamma \sum_{q \in \mathcal{N}_p} c(I_{p,t}, I_{q,t}) \, (I_{q,t} – I_{p,t}),
$$

which is executed on the GPU with an explicit scheme. In this work, the parameters are set to \(k = 134\), \(\gamma = 0.2\), and \(60\) iterations.

After filtering, I compute the surface normal for every pixel. Given a depth value \(Z\) at pixel \((x,y)\), the 3D point \(\mathbf{P} = (X,Y,Z)\) is recovered from the camera model

$$
X = \frac{(u – c_x) Z}{f_x}, \quad Y = \frac{(v – c_y) Z}{f_y}.
$$

Using Sobel operators to compute the horizontal gradient \(G_x\) and vertical gradient \(G_y\) of the depth image, the normal vector is calculated as

$$
\mathbf{n} = -\frac{\mathbf{K}^{-1} [G_x, G_y, -1]^T}{\|\mathbf{K}^{-1} [G_x, G_y, -1]^T\|}.
$$

where \(\mathbf{K}\) is the camera intrinsic matrix. This step is also fully parallelized on the GPU. Figure below illustrates the effect of filtering on the normal map.

Plane extraction is then performed in several stages. First, I apply a Canny edge detector to the normal map. Edge pixels indicate boundaries between different planes. Through depth-first search, the connected components of the edge map are extracted as contours. Each contour is simplified to a convex polygon using the convex hull algorithm. For each convex polygon \(P\), all pixels inside the polygon are used to fit a plane model. The plane equation is

$$
a x + b y + c z + d = 0.
$$

To robustly fit the plane, I use a RANSAC algorithm that randomly samples three points from the inlier set, computes the plane parameters, and counts the number of inliers. The distance from a point \(\mathbf{p}\) to the plane is defined as

$$
\rho(\mathbf{p},\pi) = \frac{|a x_p + b y_p + c z_p + d|}{\sqrt{a^2 + b^2 + c^2}}.
$$

The RANSAC iterations are implemented on the GPU to accelerate the inner-point evaluation. In practice, each polygon is fitted with a maximum of \(N_{\text{iter}}\) iterations, and the best model is selected. The final polygon is represented by its 3D vertices and the normal vector.

Incremental Polygonal Map Management

Because a single depth frame only observes a limited part of the environment, the robot must incrementally merge the extracted polygons into a global map. The map manager receives the pose estimate from the visual-inertial odometer, transforms each local polygon into the world frame, and stores it in the global map. To avoid redundant storage and to improve the compactness, adjacent polygons that are coplanar and share a common boundary are merged into a larger polygon. The merging procedure first projects the polygons onto the XY plane and detects overlapping or adjacent regions. For two polygons \(P_i\) and \(P_j\), the height difference in the overlapping region is computed as

$$
\Delta h_{ij} = \left| \bar{z}_i – \bar{z}_j \right|,
$$

where \(\bar{z}_i\) and \(\bar{z}_j\) are the average Z-values of the two polygons over the overlap. If \(\Delta h_{ij}\) is smaller than a threshold and the angle between their normals is below a threshold, the polygons are merged by computing the convex hull of the union of their vertices.

Height Drift Compensation

In an incremental mapping system, vertical drift is a major issue. Even with visual-inertial odometry, the estimated height can slowly drift due to IMU bias and scale drift. This directly affects the accuracy of the global map and the stability of the subsequent foothold planning. I therefore design a Kalman filter to estimate and compensate for the height drift \(x_k\). At each new frame, the current height drift estimate is used to pre-correct the newly extracted polygons:

$$
h_{\text{new}} = h_{\text{raw}} – \hat{x}_{k-1}.
$$

Then, the system pairs the corrected polygons with existing map polygons based on spatial overlap and normal alignment. The height difference at the matched overlapping region is treated as a measurement \(z_k\). The Kalman filter equations are:

$$
\hat{x}_{k|k-1} = \hat{x}_{k-1|k-1},
$$
$$
P_{k|k-1} = P_{k-1|k-1} + \sigma_p^2,
$$
$$
K_k = \frac{P_{k|k-1}}{P_{k|k-1} + \sigma_m^2},
$$
$$
\hat{x}_{k|k} = \hat{x}_{k|k-1} + K_k (z_k – \hat{x}_{k|k-1}),
$$
$$
P_{k|k} = (1 – K_k) P_{k|k-1}.
$$

Here, \(\sigma_p^2\) is the process noise covariance and \(\sigma_m^2\) is the measurement noise covariance. After the update, all polygons of the current frame are corrected by adding the estimated drift:

$$
h_{\text{final}} = h_{\text{new}} + \hat{x}_{k|k}.
$$

This recursive correction ensures that the global map remains consistent along the vertical direction over long trajectories.

Foothold Planning via Neighbor-Guided Topology Map

Once the global polygonal map is constructed, the foothold planner must find a sequence of footstep positions that enables the embodied robot to reach a desired goal region. Since the search space is continuous and the robot’s feet have a finite footprint, the planner must verify that each footstep lies entirely inside a flat polygon and satisfies kinematic constraints. I propose to use an informed RRT* algorithm that leverages a topological graph derived from the polygonal map. The topology graph guides the random sampling process and significantly reduces the search time in complex stair environments.

Construction of the Neighbor-Guided Topology

The first step is to convert the polygonal map \( \mathcal{M}_p \) into a topology graph \( \mathcal{M}_g \). Each polygon is considered as a node of the graph. For every pair of polygons \(P_i\) and \(P_j\), I compute the shortest distance between their projections onto the XY plane. If the projections overlap, the distance is zero. The height difference at the closest point is also computed. The two polygons are connected by an edge if they satisfy the kinematic limits of the robot:

$$
d_{xy}(P_i, P_j) \le d_{\max}, \quad \Delta h_{ij} \le h_{\max},
$$

where \(d_{\max}\) is the maximum step length and \(h_{\max}\) is the maximum step height. These thresholds are conservative values that ensure the robot can physically transition between the two polygons. For each connected pair, I also generate a set of guide boundary points along the adjacent edges of the projections. These points serve as intermediate attractors for the randomized search.

Footstep Primitive Library

To efficiently generate candidate footsteps, I define a step primitive library \(\mathcal{U}\). Each primitive is parameterized by a forward displacement \(L\), lateral displacement \(W\), rotation angle \(\theta\), and vertical change \(H\). The set \(\mathcal{U}\) is sampled within the robot’s reachable range:

$$
L \in [L_{\min}, L_{\max}], \quad W \in [W_{\min}, W_{\max}], \quad \theta \in [\theta_{\min}, \theta_{\max}], \quad H \in [H_{\min}, H_{\max}].
$$

When expanding a node, a primitive is randomly chosen from the library, and the candidate new foot position is computed by transforming the current support foot pose accordingly.

Feasibility Checks

A candidate foot placement \(f_j = (x_j, y_j, z_j, \theta_j)\) is considered feasible if it satisfies two conditions. First, the foot rectangle, with length \(l_f\) and width \(w_f\), must lie completely on a single planar polygon. The center height \(z_j\) is set to the height of that polygon, and the four corners of the foot rectangle are checked for inclusion in the polygon. Second, the step from the previous foot \(f_{j-1}\) must satisfy the kinematic limits. In the local frame of the previous foot, the following inequalities must hold:

$$
\begin{aligned}
\Delta x^{-} &\le \mathbf{R}_{j-1}^{-1} (x_j – x_{j-1}) \le \Delta x^{+}, \\
\Delta y^{-} &\le y_j – y_{j-1} \le \Delta y^{+}, \\
\Delta z^{-} &\le z_j – z_{j-1} \le \Delta z^{+}, \\
\Delta \theta^{-} &\le \theta_j – \theta_{j-1} \le \Delta \theta^{+},
\end{aligned}
$$

where \(\mathbf{R}_{j-1}\) is the rotation matrix of the previous pose in the plane. If either condition fails, the candidate is rejected.

Tree Node and Edge Definitions

The RRT* tree node \(v\) represents a pair of support and swing feet: \(v = (f_{\text{sup}}, f_{\text{swg}})\). The type (left or right foot) alternates along the tree. The cost of a node is defined recursively as

$$
c(v) = c(\text{parent}) + l(\text{parent}, v),
$$

where \(l(\cdot,\cdot)\) is the edge cost. I use two types of cost functions. The first minimizes the number of steps:

$$
l_1(v_1, v_2) = 1.
$$

The second penalizes proximity to the edge of the supporting polygon:

$$
l_2(v_1, v_2) = -\frac{1}{\sigma(f_{\text{sup}})},
$$

where

$$
\sigma(f_{\text{sup}}) = \sqrt{d_1^2 + d_2^2 + d_3^2 + d_4^2},
$$

and \(d_1\) to \(d_4\) are the distances from the four corners of the foot rectangle to the polygon boundary. This cost encourages footsteps to be placed in the center of safe regions, away from the edges.

Guided RRT* Algorithm

The proposed guided RRT* algorithm is outlined as follows. First, the topology graph \( \mathcal{M}_g \) is computed from the polygonal map. All possible sequences of polygons from the start polygon to the goal polygon are found by a depth-first search. During the RRT* search, a mixed sampling strategy is adopted:

$$
\mathbf{p}_{\text{rand}} = \alpha \mathbf{p}_{\text{cand}} + (1-\alpha) \mathbf{p}_{\text{uni}},
$$

where \(\mathbf{p}_{\text{uni}}\) is a uniform sample in the XY plane, and \(\mathbf{p}_{\text{cand}}\) is a candidate point randomly selected from the guide boundaries of the currently active topology edge. The active edge is determined based on the nearest tree tip to the goal along a topology route. The factor \(\alpha\) balances exploration and exploitation. A larger \(\alpha\) makes the search more focused on the topology-recommended regions, accelerating the first solution.

At each iteration, I first sample \(\mathbf{p}_{\text{rand}}\), then find the nearest tree vertex \(v_{\text{near}}\) by a combined distance metric that takes into account the mid-hip position and orientation difference. A footstep primitive is randomly drawn from the library, and the candidate foot position is computed. If the candidate passes the feasibility checks, it is added to a new candidate vertex \(v_{\text{cand}}\). Then, the planner considers all vertices in a neighborhood of \(v_{\text{cand}}\) and selects the parent that minimizes the cost:

$$
c(v_{\text{cand}}) = \min_{v’ \in N(v_{\text{cand}})} \left[ c(v’) + l(v’, v_{\text{cand}}) \right],
$$

subject to the feasibility checks. Finally, a rewiring procedure updates the tree by considering \(v_{\text{cand}}\) as a potential parent for all neighbors, reducing their cost if possible. The search continues until the allocated time budget \(\Delta T\) is exhausted. At that point, among all vertices whose support foot lies inside the goal region, the one with the minimum cost is selected, and the footstep sequence is extracted by tracing back to the root.

Experiments and Results

Single-Frame Plane Extraction Performance

I tested the plane extraction algorithm on a standard stair model. The depth image resolution was 640×480. Three experimental runs were conducted. The results are summarized in the following table. The average angle between the extracted plane normals and the gravity direction \(\alpha\) was \(2.2^\circ\) with a standard deviation of \(0.44^\circ\). The average step height error was \(2.1\) mm with a standard deviation of \(1.75\) mm, and the intersection-over-union (IOU) ratio between the extracted effective area and the ground-truth area was \(0.93\).

Run \(\alpha\) (deg) \(\sigma_\alpha\) (deg) IOU \(\Delta d\) (mm) \(\sigma_{\Delta d}\) (mm)
1 2.22 0.459 0.936 3.2 1.51
2 2.15 0.410 0.922 1.8 1.72
3 2.22 0.453 0.940 1.3 2.03

I compared these results with a state-of-the-art method, PPRCoRT, which used merged results from three frames. The comparison is shown below. My method achieves a significantly smaller height error, a slightly better normal standard deviation, and a higher IOU. Moreover, the processing time for a single frame was only about 7.5 ms on average, whereas PPRCoRT reported about 24 ms for three frames at the same resolution.

Method \(\Delta d\) (mm) \(\sigma_{\Delta d}\) (mm) \(\sigma_\alpha\) (deg) IOU Processing time (ms)
PPRCoRT 20.2 5.33 0.48 0.88 24
Ours 2.1 1.75 0.44 0.93 7.5

Real-Time Performance

I measured the processing time of the full plane extraction pipeline at two resolutions: 320×240 and 640×480. The test sequence simulated multiple polygons per frame by repeatedly running the RANSAC fitting on each extracted polygon. Even though the number of RANSAC iterations was set to 10, the total time remained below 15 ms for both resolutions in most frames. The anisotropic diffusion filter and the RANSAC inner-loop were both GPU-accelerated. The slight linear increase in processing time with the number of polygons per frame is negligible in practice because the number of valid planar regions in a typical scene is small. This demonstrates that the proposed pipeline meets the real-time requirement of online embodied robot operation.

Global Mapping Experiments

I performed global mapping experiments in two types of stair environments: a straight flight of stairs and a spiral staircase. The sensor rig consisted of a RealSense D435i used for visual-inertial odometry and a RealSense L515 depth camera facing downward for terrain mapping. The proposed method was compared with an existing GPU-accelerated elevation mapping library (EM_cupy). In the straight stair scenario, the polygonal map produced by my method had an average normal angle error of \(4.74^\circ\), a standard deviation of \(1.02^\circ\), an IOU of \(0.96\), and a mean step height error of \(5.3\) mm. The EM_cupy method, using a 1 cm resolution grid, gave an average normal error of \(8.17^\circ\), a standard deviation of \(4.39^\circ\), an IOU of \(0.61\), and a height error of \(5.7\) mm. The comparison is summarized below.

Method Map type \(\alpha\) (deg) \(\sigma_\alpha\) (deg) IOU \(\Delta d\) (mm)
EM_cupy Grid (1 cm) 8.17 4.39 0.61 5.7
Ours Polygonal 4.74 1.02 0.96 5.3

In addition, the proposed method naturally filters out non-planar regions such as the robot’s own limbs that enter the camera field of view. The elevation map method, on the other hand, suffers from artificial bumps because its ray-casting update cannot distinguish the robot’s body from the environment. The polygonal representation is therefore more robust to self-occlusion and dynamic obstacles, which is a crucial advantage for an embodied robot that moves its limbs during stair climbing.

Foothold Planning in Stair Environments

To evaluate the guided RRT* algorithm, I created two simulated environments. The first environment is a staircase with 10 steps. The start and goal are located at two platforms. The second environment is a bidirectional staircase with two alternative routes, each having 8 steps. For both scenarios, I tested two cost functions: minimizing step count and minimizing the edge-distance penalty. I varied the sampling ratio \(\alpha\) and the time budget \(\Delta T\). For each configuration, I ran 100 successful planning trials and recorded the average cost, minimum cost, maximum cost, number of iterations, tree size, and the average time to first feasible solution \(T_{\min}\).

The results for scenario 1 (staircase) with the step-count cost are shown in the following table.

\(\alpha\) \(\Delta T\) (s) Avg cost Min cost Max cost Iterations Tree size \(T_{\min}\) (s)
0 1 32.7 31.0 35.0 8332 1984 0.672
0 5 29.0 29.0 29.0 29341 7156 0.683
0 10 29.0 29.0 29.0 50243 11963 0.671
0.3 1 32.5 30.0 35.0 7519 1790 0.512
0.3 5 29.0 29.0 29.0 27335 6462 0.473
0.3 10 29.0 29.0 29.0 48340 11790 0.482
0.7 1 31.7 29.0 34.0 7703 1842 0.178
0.7 5 29.0 29.0 29.0 28988 7247 0.177
0.7 10 29.0 29.0 29.0 48546 11033 0.175

For the cost function that minimizes the edge-distance penalty, the results are shown below. Since the edge penalty is negative, the cost becomes more negative as the footsteps move away from polygon edges.

\(\alpha\) \(\Delta T\) (s) Avg cost Min cost Max cost Iterations Tree size \(T_{\min}\) (s)
0 1 -32.9 -35.7 -30.5 7964 1992 0.655
0 5 -38.1 -39.5 -37.2 28548 6344 0.691
0 10 -41.4 -42.8 -40.1 47908 10161 0.682
0.3 1 -33.7 -34.8 -32.6 7441 1730 0.490
0.3 5 -39.6 -40.1 -36.8 29472 6807 0.471
0.3 10 -41.8 -42.6 -41.3 48571 11564 0.473
0.7 1 -33.5 -37.1 -31.8 8173 1891 0.182
0.7 5 -37.3 -39.7 -35.2 29385 6852 0.173
0.7 10 -41.2 -42.9 -39.7 49756 10586 0.176

In the first scenario, even with \(\alpha=0\) (i.e., no topological guidance), the planner was mostly able to find a feasible solution within a 1-second budget, although the success rate was lower. With \(\alpha=0.3\) or \(0.7\), the success rate reached 100% within the same budget, and the time to the first solution was significantly reduced, especially for \(\alpha=0.7\). Increasing the time budget from 1s to 5s or 10s generally improved the final cost, but the cost after 5 seconds was already close to the optimum.

For scenario 2 (the bidirectional staircase), I observed that without topology guidance (i.e., \(\alpha=0\)), the RRT* algorithm often failed to find a valid path even with a 5-second time budget, due to the narrow last step that required precise lateral movements. With \(\alpha=0.3\) or \(0.7\), the planner always succeeded within 1 second. The average time to first solution was approximately 0.48s for \(\alpha=0.3\) and 0.19s for \(\alpha=0.7\). The final path cost after 10 seconds converged to the optimal value. These results clearly demonstrate that the neighbor-guided topology map effectively eliminates the search blindness in complex stair environments and enables an embodied robot to react in real time.

Motion Planning Simulation

I also integrated the proposed mapping and planning algorithm with an open-source gait generator and a whole-body admittance controller in the Choreonoid simulator. The robot was required to climb seven stairs using the footstep sequence produced by the guided RRT* planner. The global polygonal map was generated from the stair environment. The planned footsteps were then used as inputs to the gait generator, which produced center-of-mass and angular momentum trajectories. The whole-body controller tracked these reference trajectories, and the simulation successfully demonstrated stable stair climbing. This experiment validated that the entire pipeline—from depth perception to footstep planning and execution—is practically usable for an embodied robot.

Real-Robot Validation

Finally, I performed a real-robot experiment on a custom-built stair model. The stair had three steps, each of height 0.15 m and length 1 m, with the first three steps having a width of 0.3 m and the last step a width of 0.6 m. The terrain mapping was conducted by hand-holding the sensor rig while moving around the stairs. The mapping results showed an average normal angle error of \(4.35^\circ\), a standard deviation of \(0.71^\circ\), a mean height error of 2.6 mm, and an IOU of 0.94. These values are consistent with the indoor stair mapping experiments and confirm the robustness of the algorithm on real sensor data.

During the real-robot test, the robot was attached to a gurney with safety ropes, which limited its mobility. The foothold planner was set to plan a path from the starting ground to the third step. The footprint was assumed to be 0.25 m long and 0.08 m wide. The planner successfully generated a sequence of four steps to overcome the staircase. After integrating the footsteps with the gait trajectory generator and the whole-body model predictive control (MPC) controller, the robot climbed the stairs in a stable manner. The snapshots from the experiment (not shown here) demonstrate that the proposed methodology closes the “perception–planning–control” loop for a physical embodied robot.

Discussion and Future Work

I have shown that combining GPU-accelerated depth filtering with RANSAC-based plane extraction yields a high-quality polygonal map in real time. The map representation is compact, geometrically accurate, and directly suitable for footstep planning. The introduction of a neighbor-guided topology map effectively tells the planner where to sample, greatly reducing the computational burden. The mixed sampling strategy with factor \(\alpha\) provides a tunable balance between exploration and exploitation. For an embodied robot that must react to changing terrain, this control over search behavior is essential.

Nevertheless, there are several limitations to the current approach. The mapping pipeline assumes that all terrain is composed of planar surfaces. In the presence of curved or highly irregular geometry, the plane-fitting step may degrade, and the global consistency might be lost. Future work could incorporate curved patch fitting or a hybrid representation that combines polygonal patches with a dense elevation map. The current convex-hull simplification, while efficient, may over-approximate the actual free space in concave scenarios. I plan to investigate methods that preserve concave boundary information while still respecting the foot stability constraints.

Another direction for future research is the integration of semantic segmentation. By labeling point clouds with semantic classes (e.g., stair, ground, obstacle), an embodied robot can better reason about the traversability of different surfaces and adapt the planning strategy accordingly. Deep learning techniques could be used to predict terrain properties such as friction or deformability, further enhancing safety. Finally, the foothold planner could benefit from a multi-query setting where the topology graph is reused across different goal positions, enabling lifetime replanning for navigation tasks.

Conclusion

In this work, I presented a comprehensive approach for an embodied robot to build a real-time 3D polygonal map of complex stair terrains and to generate feasible foothold sequences using a guided RRT* planner. The mapping algorithm leverages GPU acceleration for anisotropic diffusion and RANSAC plane fitting, achieving a processing rate above 30 Hz while maintaining a high effective area overlap ratio. The use of a Kalman filter for vertical drift compensation ensures map consistency over extended trajectories. The resulting polygonal maps are compact and robust to dynamic occlusions. The foothold planner converts the polygonal map into a neighbor-guided topology graph, which provides informative sampling regions for the randomized search. I demonstrated that the guided RRT* significantly shortens the time to find a first solution in both straight and bidirectional stair environments, and it improves the success rate under tight time budgets. Experimental validation in simulation and on a real humanoid robot confirmed the practical feasibility of the whole pipeline. I believe that these contributions provide a solid foundation for future autonomous navigation of embodied robots in complex, unknown environments.

Scroll to Top