- Posts: 238
- Thank you received: 37
LinuxCNC S-Curve Accelerations
- TheRoslyak
- Offline
- Elite Member
-
Less
More
5 years 4 months ago #212806
by TheRoslyak
Replied by TheRoslyak on topic LinuxCNC S-Curve Accelerations
What's wrong? Perhaps I forgot to do something?
Please Log in or Create an account to join the conversation.
- arvidb
- Offline
- Platinum Member
-
Less
More
- Posts: 459
- Thank you received: 158
5 years 4 months ago - 5 years 4 months ago #212818
by arvidb
Replied by arvidb on topic LinuxCNC S-Curve Accelerations
It looks like it's trying to load a different motmod.so than the one built from the smooth1d branch. I would recommend that you don't install the smooth1d code just yet, but use "Run In Place" instead.
Something like this should do it for the build:
Then to run it:
To run your normal install again, just reboot the machine to reset the "rip-environment". You can see which linuxcnc build is "active" by typing
Something like this should do it for the build:
Code:
$ git clone https://github.com/arvidbrodin/linuxcnc.git linuxcnc-smooth1d
$ cd linuxcnc-smooth1d/src/
linuxcnc-smooth1d/src$ git checkout smooth1d
linuxcnc-smooth1d/src$ ./autogen.sh
linuxcnc-smooth1d/src$ ./configure --with-realtime=uspace
linuxcnc-smooth1d/src$ make -j4
linuxcnc-smooth1d/src$ sudo make setuid
Then to run it:
Code:
cd </path/to/>linuxcnc-smooth1d
linuxcnc-smooth1d$ . scripts/rip-environment
linuxcnc-smooth1d$ linuxcnc
To run your normal install again, just reboot the machine to reset the "rip-environment". You can see which linuxcnc build is "active" by typing
Code:
$ which linuxcnc
Last edit: 5 years 4 months ago by arvidb.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Offline
- Elite Member
-
Less
More
- Posts: 238
- Thank you received: 37
5 years 4 months ago - 5 years 4 months ago #212821
by TheRoslyak
Replied by TheRoslyak on topic LinuxCNC S-Curve Accelerations
Not. Something wrong. Same error.
The regular version starts - So globally nothing has screwed up
Previous version works. But I still haven't figured out how to check
The regular version starts - So globally nothing has screwed up
Previous version works. But I still haven't figured out how to check
Last edit: 5 years 4 months ago by TheRoslyak.
Please Log in or Create an account to join the conversation.
- TheRoslyak
- Offline
- Elite Member
-
Less
More
- Posts: 238
- Thank you received: 37
5 years 4 months ago #212827
by TheRoslyak
Replied by TheRoslyak on topic LinuxCNC S-Curve Accelerations
Return to the question of how to set it up.
I compared the regular version and the smooth version. The differences seem to be there, but not significant. Perhaps it was necessary to accurately scale the scope. But there seem to be differences - judging by the scope.
In this version, can I somehow customize the S-Curve Accelerations parameters?
I compared the regular version and the smooth version. The differences seem to be there, but not significant. Perhaps it was necessary to accurately scale the scope. But there seem to be differences - judging by the scope.
In this version, can I somehow customize the S-Curve Accelerations parameters?
Please Log in or Create an account to join the conversation.
- arvidb
- Offline
- Platinum Member
-
Less
More
- Posts: 459
- Thank you received: 158
5 years 4 months ago - 5 years 4 months ago #212831
by arvidb
Replied by arvidb on topic LinuxCNC S-Curve Accelerations
I have managed to reproduce the "linuxcnc-smooth1d/rtlib/motmod.so: undefined symbol: smooth1d_reset_pos" error. Something is still wrong in the build scripts. I'm looking into it now.
Edit: It seems to be an ordering issue between the different object files during linking. Still working on it...
Edit: It seems to be an ordering issue between the different object files during linking. Still working on it...
Last edit: 5 years 4 months ago by arvidb.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- arvidb
- Offline
- Platinum Member
-
Less
More
- Posts: 459
- Thank you received: 158
5 years 4 months ago #212835
by arvidb
Replied by arvidb on topic LinuxCNC S-Curve Accelerations
I have pushed another commit to my repo which should fix the "linuxcnc-smooth1d/rtlib/motmod.so: undefined symbol: smooth1d_reset_pos" build error. It would be GREAT if someone with more knowledge on the LinuxCNC build system (and/or makefiles in general) could take a look at my changes and see if the linking of the smooth1d library can be done in a better way. Now I have written a specific rule for motmot.so which isn't a very nice solution. Also the library is listed both as a dependency for motmod.so (part of $^) and as a linker include command (-lsmooth1d).
TheRoslyak: Please try the new version. No, there is no way to configure the jerk limit at the moment; it is auto-calculated based on your max acceleration and max velocity settings for each joint. It should "just work". But a manual config option could be added later if necessary. In your halscope images I cannot see any trace of jerk limiting (the velocity plots are straight lines) so I'm guessing you weren't running the smooth1d version (because of the build issue?).
If you still cannot see a difference after a successful build, please post your joint acceleration and velocity settings.
TheRoslyak: Please try the new version. No, there is no way to configure the jerk limit at the moment; it is auto-calculated based on your max acceleration and max velocity settings for each joint. It should "just work". But a manual config option could be added later if necessary. In your halscope images I cannot see any trace of jerk limiting (the velocity plots are straight lines) so I'm guessing you weren't running the smooth1d version (because of the build issue?).
If you still cannot see a difference after a successful build, please post your joint acceleration and velocity settings.
Please Log in or Create an account to join the conversation.
Time to create page: 1.633 seconds