- LinuxCNC
- General LinuxCNC Questions
- How would you design a real time application for cnc control in c / c++ ???
How would you design a real time application for cnc control in c / c++ ???
I also tried to build on a fresh ISO install.
I actually take that back I tried again and it compiles on a fresh install of your ISO.
I think you have to look at the pro.user file of the project
I guess you meant the .pro file with the include paths.
[edit]
Problem is that I don't understand why I can't find kdl since the setup only differs in respect to lcnc.
Thanks
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
I actually take that back I tried again and it compiles on a fresh install of your ISO.
Using Grotius's robot project with the Orocos Kinematics, can you use the G-Code RoboDK post processor?
Please Log in or Create an account to join the conversation.
To run my mitsubishi drives I need to build a Run in Place install. I have been advised to remove the LCNC installed on the system when running RIP installs and I have not been able to compile Grotius project on this system yet as some libraries have different paths.
I guess I could just reinstall everthing again and leave the installed LCNC instance on the system.
[edit]
The problem of being able to switch between trivial and coordinated kinematics using KDL will also need to be adressed.
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
Please Log in or Create an account to join the conversation.
yurtaev.com/
He then kindly incorporated dewey garretts "switchkins"-branch into his patched version for me to build on top of Grotius ISO that has all the necessary QT, KDL and orocos installations in it.
Please Log in or Create an account to join the conversation.
- thefabricator03
- Offline
- Platinum Member
- Posts: 1130
- Thank you received: 533
Please Log in or Create an account to join the conversation.
Ok. Finally just reinstalled everything and now I have LCNC working AND the Skynet_project compiled.
I'm now a bit at a loss as to how to get LCNC and Skynet working together. LCNC crashes as soon as I run Skynet and Skynet crashes as soon as I start LCNC.
Sorry for being slow on the uptake again but I would appreciate it if you could provide a bit more guidance.
Thank you.
[edit]
In QT I get
HAL: ERROR: duplicate thread name servo-thread
I guess LCNC and Skynet are trying to set up HAL.
[edit2]
Does this only work with Ethercat?
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Just had a bit of a think:
Looks to me like Skynet uses HAL to load the rt components by itself so I would not, and indeed could not, run LCNC along with it?
[edit]
I noticed this comment in ethercat.hal:
If lcnc is master, we don't need to load threads
So would it be possible to start lcnc and then have skynet plug into the running instance of lcnc through the created halpins?
Please Log in or Create an account to join the conversation.
Hi Arciera,
To run it with Lcnc just look at this release : github.com/grotius-cnc/Skynet_Robot_Cont.../releases/tag/1.0.15
There are about 20 releases in total now.
Each release just show's something different. (just as a timeline)
In the above release the project is running alongside lcnc. Read the github release page.
In later versions it run't without lcnc. In the 2 zip file is the code.
The main thing is to replace in the ini file, axis with your app, then it will run lcnc trough the ini file.
Minimal required to load lcnc trough ini file is loading motdot. You will see this in the config in the zip files.
I'm now a bit at a loss as to how to get LCNC and Skynet working together. LCNC crashes as soon as I run Skynet and Skynet crashes as soon as I start LCNC.
That's correct with later releases.
Does this only work with Ethercat?
It works without Etercat, just outcomment ethercat pins etc. in the ethercat hal file. You can connect a mesa or lpt1 as normal.
The overall problem of the first releases is the actual realtime performance.
The best performance was during the latest release. Where the timer had no pause interval. This results in a more complex
motion controller. But for testing it's nice to try.
In this latest release the last line of the kinematic model has a tiny typo, repared over here.here :
Ok. Finally just reinstalled everything and now I have LCNC working AND the Skynet_project compiled.
Oke nice. Ps, i alway's leave the orginal lcnc besides a rip install.
In general don't expect a 100% working robot controller. If you can run the latest release, you can test in my view the best possible
realtime performance. That would be a basis to move on from.
**
I guess you meant the .pro file with the include paths.
There is also a .pro.user file. Your error picture showed my directory structure : home/user/... That correpondent's your error output.
I think you have something like home/arciera/... So that's a problem with links inside the pro.user file.
What i must do next time is distribute it without the user.pro file. Then you must configure the project when qt is started. This will
setup correct filepath's for you. So deleting the pro.user file would fix your problem in the future.
**
The problem of being able to switch between trivial and coordinated kinematics using KDL will also need to be adressed.
Just give me a detailled practical example of the problem. Then i can think about it.
Have a nice day !
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- How would you design a real time application for cnc control in c / c++ ???