element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
AMD
  • Products
  • Manufacturers
  • AMD
  • More
  • Cancel
AMD
Blog MicroZed Chronicles: Kria Robotics Stack
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join AMD to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: MayaL
  • Date Created: 30 Mar 2022 3:30 PM Date Created
  • Views 818 views
  • Likes 4 likes
  • Comments 0 comments
Related
Recommended

MicroZed Chronicles: Kria Robotics Stack

MayaL
MayaL
30 Mar 2022

Editor’s Note: This content is republished from the MicroZed Chronicles, with permission from the author.

 

The Kria K26 SOM and the Kria KV260 Vision AI Starter Kit have received interest for developing image processing and AI applications. Recently, I came across the Kria Robotics Stack (KRS) on the Xilinx GitHub Page. KRS is a subset of the Robotic Operating System (ROS 2) which enables developers to leverage the acceleration provided by programmable logic. This is an interesting area for developers of robotic solutions because the acceleration can provide a significant boost to performance without a significant increase in power and costs.

For those unfamiliar with ROS2, the first thing to explain is that, although it is called the Robotic Operating System, it’s not an operating system. It’s actually a framework of libraries and utilities that enable the creation of scalable robotic solutions that alleviate the need to always start from scratch. There are three key elements at the core of ROS:

  1. A framework to create distributed robotic applications that communicate between sub-elements of the design (e.g., sensors, motor drive etc.). These sub-elements are called nodes.
  2. Tools that help develop the application (e.g., simulation, 3D visualization, graphing, and plotting).
  3. Support for third-party plug ins to add functionality for applications.  

It’s the third-party plug ins that enable KRS to augment ROS 2. These provide a series of extensions to the build system and meta build tools and enable support for acceleration. Xilinx defines its extensions as having three pillars:

  1. Extension of the ROS 2 build system (ament) to support the creation of acceleration kernels.
  2. Extension of the ROS2 meta build system (colcon) to integrate and manage the acceleration flows into the ROS 2 CLI.
  3. Provision of a firmware layer to provide necessary support for compilation of the kernels.

As illustrated in the diagram below, the KRS components support acceleration of navigation, manipulation, perception, and actuation stacks. As you would expect, at the heart of the KRS is Vitis with its ability to accelerate applications from processing system to programmable logic.

image

I was keen to explore KRS a little since having previously worked with ROS 2 on a TurtleBot Burger application and also having a Kria Visions AI Starter Kit with several of the demo applications.

To get started with the Xilinx KRS demos, we need a system which contains the following:

  1. Ubuntu Linux 20.04 Focal Fossa release
  2. Vitis 2020.2.2
  3. ROS 2 Foxy distribution

Installing Vits requires that we first install Vitis 2020.2 as well as the update to Vitis 2020.2.2. To ensure the system was correct, I created a virtual machine configured exactly for the exploration.

With the three elements installed, we can start looking at the examples provided by Xilinx as part of the KRS installation and basic tutorials. These tutorials walk you through a ROS 2 publisher using high-level synthesis in ROS 2 in addition to offloading and accelerating a ROS 2 publisher. The concepts of topics, publisher, nodes and subscriber are critical to understanding ROS 2. 

If you are not familiar with these concepts, I suggest you first try walking through a simple ROS 2. I am planning on running through the basic Foxy ROS 2 tutorials found here.

This will refresh my memory before I start looking at the KRS and working on the project I have in mind, which will be ready early next year. 

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube