# Return message for a UR script command sent through the /ur\_hardware\_interface/script\_command topic?

**URL:** <https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411>\
**Category:** ROS\
**Created:** [May 23, 2020, 4:54am UTC](https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411 "2020-05-23T04:54:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon12865900](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon12865900](https://forum.universal-robots.com/u/anon12865900)\
**Post date:** [May 23, 2020, 4:54am UTC](https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411/1 "2020-05-23T04:54:25Z")

</div>

Hello,

What is the best way to receive the return message for a UR script command (e.g., “is\_within\_safety\_limits”) sent through the /ur\_hardware\_interface/script\_command topic?

---

<div class="post-metadata">

**Author:** ![mauch](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mauch](https://forum.universal-robots.com/u/mauch)\
**Post date:** [May 25, 2020, 6:15am UTC](https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411/2 "2020-05-25T06:15:52Z")

</div>

Hi,

this is currently not supported.

---

<div class="post-metadata">

**Author:** ![anon12865900](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@anon12865900](https://forum.universal-robots.com/u/anon12865900)\
**Post date:** [May 25, 2020, 6:44am UTC](https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411/3 "2020-05-25T06:44:28Z")

</div>

Thanks. Is it possible to have this capability? Which files should I look into to make modifications to the socket communication to add this feature?

---

<div class="post-metadata">

**Author:** ![mauch](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mauch](https://forum.universal-robots.com/u/mauch)\
**Post date:** [May 25, 2020, 7:22am UTC](https://forum.universal-robots.com/t/return-message-for-a-ur-script-command-sent-through-the-ur-hardware-interface-script-command-topic/7411/4 "2020-05-25T07:22:33Z")

</div>

I honestly do not know whether this is possible at all. To check, you could try to search the online documentation. The `script_command` topic is basically only a wrapper around the primary interface socket connection.

So, what you could do is grab a network package viewer such as wireshark and inspect the packages that are coming back from the robot. Alternatively you can try using my [WIP branch](https://github.com/UniversalRobots/Universal_Robots_ROS_Driver/pull/171) for getting more information from the primary interface.

If there is a message sent by the robot, this would have to be implemented inside the mentioned WIP branch for improving the primary interface and then there’s still functionality to build ontop of that.
