コード例 #1
0
 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;
     }
 }
コード例 #2
0
 public static void SetLearningRequestActionResult(LearningRequestActionResultMsg msg)
 {
     learningResult = msg;
     Debug.Log(learningResult.ToYAMLString());
     if (OnLearningActionResult != null)
     {
         OnLearningActionResult(learningResult);
     }
 }
コード例 #3
0
    public new static void CallBack(ROSBridgeMsg msg)
    {
        LearningRequestActionResultMsg Lmsg = (LearningRequestActionResultMsg)msg;

        ROSActionHelper.SetLearningRequestActionResult(Lmsg);
    }