---
title: "Make a Robot Arm Feel Weightless with NVIDIA Holoscan 5"
description: "Gravity compensation for a robot arm requires continuous inverse dynamics calculation based on precise models of link dimensions, masses, and moments of inertia, and must run with low jitter to avoid instability. NVIDIA Holoscan 5 introduces a robotic control framework that uses partitions to group chains of operators on a single thread, avoiding cross-thread handoffs and unnecessary syscalls to reduce latency and jitter. This tutorial builds three custom Holoscan operators wired into a graph and tested on Jetson Orin Nano, Jetson Thor, and x86 Ubuntu 24.04 systems. The operators use Pinocchio’s Recursive Newton-Euler Algorithm solver and the motorbridge library to read joint state and send torque commands, combining gravity feedforward with light stiffness and damping. Latency measurements show that pinning the control partition to dedicated CPU cores and isolating them with cgroups reduces p99.99 latency by roughly 5x for C++ and 9.6x for Python."
---

# Make a Robot Arm Feel Weightless with NVIDIA Holoscan 5

[NVIDIA](https://yomu.fyi/company/nvidia-developer-blog) · Elizabeth Goodman · Nov 9, 2026

**Type:** Tutorial

## Summary

Gravity compensation for a robot arm requires continuous inverse dynamics calculation based on precise models of link dimensions, masses, and moments of inertia, and must run with low jitter to avoid instability. NVIDIA Holoscan 5 introduces a robotic control framework that uses partitions to group chains of operators on a single thread, avoiding cross-thread handoffs and unnecessary syscalls to reduce latency and jitter. This tutorial builds three custom Holoscan operators wired into a graph and tested on Jetson Orin Nano, Jetson Thor, and x86 Ubuntu 24.04 systems. The operators use Pinocchio’s Recursive Newton-Euler Algorithm solver and the motorbridge library to read joint state and send torque commands, combining gravity feedforward with light stiffness and damping. Latency measurements show that pinning the control partition to dedicated CPU cores and isolating them with cgroups reduces p99.99 latency by roughly 5x for C++ and 9.6x for Python.

## Context

Gravity compensation for robot arms requires low-latency, low-jitter control loops. NVIDIA Holoscan 5 provides a framework for building such loops with custom operators and graph execution. This tutorial demonstrates building a three-operator control loop using Python and C++ APIs, tested on real hardware including Jetson Orin Nano, Jetson Thor, and x86 Ubuntu 24.04.

## Approach / What changed

Build three custom Holoscan operators: JointStateSourceOp (reads joint state on a clock), PinocchioGravityOp (computes gravity compensation using Pinocchio’s RNEA solver), and a command operator (sends torques to motors). Wire them into a graph. Use Holoscan’s deployment API to pin the control partition to dedicated CPU cores and isolate them with cgroups. Profile with Nsight Systems.

## Takeaways

- Gravity compensation requires continuous inverse dynamics calculation based on precise robot models (link dimensions, masses, moments of inertia) and must run with low jitter to avoid instability.
- Holoscan 5’s partition model groups operators on a single thread, avoiding cross-thread handoffs and reducing latency and jitter for control loops.
- Pinning the control partition to dedicated CPU cores and isolating them with cgroups reduced p99.99 latency by roughly 5x for C++ and 9.6x for Python in the tested setup.

## FAQ

### What hardware is this tutorial tested on?

The walkthrough has been tested on Jetson Orin Nano, Jetson Thor, and x86 Ubuntu 24.04 systems.

### How does Holoscan 5 reduce latency for control loops?

Holoscan uses partitions to group chains of operators on a single thread, avoiding cross-thread handoffs and unnecessary syscalls. It also uses clock and data-arrival triggers and bounded drop-oldest queues to prevent outdated work.

### What is the benefit of pinning cores for control applications?

Pinning the control partition to dedicated CPU cores and isolating them with cgroups reduced observed p99.99 latency by roughly 5x for C++ and 9.6x for Python in the tested runs, as shown in the latency distribution table.

**Tags:** [Gravity Compensation](https://yomu.fyi/topic/gravity-compensation), [Holoscan](https://yomu.fyi/topic/holoscan), [Jetson](https://yomu.fyi/topic/jetson), [NVIDIA](https://yomu.fyi/topic/nvidia), [Robotics](https://yomu.fyi/topic/robotics)

- Source: [NVIDIA](https://developer.nvidia.com/blog/make-a-robot-arm-feel-weightless-with-nvidia-holoscan-5)
- Source URL: https://developer.nvidia.com/blog/make-a-robot-arm-feel-weightless-with-nvidia-holoscan-5
- Ingested by Yomu: 2026-11-09T21:00:10.503Z

[Read original post](https://developer.nvidia.com/blog/make-a-robot-arm-feel-weightless-with-nvidia-holoscan-5)
