YARPPort

Module that can read and write to an YARP network using the YARP PortablePair.
Data structure:
PortablePair <.Bottle,Vector>.

Head (Bottle part)
Bottle desc;
Bottle l; // Length of data
Bottle c; // Colums of data
Bottle r; // Rows of data

Body (Vector part)
Vector v(size_x*size_y); // data in float values

Example XML definition

A simple example

  <module
      class = "YARPPort"
      name = "SENDER"
      yarp_name = "/IkarosOUT"
      type = "sender"
      outputsize_x = "5"
      outputsize_y = "1"
  />

Parameters

NameDescriptionTypeDefault
classThe class name for the module; must be "YARPPort".string
nameThe name of this instance of the module.string
typeDefines if ikaros is sending or reciveing data to the YARP network.choices:
sender
receiver
sender
send_only_new_valuesIf set to false, the module will send for each tick. If true, it will send only if the input value is changedbooltrue
send_strictIf set to true, the module will wait untill yarp is ready to send the message. If false, it will continue without knowing if the message will be sent.boolfalse
receive_strictIf set to true, the module will read every message received from yarp. If false, it will only read if yarp is not busyboolfalse
size_xSize of the dataint
size_ySize of the dataint

Module Connections

Inputs

NameDescription
INPUTThe input

Outputs

NameDescription
OUTPUTThe output
YARP_ACTIVITYAn output that is 1 if we reading/sending data to the YARP network

Author

Birger Johansson
birger.johansson@lucs.lu.se
Lund University Cognitive Science

Files

YARPPort.h
YARPPort.cc
YARPPort.ikc

blog comments powered by Disqus