Package cmion.addOns.samgar
Class SamgarCompetency
- java.lang.Object
-
- ion.Meta.Element
-
- cmion.architecture.CmionComponent
-
- cmion.level2.Competency
-
- cmion.addOns.samgar.SamgarCompetency
-
- All Implemented Interfaces:
java.lang.Runnable
- Direct Known Subclasses:
LocalizeSamgarCompetency,NavigationSamgarCompetency,TestSamgarCompetency,TestSamgarCompetency2
public abstract class SamgarCompetency extends cmion.level2.CompetencyThe abstract super class for cmion competencies that can communicate with a Samgar module. Every competency that is listed in the competency library file as SamgarCompetency should inherit from this class
-
-
Constructor Summary
Constructors Constructor Description SamgarCompetency(cmion.architecture.IArchitecture architecture)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidinitialize()in here we initialize the yarp portabstract voidonRead(yarp.Bottle bottle_in)every samgar competency has to implement this function in which it will receive bottles that the connected samgar module sendsprotected yarp.BottleprepareBottle()every Samgar competency can use this function to acquire a bottle that the module can subsequently fill with data and that will be sent to the connected Samgar module upon calling sendBottle()protected voidsendBottle()every Samgar competency can use this function to send a bottle (that has been retrieved previously through a call of prepareBottle() to the connected Samgar modulevoidsetAdditionalData(java.lang.Object data)-
Methods inherited from class cmion.level2.Competency
cancel, competencyCode, getCompetencyName, getCompetencyType, isAvailable, isRunning, registerHandlers, requestStartCompetency, run, runsInBackground
-
Methods inherited from class cmion.architecture.CmionComponent
getArchitecture, isConnected, onDestroy, raise
-
-
-
-
Method Detail
-
setAdditionalData
public void setAdditionalData(java.lang.Object data)
- Overrides:
setAdditionalDatain classcmion.level2.Competency
-
initialize
public final void initialize()
in here we initialize the yarp port- Specified by:
initializein classcmion.level2.Competency
-
prepareBottle
protected final yarp.Bottle prepareBottle()
every Samgar competency can use this function to acquire a bottle that the module can subsequently fill with data and that will be sent to the connected Samgar module upon calling sendBottle()
-
sendBottle
protected final void sendBottle()
every Samgar competency can use this function to send a bottle (that has been retrieved previously through a call of prepareBottle() to the connected Samgar module
-
onRead
public abstract void onRead(yarp.Bottle bottle_in)
every samgar competency has to implement this function in which it will receive bottles that the connected samgar module sends
-
-