Replies: 1 comment 4 replies
-
The lib is meant for dynamic applications as well, Struckig can definitely support you in tracking, but I think to get good results you will have to implement a tracking algorithm to “feed” predicted target states into the trajectory generator instead of actual readings. If you use the actual readings of the encoder, the trajectory will take time to catch up and lag behind a bit. Tracking algorithm overcome this hurdle. This is achieved by predicting ahead a target state, which can then be passed to Struckig.Otg . I did something similar once in an image processing application with opencv and used the optical flow algorithm for tracking a signal. There I could simply use an opencv implementation, but I don’t think it is so hard to implement this in Codesys. Struckig is a port of the open source version of “ruckig”, which actually implements such an algorithm in its Pro version. |
Beta Was this translation helpful? Give feedback.
-
Hi all,
First, @stefanbesler you did such a great work here !
Regarding the title of this topic, i was wondering if it was possible to use this library to perform some signal tracking in real time. I'll give a quick example :
We have an AGV that follows a magnetic line by computing the offset between a magnetic sensor and a magnetic wire on the floor. Our PLC is using Codesys, i installed the library and it seems to work well so far ! Actually, the tracking of the line is performed by a simple PID that tries to compensate the offset depending on velocity from the encoders readings but this approach could be limiting in terms of jerk and acceleration. I was wondering if it was possible to compensate the offset with the struckig ? so the TargetState will be the offset and instead of using the newOutputState as InputcurrentState, we use the actual reading from the encoders as InputcurrentState at each cycle and doing the propagation "manually" but disabling the
EnableAutoPropagate
parameter. I know that Ruckig is more suitable for stationary applications but im wondering if it can be used in mobile applications.I'm still playing around the library on Codesys so if i find something interesting, i'll share it with great pleasure. Thank you !
Beta Was this translation helpful? Give feedback.
All reactions