Skip to main content

Hands-on with Intrinsic Core: Open-Source Stack from Google's AI Robotics Group

· 21 min read
Michael Hart
Mike Likes Robots

Intrinsic Core brings together robotics capabilities and a structured way to build industrial robot applications. It is now open source under the Apache 2.0 licence, is compatible with ROS 2, and comes with a reference solution, the Open Machine Tending Solution (OMTS), that shows how to use it.

In this post, I'll show what Core provides and dig into the OMTS to see how its pieces fit together into a working application. I'll also share the trade-offs I encountered, discuss how Core can work alongside ROS 2, and show how you can get involved in the Intrinsic developer community, where you can get all the tools and resources from Intrinsic in one place.

Sponsored Post

This post, and the accompanying YouTube video, were sponsored by Intrinsic. The opinions expressed in this post are my own.

Intrinsic Core Overview​

Intrinsic Core is a framework with a strong opinion about how industrial robotics applications should be built.

To me, this is one of the more useful ways to describe it. I prefer software with strong opinions because it provides guide rails that let you focus on the application, while reducing the work involved in integrating hardware, coordinating tasks, and managing deployment. More time focused on the real engineering problem usually means a faster journey to a better working application.

Of course, you could replicate many of the features of Intrinsic Core using a pure ROS 2 solution, including hardware abstraction and real-time control through packages like ros2_control. Still, a ROS 2 solution would involve a lot of self-assembly. Core provides its own real-time control framework, ICON, alongside a pre-configured runtime, integrated digital twin, and native access to Intrinsic's wider ecosystem of AI models and industrial cloud services. I also appreciate the structure that Core recommends, like the way the application is split into skills, capabilities, and behaviours. Building a robot solution like this makes it faster to get to a working solution and makes it easier to maintain in the long term, including simulating the system, swapping hardware without rewriting application logic, altering robot behaviour, and adding or tweaking AI capabilities.

Who is Intrinsic Core for?

If you're building an industrial robot and you want a strong solution structure that guides you into making good decisions, Intrinsic Core is well worth evaluating for your project.

Intrinsic Core Primitives​

Intrinsic Core divides the world into four core primitives:

  1. Assets: deployable packages representing hardware, compute devices, simulators, or physical data e.g. a gripper, a Neural Processing Unit (NPU), a CAD mesh for a UR5 robot

  2. Skills: units of behaviour that can be assembled into a behaviour tree e.g. move a robot to a pose; capture an image; calibrate the camera

  3. World / Scene: the knowledge engine for co-ordinate transforms, kinematics, CAD geometry, and collisions e.g. robot arm kinematics; the gripper's pose relative to the base

  4. Executive: The engine executing behaviour trees; governs sequencing, concurrency, fallback handling, blackboard data transfer, and error recovery e.g. running the full pick behaviour of a robot arm workcell

Core runs on the target machine controlling the real robot, ideally on an Industrial PC, or on a development workstation. Either way, it runs on a local single-node Kubernetes (k3s). Any tools operating against the solution will connect to Core's gateway, and a Zenoh Middleware Router provides the ROS 2 bridge, which means that Core can use ROS 2 packages like Nav2 and ROS 2-supported hardware.

As a user of Core, your role is to provide assets for the solution, make use of Core skills (or write your own) to build a behaviour tree, then provide that behaviour tree to the Executive engine for processing. You can make use of the world/scene knowledge engine to perform calculations during behaviour tree execution, such as calculating kinematics and transforms. We see how to do this in the OMTS section.

Before that, let's take a look at the kind of skills and capabilities provided by Core.

Intrinsic Core Features​

Capabilities​

As you build tasks for the behaviour tree, you will need to be able to perform basic functions like moving the robot arm to a location. These capabilities, as well as more advanced ones, are provided by Core out of the box.

