ROS LinuxCNC Link

  • thefabricator03
  • Topic Author
  • New Member
  • New Member
More
5 years 7 months ago #203767 by thefabricator03
Replied by thefabricator03 on topic ROS LinuxCNC Link
Thanks Andy, I appreciate the reply.

In your opinion, what advantages do you see in how MachineKit has its own HAL only program and running LinuxCNC with HAL standalone?

ROS would be commanding joint positions and controlling the motion planing and LinuxCNC would be used for controlling the hardware and I would need a GUI connecting everything together.

I would like to create a Python based programming language for controlling the robots rather than G-Code. Tormach are doing this with their new robot. Would I have to write a new interpreter for this?

Sorry for all the basic questions but I am a non programmer trying to work out what is needed to make something like this work.

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

More
5 years 7 months ago #203792 by andypugh
Replied by andypugh on topic ROS LinuxCNC Link

thefabricator03 wrote: Thanks Andy, I appreciate the reply.

In your opinion, what advantages do you see in how MachineKit has its own HAL only program and running LinuxCNC with HAL standalone?


I am not an expert on Machinekit, but I think that their change was purely packaging, making it possible to install HAL without the rest of LinuxCNC. Otherwise the function is the same.
The following user(s) said Thank You: thefabricator03

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

More
5 years 7 months ago - 5 years 7 months ago #203794 by Grotius
Replied by Grotius on topic ROS LinuxCNC Link
Hi,

I would like to create a Python based programming language for controlling the robots rather than G-Code
This is ok.

The most easy way to start is run Linucnc. Sent some python coded joint position's to the nml interface.
You can do for example, sent joint positions trough halcommand or halui. Halui is very close to nml.
Halui command's are very usefull.

Imagine linuxcnc as a pid controller.
And see what happens. I worked kind of this way to get a gremlin preview in axis that the command's works.

Step 2 would be connect the Ros output command's to nml or your custom python program.

Step 3 would be use ros & hal only. etc.

So step by step you will get it running.
Last edit: 5 years 7 months ago by Grotius.
The following user(s) said Thank You: thefabricator03

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

  • thefabricator03
  • Topic Author
  • New Member
  • New Member
More
5 years 7 months ago #203795 by thefabricator03
Replied by thefabricator03 on topic ROS LinuxCNC Link
Thank you Grotius, That has answered all my questions. Now its time to get to work!

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

More
5 years 7 months ago #203796 by Grotius
Replied by Grotius on topic ROS LinuxCNC Link
Hi,

For info. In python you can do a system command.
For example : "halcmd setp ..." as a system command will work.

This is not very elegant, but it helps you in the process.

If you need any python examples how to set up port's and pin's. I have them somewhere on my hdd.
The following user(s) said Thank You: thefabricator03

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

  • thefabricator03
  • Topic Author
  • New Member
  • New Member
More
5 years 7 months ago #203797 by thefabricator03
Replied by thefabricator03 on topic ROS LinuxCNC Link
Thanks,

If you could post the examples in this thread when you get a spare minute I am sure it will help more that just myself.

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

Time to create page: 0.257 seconds
Powered by Kunena Forum