Release Notes

This page summarizes what has changed in pal_mjlab between releases, in plain language, with a link back to the pull request (PR) that introduced each change. If you are new to the project, this is the fastest way to catch up on what has moved since the last tagged release.

Unreleased — since v1.0.0

The changes below have landed on main since the v1.0.0 tag (2026-03-06) and are not yet part of a tagged release.

New Features & Tasks

  • Reworked collisions meshes in kangaroo grippers. kangaroo_grippers.xml now has collisions meshes in the grippers and the wrist. Collisions between consecutive bodies are properly excluded. Additionally, the forearm collisions were slightly modified to match better the arm. (#131)

  • Added arm tip links in kangaroo grippers. In kangaroo_grippers.xml, new body sitting at the end effector’s position to ease body tracking in relevant tasks, like tracking or WBC. Names of the body match exactly their equivalent in kangaroo.xml. (#131)

  • New stairs velocity task for the Kangaroo. Adds Mjlab-Velocity-Stairs-Pal-Kangaroo on top of the rough task, with a terrain mix focused on stairs of different tread widths and risers up to 20 cm. It includes a new BoxStraightStairsTerrainCfg sub-terrain, a straight staircase with open sides where stepping off sideways means falling to the floor; robots spawn facing the flight through the new reset_root_state_terrain_yaw event. Since the blind policy feels the risers with its shins, shin contacts are now penalized instead of ending the episode. The swing height target is raised to 0.25 m, more envs get forward-only commands and the heading command is disabled. (#124)

  • Denser, square height scan and wider lateral commands in the Kangaroo rough velocity task. The critic-only height scan now covers a 1.0x1.0 m area at 5 cm resolution (previously 1.2x0.6 m at 10 cm), giving the critic a finer and more symmetric view of the terrain around the robot. The lateral velocity command range is widened from ±0.4 m/s to ±0.5 m/s, matching the forward range. These changes also apply to the lower-body rough task, which builds on the same config. (#123)

  • Kangaroo actuator gains are now derived from the armature for every joint, and the natural frequency is lowered from 5 Hz to 3.5 Hz. Leg stiffness was previously hand-picked per joint; it is now computed from the identified armature and the natural frequency, the same way as the arm and torso actuators. The arm/torso armatures use the latest motor inertias from the datasheet without any scaling factor, and the leg length joint uses an armature calculated along with armature domain randomization. As a result, the default shipped gains are different compared to the previously trained policies. (#121)

  • Update identified parameters, add domain randomization for joint armature, friction loss and viscous damping, and lower natural frequency from 10Hz to 5 Hz Training with identified parameters and lower natural frequency have resulted in policies with smoother and more stable effort command profiles. Policies trained with these changes have shown consistent improvement to previous ones. (#119)

  • Removing custom height targets and weights for foot_swing_height and foot_clearance rewards in Kangaroo rough velocity task. Removing values optimized for rough terrains consisting mainly of structured stairs (where high clearance must be encouraged). Experimentally, it has been proven that they slow down the training process while not improving any of the metrics. (#111)

  • New rough-terrain velocity tasks for the Kangaroo (full and lower body). Adds Mjlab-Velocity-Rough-Pal-Kangaroo and Mjlab-Velocity-Rough-Pal-Kangaroo-Lower-Body on top of the baseline config: a PAL terrain generator (flat, pebbles, random boxes and inverted pyramid stairs at 0.3/0.4/0.5 m step widths), a critic-only 1.2x0.6 m height scan. The terrain curriculum is disabled in play mode. (#109)

  • Lower-body-specific noise and reward-weight tuning. The IMU observation noise (imu_projected_gravity, base_lin_acc) and the upright reward weight are now overridden specifically for the lower-body flat env config, tuned to match the microstrain IMU used on that robot, instead of changing the shared baseline config’s values. (#101)

  • Actuator parameters are now easy to tune. Motor gains, armature, friction and effort limits for each Kangaroo actuator were previously hard-coded inline; they are now grouped into named parameter blocks in kangaroo_constants.py so you can change one actuator’s behaviour without hunting through the file. (#108)

  • Foot collision avoidance capsules added to the 4-DoF Kangaroo model. Extra collision capsules around the feet stop the legs/feet from interpenetrating during testing, adding this reduces the foot stepping over each other. (#104)

  • Dual-band velocity command sampling. The velocity command generator can now avoid sampling commands whose magnitude falls in a “dead” low range, so training does not waste time near-zero velocity commands — particularly useful for rough-terrain/stairs training. Note: Command sampler is added but not yet used in the tasks (#85)

  • New decoupled angular-velocity rewards. Two new reward terms, track_body_ang_vel_z_exp (yaw tracking) and body_ang_vel_xy_l2_penalty (roll/pitch penalty), are available as a replacement for mjlab’s combined track_angular_velocity / body_angular_velocity_penalty pair. Splitting them fixes a frame-mismatch bug (yaw used the body frame, the penalty used the world frame) and stops the roll/pitch restoring gradient from vanishing whenever yaw error is large — both terms can now be tuned independently. Note: The rewards are added, but are not used within the configurations yet. (#81)

  • New tracking task for the Kangaroo lower body (+ 5-DoF variant). Adds a motion-tracking task on top of the existing velocity-tracking task. (#91)

  • New velocity-tracking task for the Kangaroo lower body. The basic velocity-tracking environment for the lower-body robot. (#76)

  • Reward set adapted for lower-body flat-ground locomotion. Minimal reward changes needed to get the lower-body robot walking on flat ground. (#87)

Model Updates

  • Updated the Kangaroo 7-DoF and hands MuJoCo models with proper masses and inertias. (#107)

  • Updated the Kangaroo 4-DoF MuJoCo model with proper masses and inertias. (#106)

  • Replaced the TALOS collision meshes with capsule proxies, which are cheaper to simulate and collide. (#102)

  • Updated the Kangaroo lower-body model. (#84)

  • Set the density of the foot capsules to zero, so they no longer affect the robot’s mass/inertia and act as pure collision geometry. (#79)

Bug Fixes & Reliability

  • Fixed arm 7 link collision being ignored. In earlier commit (#131) was introduced a bug were collision configuration ignores arm 7 link collisions in kangaroo_grippers.xml, because they were named with the “_capsule” suffix, instead of “_collision”. Collision configuration loads collisions with the regex “.*_collision”, and ignores all other by default. Renamed the collisions to use the proper suffix. (#136)

  • Fixed swapped ``stairs_up``/``stairs_down`` names in the Kangaroo rough terrain. The pyramid stairs (spawn on top, walk down) were named stairs_up and the inverted pyramid (spawn at the bottom, walk up) stairs_down. The names now match what the robot does; the generated terrain is unchanged. (#124)

  • Excluded knee/tibia vs. foot collisions on the other Kangaroo models. The lower-body, hands and grippers models now exclude contacts between the ankle bar and knee links and the foot collision-avoidance capsule on both legs, matching the full kangaroo.xml model. Previously these links could collide with each other, producing spurious self-contacts. (#125)

  • Set the density of the capsule parent geom to zero. The density of the whole capsule class needs to be zero to avoid generating the inertial properties due to the inertiafromgeom property of the compiler (#116)

  • Reduced GPU memory usage and fixed hfield contact overflow in the Kangaroo rough velocity task. ccd_iterations is now capped at 100 to shrink the EPA buffer allocated by mjwarp. The perlin_noise terrain now uses 10 cm cells (40x40 per 4 m tile, like hf_discrete_obstacles), which keeps each collision geom within the mjwarp hfield narrowphase limit (mjMAXCONPAIR=50) and stops the overflow warning spam. (#116)

  • Fixed a CUDA illegal-memory-access crash on reset with mjlab 1.5.1. Training would crash with a CUDA illegal memory access error when environments reset. Worked around by pinning a specific mjlab commit; see also the memory note on this issue for how it was diagnosed. (#94)

  • Improved policy repeatability across training runs. Reduces the joint-velocity and IMU-projected-gravity observation noise so that repeated training runs converge to more similar behaviour, making it easier to compare experiments. (#75)

Dependency Updates

pal_mjlab tracks mjlab closely. If you hit an environment or dependency issue, check which of these bumps might be relevant first.

  • Updated mjlab to 1.6.0. (#103)

  • Updated mjlab to 1.5.3. (#99)

  • Updated mjlab to 1.5.2. (#95)

  • Updated mjlab to 1.5.1 (superseded by the CUDA fix in #94). (#92)

  • Updated mjlab to 1.5.0. (#80)

  • Updated mjlab to 1.4.0. (#77)

  • Updated mjlab to 1.3.0. (#73)

  • Updated mjlab to 1.2.0. (#70)

Breaking Changes

  • Removed tracking with state estimation and changed default The variants of the tracking task with state estimation have been removed. Now, default tasks, Mjlab-Tracking-Flat-Pal-Kangaroo, Mjlab-Tracking-Flat-Pal-Kangaroo-Hands and Mjlab-Tracking-Flat-Pal-Kangaroo-Lower-Body do not use state estimation. The default value of the flag has-state_estimation is now set to False. (#139)

  • Axis inverted for arm joints 5 and 7 in kangaroo grippers xml. For arm joints 5 and 7 in kangaroo_grippers.xml, axis have gone from "0 0 -1" to "0 0 1". Policies trained before this commit will have their behaviour affected by this change. This is done to reflect the new changes introduced in the URDF. If the version of pal_sea_arm on the robot is greater than 2.5.1, this change is needed. If your robot is running ROS 1, this change is needed. (#131)

  • Removed the base linear acceleration observation from the Kangaroo velocity tasks. The base_lin_acc actor observation term (IMU linear acceleration) is no longer part of the shared pal_kangaroo_baseline_env_cfg, so it is dropped from the full-body, Hands and Grippers Kangaroo velocity tasks (flat and rough). The lower-body tasks (pal_kangaroo_lower_body_flat_env_cfg and pal_kangaroo_lower_body_rough_env_cfg) keep the term, with ±1.0 noise, until a lower-body policy without it has been trained and tested. This changes the actor observation size, so checkpoints trained with the old observation set can’t be loaded into the affected tasks. (#119)

  • The Hands and Grippers rough tasks are no longer registered. Mjlab-Velocity-Rough-Pal-Kangaroo-Hands and Mjlab-Velocity-Rough-Pal-Kangaroo-Grippers are commented out while the new rough config settles. (#109)

  • Renamed pal_kangaroo_rough_env_cfg to pal_kangaroo_baseline_env_cfg. If you reference this config directly (rather than through a registered Gym task id), update the import. (#86)

Documentation & CI

  • The documentation is now published to GitHub Pages at https://pal-robotics.github.io/pal_mjlab/ by a new Docs workflow. The workflow builds the docs on pull requests, treating warnings as errors, and deploys them on every push to main. Use make docs to build them locally. (#128)

  • Updated the documentation for Kangaroo in pal_mjlab. Added notes for rough terrain in the velocity task, and added documentation for Kangaroo grippers model (7-DoF + gripper). (#127)

  • Added the first version of the pal_mjlab documentation (the site you are reading now). (#82)

  • Added a reward-testing CI workflow to catch regressions in reward functions. (#78)

  • Updated the CI versions. (#83)

Maintenance

  • Changed the default checkpoint save_interval to 500 iterations. (#72)

  • Removed trailing whitespace across the codebase. (#93)

v1.0.0

Initial tagged release of pal_mjlab.