The site shows these major capabilities:

  • Pose estimation: NVIDIA's FoundationPose model can be used to estimate the 6-DoF pose of objects in the scene.
  • Motion planning: Core's own motion planning engine or MoveIt2 can be used to plan robot movements.
  • Grasp planning: Generate grasp poses using geometric methods or MoveIt Task Constructor. Accounts for object geometry, gripper configuration, reachability, and collisions.
  • Camera calibration: Core provides tools for calibrating the camera from ChArUco markers. At time of writing, the accompanying tutorial is marked Coming Soon!
  • Sensor-based control: Intrinsic Control (ICON) can adjust its movements based on sensor feedback, such as adjusting the force based on how much pressure is sensed at the end effector.
  • ML inference: Deploy and run your own machine learning models using Core's inference infrastructure.

Additional capabilities are being added over time.

Core also provides runtime features that simplify development and define how components communicate, execute tasks, and share information.

Runtime Features​

These are the features Core provides for running robot applications, managing hardware, and sharing information between components. They don't generally operate as part of the behaviour tree.

  • Intrinsic Control (ICON): A real-time control framework that communicates with and controls robot hardware. It can switch between controllers while performing motions, allowing for more dextrous, sensor-driven movements.
  • Simulation tools: Core integrates with Gazebo, allowing you to test in simulation before deploying to robot hardware. Switching between simulation and deployment is done by changing a command-line flag.
  • Digital twin (ObjectWorld): Maintains a shared representation of the workcell, updated using sensor readings and perception results.
  • Pub/sub and data sharing: ROS 2 interoperability is available through Zenoh, which means components can exchange data using publish/subscribe messaging. Zenoh also supports key-value store (blackboard) data access.

Core can also work with NVIDIA Isaac Sim and MuJoCo, but they aren't built-in Core simulator integrations. Gazebo is the primary simulation engine.

ROS 2 Interoperability

The ROS 2 bridge supports bidirectional communication, making it easier to integrate hardware using existing ROS 2 drivers and to abstract hardware away from application logic. The connecting code required will depend on the hardware and its ROS 2 interface. It also means that RViz and rqt can be used as debugging tools, although only messages that are passed through ROS 2 can be seen with these tools. Any messages that are only passed internally to Core, like the behaviour tree actions, won't be visible.

Build​

Intrinsic Core and OMTS use the Bazel build system, which can build packages from multiple languages in the same workspace. It performs hermetic builds, which means building explicitly versioned dependencies in a sandbox to make the build as reproducible as possible. This is very powerful when it comes to building for production, as the resulting build artifacts are less dependent on the machine building them.

Those benefits are useful for deployment, but I found the day-to-day development loop less smooth (even though starting a simulation or robotics application is expected to take some time in any environment). Bazel needs to download dependencies and perform an initial build, which means compiling if you don't have a remote cache available. After the first build, the packages are cached locally, and subsequent builds should be much faster; even then, it takes me around a minute to start a simulation, and most of that time is apparently spent analysing dependencies and checking for changes.

ROS in Bazel

Although it's not used in the tutorials for Core or OMTS, there is a project that makes ROS available through Bazel! Take a look at the ros-central-registry. You might be able to include these packages in your own project and deploy ROS, Core, and your application, all in one deploy command.

When deploying the system, Bazel builds and bundles up all the build artifacts, then sends them to the machine that is running the active Core program. That might be the robot, a development desktop, or a simulation server. Core is responsible for running the application, so the full chain is:

  1. Build the solution using Bazel
  2. Deploy the solution to the computer running Core
  3. Core unpacks and executes the application
  4. The application builds a behaviour tree with tasks for the robot's behaviour
  5. Core executes that behaviour tree

OMTS, or the Open Machine Tending Solution, shows this chain in action. It's a reference package that shows a possible way to structure code for automated machine tending, and includes instructions to install Core, build OMTS, and execute it in simulation.

Open Machine Tending Solution​

