# Controlling robot gripper Rg2 with Python

**URL:** <https://forum.universal-robots.com/t/controlling-robot-gripper-rg2-with-python/34450>\
**Category:** Technical Questions\
**Created:** [May 28, 2024, 10:03am UTC](https://forum.universal-robots.com/t/controlling-robot-gripper-rg2-with-python/34450 "2024-05-28T10:03:41Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![robin\_gdwl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/robin_gdwl/32/2676_2.png) [@robin\_gdwl](https://forum.universal-robots.com/u/robin_gdwl)\
**Post date:** [May 28, 2024, 10:14pm UTC](https://forum.universal-robots.com/t/controlling-robot-gripper-rg2-with-python/34450/2 "2024-05-28T22:14:48Z")

</div>

> [@I want to work onrobot rg2 gripper in python](https://forum.universal-robots.com/t/i-want-to-work-onrobot-rg2-gripper-in-python/27332):
>
> I succeeded in moving the robot using the urx library, but the operation of the gripper failed. Currently, I am using an onrobot rg2 gripper, and I tried to operate it with the onrobot rg2 gripper api below, but it did not work. The operating system is Windows and I want to run the gripper with Python. I’ll be waiting for your help. Below is my code. ㅇ onrobot rg2 gripper API ([Support for OnRobot RG2 Gripper by Mofeywalker · Pull Request #45 · SintefManufacturing/python-urx · GitHub](https://github.com/SintefManufacturing/python-urx/pull/45/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5)) impo…

---

_[View the full topic](https://forum.universal-robots.com/t/controlling-robot-gripper-rg2-with-python/34450)._
