Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Lock TCP documentation

#1
Hello guys,

I am doing some modifications on XBox Controller script and was wondering if there is more functions in LockTCP Plugin? Would like to ask the status of a current tool. Is it possible to do it or does it have only "LOCK" and "UNLOCK"?

Something like:
RDK。TCP PluginCommand(“锁”、“地位”,工具。名称()) == "Locked" or

RDK。TCP PluginCommand(“锁”、“地位”,工具。名称()) == "Unlocked"

The thing is, on Xbox Controller, I am switching between robots with "BTN_SELECT" and would like to get the status of the active tool on the newly selected robot :)

Thank you very much!

Kind regards,
Tom
#2
Hi Tom, nice to see you are putting the Game Controller App to good use!

The Lock TCP plug-in currently does not support the ability to retrieve the status of a robot. However, it should be very easy to add! You can find the source code here:
https://github.com/RoboDK/Plug-In-Interf...CP.cpp#L80

We should add this feature at some point, but feel free to open a pull request until then.
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.
#3
Hi Sam!

That was exactly I was looking for!

Yes, I am trying to implement some additional functions of Xbox Controller and find a workaround for not heaving the Teachpendant while doing some simulations :)

Here is the code I did until now so maybe you can take a look and see if you can use it in the future? Still under constuction but it works for "Translation" motion. I am working on rotation with locked TCP now.

Kind regards,
Tom


Attached Files
.py XboxController.py(Size: 17.5 KB / Downloads: 36)
#4
For those interested, the Game Controller Add-in and its source code are available here:
//www.sinclairbody.com/addin/com.robodk.app.gamecontroller
https://github.com/RoboDK/Plug-In-Interf...troller.py
Please read theForum Guidelinesbefore posting!
Find useful information about RoboDK by visiting ourOnline Documentation.




Users browsing this thread:
1 Guest(s)