As the source repository says, this gives a functional baseline for a real-world use case with pre-configured assets and skills. This makes it both a solution to understand how Core works and a starting point for building a new robotics application.

Intrinsic Developer Community

If you're working through the setup, consider joining the Intrinsic developer community as well. See the Join the Community and Contribute section for more of the benefits of joining.

There's a full Getting Started guide available for installing Core and running an OMTS simulation. The accompanying video follows through the setup steps; here, I'll focus on how the application is structured.

ROS 2 Lyrical Luth

At time of writing, Core requires use of Lyrical Luth as the ROS 2 version, and instructions are written using Lyrical. I used pixi to install this version on my Ubuntu 24.04 laptop, and I found it a very effective way to operate -- it meant I could include extra commands and environment variables directly in the pixi environment file.

Code Structure​

Let's take a closer look at how the solution is structured so we can better understand how to use Core.

Let's start with our workcell. Our example solution contains a Universal Robots UR5e, a tray, and a machine that the tray needs to be inserted into, then removed from. Our application is going to identify the tray using a cuff camera, pick it up, place it in the machine, and wait.

RViz visualisation of OMTS solution

Simulation of the OMTS application, shown using RViz. Instructions for this are in the Getting Started guide.

We'll look at this example solution by starting with the main file and digging deeper into the application from there.

Main File​

We can start looking at the main file of the OMTS application, main.py. It performs these actions:

  1. Initialising hardware interfaces
  2. Configuring how the tray is discovered using the infeed mode
  3. Configuring the grasp planner
  4. Building the robot behaviour
  5. Configuring whether the robot is in simulation mode
  6. Handing the behaviour tree to Core's executor

Configuration (2, 3, 5) is mostly performed by files in the configs folder. This maps the hardware interfaces to the underlying hardware modules and performs application-specific configuration. Command line arguments can also override some configuration, like the simulation mode and how many cycles to run the solution for.

Once constructed, the behaviour tree is passed to Core's executor using the run function:

solution.executive.run(tree, simulation_mode=exec_sim_mode)

Hardware Interfaces​

These hardware interfaces are adapters that make it easier to build tasks for the behaviour tree. The gripper file is an excellent example, because it defines a base GripperInterface, then two concrete Gripper classes on top: DioGripper and RobotiqGripper. That means the main file can construct the correct Gripper class depending on configuration and pass it as an interface to the behaviour tree construction function.

The GripperInterface interface has two methods: build_open_task and build_close_task. DioGripper overrides these methods by setting digital pins to open and close. Crucially, this is accomplished using a skill made available by Core:

return bt.Task(action=self._dio_set_skill(**kwargs), name=task_name)

The skill reference is created when the gripper is initialised by looking it up from the solution:

self._dio_set_skill = solution.skills.ai.intrinsic.dio_set_output

This is a great example of how skills provided by Core can be used. DioGripper looks up the dio_set_output skill, then exposes methods to build tasks for opening and closing the gripper that make use of the skill. The high level application can then open and close the gripper by creating the associated task and placing it into the behaviour tree. Similarly, the robot uses the move_robot and move_to_contact skills, and the camera uses the capture_images skill.

Behaviour Tree​

The behaviour tree is composed of skills and control nodes; for example, it could indefinitely open and close the gripper by using a loop action with open and close gripper tasks from the GripperInterface.

The behaviour tree for OMTS is built using the build_machine_tending_behavior_tree function:

tree = build_machine_tending_behavior_tree(
robot=robot,
gripper=gripper,
machine=machine,
vision=vision,
infeed_strategy=infeed_strategy,
config=config,
num_cycles_override=num_cycles_override,
grasp_planner=grasp_planner,
)

The behaviors folder contains functions that compose skills into subtrees and those subtrees into the overall robot behaviour. For example, pick.py shows how to build a full pick subtree in the build_pick_from_infeed_subtree function. A list of tasks is built up, for example:

