private void OnLearningActionResult(LearningRequestActionResultMsg msg) { //if result ID is identical with request ID if (msg.GetStatus().GetGoalID().GetID().Equals(currentRequestID) && msg.GetStatus().GetStatus() == GoalStatusMsg.Status.SUCCEEDED && msg.GetResult().GetSuccess() == true) { waiting_for_action_response = false; } }
public static void SetLearningRequestActionResult(LearningRequestActionResultMsg msg) { learningResult = msg; Debug.Log(learningResult.ToYAMLString()); if (OnLearningActionResult != null) { OnLearningActionResult(learningResult); } }
public new static void CallBack(ROSBridgeMsg msg) { LearningRequestActionResultMsg Lmsg = (LearningRequestActionResultMsg)msg; ROSActionHelper.SetLearningRequestActionResult(Lmsg); }