Teilen Sie Ihre Erfahrunge und Wünsche mit uns und anderen Usern!

0
Answered

drive CurrentPosition() in IK mode issue

VIZtech4 1 year ago in realvirtual.io Starter and Professional updated 11 months ago 8

Using professional version.

When driving a robot arm around in Axis mode using a joystick, dirve CurrentPosition reports the correct angles.

However when in IK mode, the returned values change sign at the 180 position.

How can I get proper angle values in IK mode ?

Answer
Support 11 months ago

Hi, the solver will not get any values greater or lower than -180 or +180  because with this solutions all possible positions can be described. 

0

Ethernet IP AB Control logix "path". Im used to CIP paths, but its format doesnt seem to work.

I am wanting to connect to a AB Control Logix. I have IP, PLC type and a CSV file creating one test variable (float). When I test communication. It has a error. [EthernetIP - Error in connecting to PLC, please check your connection settings!] The only variable is the PATH. PATH has no explanation in documentation. I am used to CIP path, but that format doesnt seem to work. In my test rack I have a L83 processor, with built in ethernet, in slot 0. IP I can ping and connect with software. Just trying to set up a use case demo. I have a stand alone ethernet card I could use but dont think thats the issue.
I've tried 1,0   0,0  1,1  same error.

0
Completed

Suggestion regarding DriveToTarget()

VIZtech4 1 year ago in realvirtual.io Starter and Professional updated by Support 1 year ago 2

I found it useful to change DriveToTarget to this;

public bool DriveToTarget(IKTarget target)

it returns true if the target was reachable otherwise false

Answer
Support 1 year ago

Hi, thanks for the suggestion - we will implement that for the next release (in the next 2 weeks).

0
Not a bug

SetDriveTransformToValue issue

VIZtech4 1 year ago in realvirtual.io Starter and Professional updated by Support 1 year ago 4

I have Rotation Drives on the pivots of a robot arm.

To set a 'pose' position I am using "SetDriveTransformToValue" with an angle parameter for each drive.

That part works, however when I then use "drive.CurrentPosition" it gives me the wrong answer and also the limits become in the wrong place.

I tried using "drive.Offset" and "drive.DriveReset" but these did nothing.

The drive transform in Unity Editor does show the correct angle, it's the CurrentPosition that seems to be the problem or it may be I am not using it correctly.

Answer
Support 1 year ago

Hi, for setting a Drives position from external code you should just use Drive.CurrentPosition = NewPosition.

This will directly set the new position. You should use it in FixedUpdate and if you want to have a smooth movement you need to take care on your own about the interpolation. 

The methods you used are misleading (and even not used from our side) - we will delete the in one of the next releases.

0
Answered

Real Time IK Mode

VIZtech4 1 year ago in realvirtual.io Starter and Professional updated 1 year ago 6

Hello,

Robot arm.

I need to move the robot TCP object using a joystick and have the robot follow, as it does in 'add target edit mode'.

This has to work not in edit mode but in Unity run mode. I have no problem moving the TCP object, the problem is having the robot follow it in real time.

Can you please advise how this can be done ?

0
Answered

Unity Input System Problem

VIZtech4 1 year ago in realvirtual.io Starter and Professional updated 1 year ago 2

Hello, I am new to realvirtual but have followed some tutorial videos with success using the professional version.

I have a problem though with inputs, it appears the Unity input system under Project Settings is being used by the game4automation system.

I tried to use an XBOX controller for moving a robot arm in Axis mode but the joystick inputs are not working as they do with just the native Unity input system.

What do I need to do to get this working please.

Answer
Support 1 year ago

Hi, I am sorry. I don't have an answer to that out of the box. Yes we are using old (standard) input system. Maybe this collides with the XBOX Controller system. I don't know which kind of input system the XBOX Controller is using. Maybe you need to do changes within the game4automation folder in the scene, changing settings of the input module or changing things in the code of scene mouse navigation.

0
Answered

Event to subscribe to when import of Signals is finished?

