Skip to content

How to talk to Yarp by means of the MATLAB Instrument Control Toolbox

License

Notifications You must be signed in to change notification settings

simeonedussoni/yarp2IC

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yarp2IC

These scripts demonstrate how to easily interface YARP with MATLAB/Simulink without relying on Java bindings.

To this end we can profitably exploit the Instrument Control Toolbox which provides a simple access to sockets, in particular through the tcpip function. Having a socket in MATLAB enables us to directly talk to YARP according to the rules described here.

Just for testing purpose, a Simulink model is available to read from and write to YARP world.

model

Instructions

Launch the following commands in three different shells:

$1> yarpserver
$2> yarp write /write
$3> yarp read /read

Then, open up the block Settings and enter the correct values.

Finally, run the simulation and type any two numbers in the shell where you've opened the /write port. Check out the model's display as well as the /read port output.

Have fun 🎉

About

How to talk to Yarp by means of the MATLAB Instrument Control Toolbox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%