Package rjs.arch.actions
Class AbstractClientAction<T_ACTION_GOAL extends org.ros.internal.message.Message,T_ACTION_FEEDBACK extends org.ros.internal.message.Message,T_ACTION_RESULT extends org.ros.internal.message.Message>
- java.lang.Object
-
- rjs.arch.actions.AbstractAction
-
- rjs.arch.actions.AbstractClientAction<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT>
-
- All Implemented Interfaces:
com.github.rosjava_actionlib.ActionClientFeedbackListener<T_ACTION_FEEDBACK>,com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT>,com.github.rosjava_actionlib.ActionClientResultListener<T_ACTION_RESULT>,com.github.rosjava_actionlib.ActionClientStatusListener,Action
public abstract class AbstractClientAction<T_ACTION_GOAL extends org.ros.internal.message.Message,T_ACTION_FEEDBACK extends org.ros.internal.message.Message,T_ACTION_RESULT extends org.ros.internal.message.Message> extends AbstractAction implements com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT>
-
-
Field Summary
Fields Modifier and Type Field Description private actionlib_msgs.GoalIDgoalIDprotected RjsActionClient<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT>rjsActionClient-
Fields inherited from class rjs.arch.actions.AbstractAction
actionExec, actionName, actionTerms, logger, rosAgArch, sync
-
-
Constructor Summary
Constructors Constructor Description AbstractClientAction(jason.asSemantics.ActionExec actionExec, AbstractROSAgArch rosAgArch, RjsActionClient<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT> actionClient)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidaddGoalStatusInBB()voidcancelActiveGoal()abstract T_ACTION_GOALcomputeGoal()voidexecute()T_ACTION_GOALnewGoalMessage()protected voidremoveGoalStatusInBB()voidresultReceived(T_ACTION_RESULT result)voidsendGoal(T_ACTION_GOAL actionGoal)private voidsetJasonActionResult(boolean resultSuccess)protected abstract voidsetResultAborted(T_ACTION_RESULT result)protected abstract voidsetResultSucceeded(T_ACTION_RESULT result)voidstatusReceived(actionlib_msgs.GoalStatusArray arg0)-
Methods inherited from class rjs.arch.actions.AbstractAction
getActionTerm, getRosNode, handleFailure, isSync, setActionExecuted, setSync
-
-
-
-
Field Detail
-
rjsActionClient
protected RjsActionClient<T_ACTION_GOAL extends org.ros.internal.message.Message,T_ACTION_FEEDBACK extends org.ros.internal.message.Message,T_ACTION_RESULT extends org.ros.internal.message.Message> rjsActionClient
-
goalID
private actionlib_msgs.GoalID goalID
-
-
Constructor Detail
-
AbstractClientAction
public AbstractClientAction(jason.asSemantics.ActionExec actionExec, AbstractROSAgArch rosAgArch, RjsActionClient<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT> actionClient)
-
-
Method Detail
-
computeGoal
public abstract T_ACTION_GOAL computeGoal()
-
sendGoal
public void sendGoal(T_ACTION_GOAL actionGoal)
-
cancelActiveGoal
public void cancelActiveGoal()
-
resultReceived
public void resultReceived(T_ACTION_RESULT result)
- Specified by:
resultReceivedin interfacecom.github.rosjava_actionlib.ActionClientResultListener<T_ACTION_GOAL extends org.ros.internal.message.Message>
-
statusReceived
public void statusReceived(actionlib_msgs.GoalStatusArray arg0)
- Specified by:
statusReceivedin interfacecom.github.rosjava_actionlib.ActionClientStatusListener
-
newGoalMessage
public T_ACTION_GOAL newGoalMessage()
-
setResultSucceeded
protected abstract void setResultSucceeded(T_ACTION_RESULT result)
-
setResultAborted
protected abstract void setResultAborted(T_ACTION_RESULT result)
-
addGoalStatusInBB
protected void addGoalStatusInBB()
-
removeGoalStatusInBB
protected void removeGoalStatusInBB()
-
setJasonActionResult
private void setJasonActionResult(boolean resultSuccess)
-
-