protected void CancelCallback(Messages.Actionlib.GoalID actionGoalId) { if (ActionState == ActionStates.Active) { ActionState = ActionStates.Preempting; ActionGoalId = actionGoalId; thread.Abort(); ActionState = ActionStates.Preempted; } }
public GoalStatus() { goal_id = new GoalID(); status = 0; text = ""; }
public void CancelGoal() { ActionGoalId = new Messages.Actionlib.GoalID(); rosSocket.Publish(CancelPublicationId, ActionGoalId); }