How to send position data to a robot arm through UDP?

I have a functioning Simulink model for a robot arm. Currently it receives data through UDP from a "game" hosted on a Windows PC (the robot arm functions in Real Time Linux). I would like to comunicate to the motors of the robot through a MATLAB code using the udp function, but I don't understand how this should be done. I know I have to create an object, and I have the address and port I want to send the data to, but WHAT do I have to write to say "bring the end effector to position (0,0,0)"?

1 Comment

Hi Ivana. Thanks for asking. Could you help us understand your setup by providing more detailed information? For example, you could say...
I have:
  • ZebraBot ZX-12 Robot Arm running Real Time Linux
  • A "game" running on Windows that controls the robot arm
  • A Simulink model of a Robot Arm
  • MATLAB code that uses the udp function to control the Simulink model
You might be able to discover the data format for controlling the robot arm by:
  • Reading the robot arm documentation
  • Sniffing UDP packets sent to the robot arm

Sign in to comment.

Answers (0)

Asked:

on 13 Sep 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!