# How to use ROKAE robot with Python 3.8 library in Slicer?

**URL:** <https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606>\
**Category:** Development\
**Tags:** python, robotics\
**Created:** [October 9, 2024, 12:08pm UTC](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606 "2024-10-09T12:08:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [October 15, 2024, 11:40pm UTC](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606/4 "2024-10-15T23:40:44Z")

</div>

You can import the mesh of each rigid component of the robot and put them under a transform tree as shown here:

> [@How do I add robot arm STL into a scene?](https://discourse.slicer.org/t/how-do-i-add-robot-arm-stl-into-a-scene/11395/3):
>
> Also make sure the STL uses mm as coordinate system units (or scale it using a transforms module). Note that you can also animate the robot (simulate rotation around each joint) if you load each section of the robot as a separate model, with the rotation joint in the origin. You just need to create a hierarchy of transforms in Transforms module and add each model at the appropriate level in the transform tree. I’ve uploaded a short video of ABB IRB 120 robot visualization in Slicer: [[…](https://www.youtube.com/watch?v=yS3SKqNztJU)

If you have a URDF file for your robot then you can use the importer that I’ve created to automate the process. You can find details here:

> [@Loading Robot into Slicer](https://discourse.slicer.org/t/loading-robot-into-slicer/36798/4):
>
> Slicer can do exactly this. The file that you drag-and-drop is a Slicer scene file that contains models, transforms, and OpenIGTLink configuration. You can build the transform tree from information in the urdf file. To make this very easy, I’ve implemented an automatic importer script. You can download it from here: The script does not support all possible features (e.g., I’ve only added “revolute” joint types), but can be easily extended as needed. All you need is to copy-paste the scrip…

---

_[View the full topic](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606)._