AndreS2 1 year ago in realvirtual.io Starter and Professional updated by Support 1 year ago 2

Hey hey,

i cant seem to find the proper way of knowing when the import of Signals through the PLCSimAdvanced Interface is finished and i can start working with the signals(ex. searching for Signals or reading/writing to them).

My background is, that i want to implement my own logic of connecting and working with the signals, the SignalManager doesnt has enough flexibility for me. 

But i cant seem to find an Event Like thing to know when the import has been finished.

Yes i could implement it myself inside the interface, but after every Update it would be broken.

So is there a correct and intendent way of doing this?

Greetings

0
Fixed

Transport Oberfläche passt nicht zur Geschwindigkeit

Sven 1 year ago in realvirtual.io Starter and Professional updated 1 year ago 8

Hallo,

wenn ich eine Beschleunigung über eine SPS vorgebe, wenn ich die Drive_Speed benutze, verhält sich die Oberfläche sehr merkwürdig von einem Transport und passt nicht zur eigentlichen Bewegung. Wenn ich "Acceleration" deaktiviere sieht alles wieder gut aus. Ist dies noch ein Bug?

Was ist außerdem "Slow Acceleration"?

Answer
Support 1 year ago

Hallo,

ich habe Ihnen eine Email mit einem aktualisierten Skript zukommen lassen. Ab dem nächsten Release ist die korrigierte Animation verfügbar.

Gruß Christin

0
Under review

Importierte Variablen von Signal Manager gehen verloren

Sven 1 year ago in realvirtual.io Starter and Professional updated 1 year ago 2

Hallo,

ich benutze den Signal Manager um meine Variablen automatisch zu verbinden.

Das klappt soweit auch, aber sobald ich dieses auch für Sensoren versuche, scheitere ich.

Mein Script ist soweit nichts ungewöhnliches:

signalname = $"G4A_INX_{parentName}_{component.name}";   // define Signal name based on custom rule                
var signal = GetOrCreateSignal<PLCInputBool>(signalname);   // create the signal if not already there                
((Sensor_Standard) component).Occupied = signal; // connect the signal to the behavior model                 
EditorUtility.SetDirty(((Sensor_Standard) component).Occupied);
connected = true;

Wenn ich mir den Sensor jetzt ansehe, sind alles Variablen verbunden.

Aber wenn ich nun starte werden die Variablen nicht geschrieben. Wenn ich jetzt nochmal die Sensoren angucke sehe ich auch keine verbundene Variable mehr. Wenn ich aber bei meiner Variable gucke, steht dort immer noch das diese mit dem Sensor verbunden ist.

Bei dem Drive_Speed funktioniert alles. Ich kann alles lesen und schreiben. Aber bei einem einfachem Sensor hakt es irgendwo...

Mache ich etwas falsch? Braucht Ihr mehr Informationen?

0
Under review

Robot Inverse Kinematics Only Available in PRO version Message?

AikenControls 1 year ago in realvirtual.io Starter and Professional updated by Support 1 year ago 1

We just purchased the Pro version of Digital Twin and the Simulator from the Unity Asset Store. Everything is downloaded and imported, but we are getting an error "Inverse Kinematics For Robots is only included in Game4Automation Professional".

Is this a bug? Or are we missing some other purchase component?

Thanks in advance for your help!

Answer
Support 1 year ago

Usually this message is caused if Scripting Define Symbols has no GAME4AUTOMATION_PROFESSIONAL defined.


It might be, that the install script did not started because of a compile error just after installation. Sometimes this is caused by NewtonsoftJson (see https://forum.game4automation.com/knowledge-bases/2/articles/283-problem-with-multiple-precompiled-assemblies-with-the-same-name-newtonsoftjsondll).

Please first check if there are no compile errors in your console log.

Secondly apply the standard settings game4automatioin > Apply Standard Settings

Now everything should be fine and you should see GAME4AUTOMATION_PROFESSIONAL in your Scripting Define Symbols: