Skip to content

Realtime UR connection #306

Discussion options

You must be logged in to vote

Thanks for the advice. I have done as you suggested but I'm still only getting [0,0,0,0,0,0] as TCP position. Here is how the code looks:

`public class Script_Instance : GH_ScriptInstance
{
// Persistent fields
private URRealTimeDataExchange urRTDE; // Persistent RTDE connection
private bool isConnected = false; // Connection status
private List lastTCPPosition; // Store last successful TCP position
private List logs = new List(); // Log messages

private void RunScript(string robotIP, bool connect, bool getUpdatedPosition, ref object TCPPosition, ref object LogMessages)
{
    // Output variables
    TCPPosition = lastTCPPosition; // Default to the last successful position
    logs.Clear()…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@filipejsbrandao
Comment options

Answer selected by filipejsbrandao
@filipejsbrandao
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants