Package rjs.arch.actions.ros
Class 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>
- java.lang.Object
-
- rjs.arch.actions.ros.RjsActionClient<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT>
-
public class 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> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private com.github.rosjava_actionlib.ActionClient<T_ACTION_GOAL,T_ACTION_FEEDBACK,T_ACTION_RESULT>actionClientprotected java.util.logging.Loggerloggerprivate java.lang.StringtopicName
-
Constructor Summary
Constructors Constructor Description RjsActionClient(org.ros.node.ConnectedNode connectedNode, java.lang.String topic, java.lang.String typeActionGoal, java.lang.String typeActionFeedback, java.lang.String typeActionResult)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT> actionListener)booleancheckServerConnected(double seconds)static java.lang.StringgetGoalStatus(actionlib_msgs.GoalStatus goalStatus)T_ACTION_GOALnewGoalMessage()voidremoveListener(com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT> actionListener)voidsendCancel(actionlib_msgs.GoalID goalID)actionlib_msgs.GoalIDsendGoal(T_ACTION_GOAL actionGoal)
-
-
-
Field Detail
-
logger
protected java.util.logging.Logger logger
-
actionClient
private com.github.rosjava_actionlib.ActionClient<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> actionClient
-
topicName
private java.lang.String topicName
-
-
Method Detail
-
checkServerConnected
public boolean checkServerConnected(double seconds)
-
newGoalMessage
public T_ACTION_GOAL newGoalMessage()
-
sendGoal
public actionlib_msgs.GoalID sendGoal(T_ACTION_GOAL actionGoal)
-
sendCancel
public void sendCancel(actionlib_msgs.GoalID goalID)
-
addListener
public void addListener(com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT> actionListener)
-
removeListener
public void removeListener(com.github.rosjava_actionlib.ActionClientListener<T_ACTION_FEEDBACK,T_ACTION_RESULT> actionListener)
-
getGoalStatus
public static java.lang.String getGoalStatus(actionlib_msgs.GoalStatus goalStatus)
-
-