if machine is not None:
tasks.extend(
[
machine.build_open_door_task(name="Open CNC Door"),
machine.build_open_vise_task(name="Open CNC Vise"),
]
)

The list of tasks is combined into a Behaviour Tree Sequence node at the end of the function:

return bt.Sequence(name="1. Infeed Pick Subtree", children=tasks)

The sequence runs these tasks in order, opening the CNC door before opening the vise, then executing the remaining tasks in the pick behaviour subtree. More subtrees can be built in the same way, layering up with various control nodes until the full application's behaviour tree has been assembled. Take a look at this starting point if you're interested in reading how the full tree is assembled for yourself.

One point to draw your attention to before carrying on: the signature of the main behaviour tree building function.

def build_machine_tending_behavior_tree(
robot: Robot,
gripper: GripperInterface,
machine: CncMachineInterface | None,
vision: VisionInterface,
infeed_strategy: InfeedStrategy,
config: AppConfig,
num_cycles_override: int | None = None,
grasp_planner: GraspPlannerInterface | None = None,
tree_name: str = "OMTS Machine Tending Master Cycle",
) -> bt.BehaviorTree:

These arguments can be whatever you need for your application to build the behaviour tree. You can add extra sensors, control multiple robots -- whatever is required. Also, the inputs are interfaces, like the GripperInterface, which makes it easier to work with different hardware. Configuration selects which gripper adapter the behaviour tree uses, and the behaviour-building code can stay the same when switching between them.

Understanding Core Using OMTS​

That's the basics of OMTS! At least, it's the basics we need to be able to take the reference application and extend it. There are other parts of the repository, of course; there are a number of tools and tests to help verify the workflow, and there are models for all of the machine parts so that it can be simulated. Still, the major parts we need to know are:

  • Use configuration files to parameterise the application, including defining the hardware to be used and how it can be reached (e.g. IP address of UR5e arm).
  • Define tasks that use skills to interact with hardware.
  • Define small behaviour trees by composing tasks and control nodes.
  • Define overall behaviour by composing small behaviour trees, tasks, and control nodes.
  • Pass the overall behaviour tree to the executor and let it run.

Extending OMTS​

OMTS is intended as a reference architecture, so how would we extend it to a new application? Let's take another example: sorting parts from a conveyor belt into bins. This would have overlapping capabilities with the OMTS, but also introduces new requirements.

  1. The robot should be able to identify moving parts on the conveyor belt and determine where and when to pick them.
  2. The robot should identify what the part is and determine the bin it should be placed into.

For this application, we would use the same starting point as the OMTS: an industrial robot arm with an RGB-D camera. However, the behaviour would need to change.

OMTS already shows how to estimate an object's pose and determine how to grasp it, which we can reuse in the pick behaviour. Still, the pick behaviour needs to be altered to pick moving objects. Assuming we don't already know the speed of the conveyor belt, the changes could be:

  1. Take the first image of the conveyor belt. Identify the object types and assign unique identifiers to each object.
  2. Take a second image of the conveyor belt. Estimate the velocity of the objects.
  3. Select an object to pick, predict its position at the time of grasping, and plan a trajectory that allows the robot to intercept it while moving with the conveyor.
  4. Store the selected object's type in the behaviour tree's blackboard (a shared key-value store), so the sorting behaviour can retrieve it.

Of course, this type of planning becomes considerably easier if the conveyor belt can be stopped to retrieve an object before continuing to move!

The current return_infeed behaviour can then become sort_outfeed:

  1. Instead of one location to place objects, multiple bins should be added to the ObjectWorld, each for a different object type.
  2. Retrieve the object type from the blackboard and identify the correct bin to place the object into.
  3. Place the object into the bin.

At the same time, we have no CNC machine in the application, which means we can remove the machining, load_machine, and unload_machine behaviours entirely.

