Trajectory Planner using Ruckig Lib

More
3 years 3 weeks ago #282530 by Hakan
This is interesting, I want to follow the progress so I hope you keep us updated.

I wish I could contribute but I don't have the skills nor the time for it. Time available might change in a couple of months, but what can a newcomer on this topic really do?

When it comes to development methods my view is that you do it the way you find most efficient. Full freedom. Develop and demonstrate that it works. Then, when and if it should be integrated into the linuxcnc source tree, that is the time to start discussions on cmake etc.

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #282532 by rodw

Hey beef, have you seen the opencn project? its kinda similar, in the sense they use matlab instead of ruckrig. they changed a lot but maybe it has something useful

gitlab.com/mecatronyx/opencnc/opencn
Opencn use C code generated by matlab and they say you need to have a commercial licence to matlab to use it. They were a university  so it was free to them on an educational license.  I did look at the licences once and could not see that was an impediment for an open source project.

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #282541 by Grotius
Hi,

For using scurve jogging in lcnc, i coded the ruckig scurve library into the motdot.so library that is used for jogging.
It seems to work now.

github.com/grotius-cnc/linuxcnc/blob/mai...tmod_src/simple_tp.c

A picture of the jog output in axis:
github.com/grotius-cnc/linuxcnc/blob/mai...ts/motmod/screen.jpg

I need to add the "jerk_max" value into the lcnc .ini file and read this value into the motdot.so lib when lcnc starts up.
Any suggestions?
The following user(s) said Thank You: akb1212

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago - 3 years 3 weeks ago #282552 by Hakan
Treat it in the same way as max_acc and max_vel.
jerk_max is per joint or per axis? questions questions

Edit: jerkmax is settable by G-code in 3d-printing so that can be a way. But what is the interaction with G64 setting, if any?
Last edit: 3 years 3 weeks ago by Hakan.

Please Log in or Create an account to join the conversation.

More
3 years 3 weeks ago #282699 by Lcvette
If you guys get this to work you will be heroes! I have long been dealing with my machine shuddering in small fast moves from the way transitions are handled, I'm sure others with heavy fast machines can relate. I have hoped some of the projects out there would be integrated into linuxcnc at some point. I am fully rooting for you all and hope you have success! I think where it is developed is completely unimportant so long as it is available in the future! I can relate to working off forum for development where distractions are limited and chat is in realtime, I think there is no way around that. Any who have issue with this have likely not tried using the currently available linuxcnc communications platform for development. you need a platform that has instant file sharing and robust functionality beyond what the limited irq offers. This does not mean the forum thread should not be a source of update and communication as that is important. but to any who are frowning upon external development, I would say that is unrealistic with the current offering of formal linuxcnc community communication platforms. Further more the politics the project may be faced with could be stifling. I speak from experience on all of these fronts as a team member of a linuxcnc project. I hope you guys succeed and I would stress to do whatever you feel is most helpful to accomplish that end! Our team uses matrix and I personally use element io as the front end of it and we have found this to be extremely useful in sharing files, gif video, full videos, images etc that make solving problems and working together in realtime very productive! it also does not mean it has to be a closed group, we open the invitation for any and all interested to join!
The following user(s) said Thank You: akb1212, tommylight, bkt, Grotius, Beef

Please Log in or Create an account to join the conversation.

More
3 years 2 weeks ago - 3 years 2 weeks ago #283122 by Grotius
Hi,

Just a little update today.

github.com/grotius-cnc/linuxcnc/ is a repository with a cmake project.
It builds linuxcnc without the original make file.
Currently only tested to startup a axis gui after build.

In the above repository ruckig is implemented for jogging a scurve motion profile.

Also a max_jerk value is added in the axis_mm.ini file:

# Joints sections
[JOINT_0]
MAX_JERK = 200

This value can be changed in runtime by setting a new value for this ini pin.

The picture shows the x axis jogging output in hal :                                                                                                                            

picture

Now waiting for beef's update.
Last edit: 3 years 2 weeks ago by Grotius. Reason: picture no show
The following user(s) said Thank You: akb1212, tommylight, tivoi, MennilTossFlykune, Beef

Please Log in or Create an account to join the conversation.

Time to create page: 0.581 seconds
Powered by Kunena Forum