linuxcnc trajectory planner

More
24 Oct 2024 17:34 #313118 by tiagounderground
Replied by tiagounderground on topic linuxcnc trajectory planner
it seens to be working now

gcode loaded items: 14
gcode ready to be processed in thread.
set your gui maxvel to zero. Then the machine won't move when saving the gcode.
init curves done.
trim curves done.
added inbetween segments:10
Gcode file ready, filename:../../../cmake/validate_1142171910.ngc
thread completed.
The following user(s) said Thank You: Grotius, Aciera

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
24 Oct 2024 18:20 #313126 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi,

Thanks TiaUnderGround for testing the script.
Glad that is run's.

I hope Arciera's install will also run now.

In the cmake dir, i changed the tinyspline source code to be libtinyspline.
It now compiles to libtinyspline.so and is installed in ~/rtlib
motmod.so uses libtinyspline to create fillets. This is temponairy.

Next will create libfilletizer wich then can be used by the trajectory planner "tpmod.so".

Then the edited motion component "motmod.so" wich we used for displaying the filletizer algoritme can be
left in the project as is. This edited component can be used to verify filletizer outputs when source code
has changed.

We can load the original "motmod.so" once again and can now focus
on the trajectory planner "tpmod.so" code.

We have soon the ingredients complete.
The following user(s) said Thank You: akb1212, tiagounderground

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

More
24 Oct 2024 18:59 #313137 by bkt
Replied by bkt on topic linuxcnc trajectory planner
he Grotius ... sorry for stupid question ... not read all post of these thread .... but is possible to install these project or only rip-install? can damage somethings if try on little scara your code? custom kins is the same as 2.10?

regards
The following user(s) said Thank You: Grotius

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
24 Oct 2024 19:12 #313140 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Bkt,

You can install it "rip" only, but you can not run the new trajectory planner. It's still being coded.

custom kins is the same as 2.10?
I don't know wich kins versions are in. Its a recent linuxcnc git clone.
The following user(s) said Thank You: bkt

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
25 Oct 2024 05:32 - 25 Oct 2024 05:38 #313182 by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Still doesn't work without copying 'liblinuxcnchal.so.0' to 'root/lib':
tpmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory
Last edit: 25 Oct 2024 05:38 by Aciera.
The following user(s) said Thank You: Grotius

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
25 Oct 2024 08:46 #313188 by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Just reinstalled the OS (LMDE 6) and while my regular linuxcnc rip install works I still have to copy copying 'liblinuxcnchal.so.0' to 'root/lib' to get it to start from your repo.
The following user(s) said Thank You: Grotius

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
25 Oct 2024 10:46 - 25 Oct 2024 10:48 #313191 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,

Thanks for trying this out.
Maybe i have an idea.

I can check the regular make process --verbose output.
Remove one lib from the rtlib that uses liblinuxcnchal.
Then invoke a make --verbose command and check the output.
In this output we can see compile flags. Then maybe we miss a compile flag.

If we miss a compile flag, we add it to the edited motmod.so or tpmod.so (cmake projects)

Let you know soon!
Last edit: 25 Oct 2024 10:48 by Grotius.

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
25 Oct 2024 13:11 #313211 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,

For test, i removed homemod.so from the rtlib and did :
~/linuxcnc_trajectory_planner/src$ make BUILD_VERBOSE=1

Output of this:
Reading 203/203 dependency files
Done reading dependencies
Reading 266/266 realtime dependency files
Done reading realtime dependencies
Linking ../rtlib/homemod.so
ld -d -r -o objects/homemod.tmp objects/rtemc/motion/homemod.o objects/rtemc/motion/homing.o
objcopy -j .rtapi_export -O binary objects/homemod.tmp objects/homemod.sym
(echo '{ global : '; tr -s '\0' < objects/homemod.sym | xargs -r0 printf '%s;\n' | grep .; echo 'local : * ; };') > objects/homemod.ver
gcc -shared -Bsymbolic -Wl,--version-script,objects/homemod.ver -o ../rtlib/homemod.so objects/rtemc/motion/homemod.o objects/rtemc/motion/homing.o -lm -L/home/user/linuxcnc_trajectory_planner/lib -Wl,-rpath,/home/user/linuxcnc_trajectory_planner/lib -ltirpc  -lgpiod
chmod -x ../rtlib/homemod.so
You now need to run 'sudo make setuid' in order to run in place with access to hardware.
-Wl,
is a prefix used to pass options directly to the linker.
-rpath,/home/user/linuxcnc_trajectory_planner/lib
sets the runtime library search path for the executable

Now these are added here and here we have to use
${SRC_DIR}
as this is the cmakelists.txt current directory.
Relative from here the filepath is compiled with it.

I hope this solves the problem.
The following user(s) said Thank You: Aciera

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

  • Aciera
  • Aciera's Avatar
  • Away
  • Administrator
  • Administrator
More
25 Oct 2024 15:17 #313218 by Aciera
Replied by Aciera on topic linuxcnc trajectory planner
Unfortunately it doesn't seem to solve the issue:
tpmod: dlopen: liblinuxcnchal.so.0: cannot open shared object file: No such file or directory

But maybe we shouldn't worry about this too much at present as it can be fixed by copying 'liblinuxcnchal.so.0' to 'root/lib'
The following user(s) said Thank You: Grotius

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

  • Grotius
  • Grotius's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
25 Oct 2024 21:12 #313233 by Grotius
Replied by Grotius on topic linuxcnc trajectory planner
Hi Arciera,

Had the same error's as you had, can not find liblinuxcnchal.so.0
But before that, i had symbol errors. Can not find tp....

Now after a few moments... it works here.
It looks to me like building liblinuxcnchal, motmod and tpmod must have a build order to properly be linked.
Therefore liblinuxcnc hal is now also build by the cmake system, to avoid errors.

Belos is a new clone from the linuxcnc repository. History can be seen now. And we can synchronize so now and then.
Then added the cmake dir and scripts to it. It seems to work now.

linuxcnc

It builds the original motmod, as we now can focus on the tpmod.



 
The following user(s) said Thank You: Aciera

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

Time to create page: 0.091 seconds
Powered by Kunena Forum