ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Creating a ROS Driver to interface with an open source controlled robot arm

asked 2019-07-14 15:42:16 -0600

Wireline gravatar image

updated 2019-07-14 15:49:12 -0600

Hi

I have started the research process for getting ROS to send trajectory data to a control box for a 6DOF robot arm, built around 6 STM32 based servo drives. Between the drives / motion control board and the PC is a Mesa Electronics Ethernet Anything I/O card. At present there is a CNC program that talks to the i/O card over ethernet, and encodes its trajectory data, generated from gcode, via UDP packets.

However the UDP protocol the mesa cards uses is proprietary, called LBP16, for which I have a detailed breakdown that I am yet to understand. Wireshark cannot understand it out of the box, so I am guessing that most operating systems would also not be able to use it without a specific module or library. I do not want to use the CNC program, but rather to have ROS linked directly to the controllers.

As the I/O card is using a proprietary UDP protocol, is it going to be necessary to code this into the ROS driver? Or would I need some separate program that translates the trajectory data into the correct UDP protocol?

Apologies if this seems vague, I am at the stage of beginning to understand the problem, and also to get some sense of how big an undertaking it will be. Certainly industrial ROS drivers such as the one for motoman seem to be extremely weighty programs.

I am using kinetic on Ubuntu 16.04 but am not tied to that combination.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-07-15 00:48:27 -0600

gvdhoorn gravatar image

Seeing as you're using Mesa hardware and have "a CNC program talking to the card" (LinuxCNC?) you might want to take a look at the work done in Machinekit towards integration with ROS.

Some links:

edit flag offensive delete link more

Comments

Thank you for the suggestion. I should have mentioned that I have already looked into MK and want to avoid using it. It operates by using the HAL ringbuffer within MK (which LCNC does not possess), and whilst it does work, I want to look into writing a driver that completely eliminates CNC programs and allows ROS to talk to the robot directly.

MK has the same implementation of LBP16 as LinuxCNC, so I would still like to know if it will be necessary to write a separate implementation of LBP16 if just using a standalone driver. Also same question as before, will writing a driver for an arm controller be a considerable undertaking?

Thanks!

Wireline gravatar image Wireline  ( 2019-07-15 12:58:49 -0600 )edit

I should have mentioned that I have already looked into MK

yes, you should have.

and want to avoid using it.

can you provide some rationale as to why you want to avoid it?

You're going to need a real-time execution environment, trajectory generation and execution, real-time (re)sampling and state reporting. You could write all of that yourself, or re-use something that already exists.

gvdhoorn gravatar image gvdhoorn  ( 2019-07-15 13:49:00 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-07-14 15:42:16 -0600

Seen: 778 times

Last updated: Jul 15 '19