# 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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ningw-git](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ningw-git/32/78175_2.png) [@ningw-git](https://discourse.slicer.org/u/ningw-git)\
**Post date:** [October 9, 2024, 12:08pm UTC](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606/1 "2024-10-09T12:08:25Z")

</div>

Hello, does slicer have a version that uses python3.8? I’m using a ROKAE robot recently, and they provided a program and library file based on python3.8 (similar to: robot.cp38-win\_amd64.pyd). I want to use this robot in slicer, so please help.

---

<div class="post-metadata">

**Author:** ![ningw-git](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ningw-git/32/78175_2.png) [@ningw-git](https://discourse.slicer.org/u/ningw-git)\
**Post date:** [October 10, 2024, 1:54am UTC](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606/2 "2024-10-10T01:54:27Z")

</div>

Hello, how can I call my own robot in slicer? We have two models of ABB and ROKEA robot arms. Is there any way to connect to these robot arms and display the robot arm models in slicer? Thank you.

---

<div class="post-metadata">

**Author:** ![ningw-git](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ningw-git/32/78175_2.png) [@ningw-git](https://discourse.slicer.org/u/ningw-git)\
**Post date:** [October 10, 2024, 2:18am UTC](https://discourse.slicer.org/t/how-to-use-rokae-robot-with-python-3-8-library-in-slicer/39606/3 "2024-10-10T02:18:54Z")

</div>

sorry it is ROKAE robot

---

<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…