Hence, the overall changes are:

  1. Introduce a conveyor belt, several object types, and bins for those objects into the models directory.
  2. Include transformations and configuration for the belt, objects, and bins in the configs directory.
  3. Change the behaviours in the src directory.
    1. pick altered to identify moving objects, predict their positions, and plan paths to intercept those objects
    2. return_infeed becomes sort_outfeed, placing objects in bins based on their type
    3. machining, load_machine, and unload_machine behaviours removed

This is a conceptual design rather than a tested implementation, but it demonstrates how OMTS could be adapted to a different industrial application by reusing existing capabilities and modifying its behaviours and configuration. This is precisely the intention of OMTS: to provide both a working industrial application and a useful starting point for developing new solutions.

Trade-offs and Limitations​

Adopting a new structure takes some work. Alongside the robot application itself, you'll need to become familiar with Bazel, the Core APIs, and how the runtime deploys and executes your solution. For an industrial application, that's probably worthwhile; for a small prototype, it could be more infrastructure than you need.

Next, as I said in the Build section, Bazel is a production-ready tool, but it can be slower to execute commands; starting a simulation with it on my setup takes around a minute as it discovers and checks the dependency tree. Having said that, all robot simulations have some start-up time, and further Bazel configuration and caching optimisations could likely improve this (though I don't have a lot of Bazel experience!). Still, the delay was noticeable when repeatedly running the simulation to test the vision.

Finally, the ROS 2 interop is very welcome, as there is a huge amount of support for ROS 2. However, it does need some extra integration, and messages that aren't passed through ROS 2 won't be visible to ROS-based debugging tools. Core internally uses gRPC, Protobuf, and FlatBuffers, and these won't be visible outside of Core.

My recommendation is to consider how much of Core's functionality your application will use, and how much infrastructure you'd otherwise need to build yourself. If you're building a robot that benefits from Core's skills, execution model, and deployment tools, its structure could save you substantial development work. For simpler projects, or projects that don't make much use of Core's available capabilities, it is likely better for you to go with another solution.

Join the Community and Contribute​

If you decide to try Intrinsic Core, I'd encourage you to join the Intrinsic developer community too! The Intrinsic developer community has links to useful resources, including all the developer tools from Intrinsic and further tutorials for Core and OMTS. Other reference solutions are planned for the future, as well as exclusive access to beta features from Intrinsic.

The page also has a link to Discourse. The Discourse forum is somewhere to ask questions, discuss your application, and share feedback on what works well or where you get stuck. The team welcomes any feedback, whether or not you have a working robot -- even your feedback from running through the OMTS setup would be valuable. My own feedback post has already started a discussion!

You can also contribute code back, in the spirit of open source! If you develop something that other people could reuse, consider sharing it back to Intrinsic Core or OMTS. A PR for a simulation-only mesh grasp planner for irregular shapes, demonstrated with banana models, has already been proposed; in fact, the Files Changed tab is a good source for how to add model assets to the project.

Whether you're trying tutorials, planning a robot solution, or building something others can reuse, consider joining the community and sharing how you get on. It's free to sign up, and you can ask questions, suggest ideas, or join in the discussion already happening.

Conclusion​

What appeals to me most about Intrinsic Core is the structure it gives a robot application. Skills, hardware interfaces, and behaviour trees provide a clear and sensible way to organise the solution, while the runtime brings together capabilities that you'd otherwise need to integrate yourself. There is a learning curve, but for the right application -- one that makes good use of Core's capabilities -- I think it's worth exploring.

The Open Machine Tending Solution is a great way to showcase Intrinsic Core. Showing a working application, especially one with a simulation you can run on your desktop, makes the Core capabilities easier to understand. We followed how it connects hardware interfaces to skills, combines those skills into a behaviour tree, and hands that tree to Core for execution. The project gives you a starting point for adapting the solution to your own hardware and tasks.

If Core looks useful for your project, start by running OMTS in simulation, then start changing it to match your hardware and application. Be sure to bring your questions and ideas to the Intrinsic developer community!