public void handleFeedback(ClientGoalHandle <ActionSpec> gh, AFeedback feedback)
        {
            if (goalHandle != gh)
            {
                ROS.Error("actionlib", @"Got a callback on a goalHandle that we're not tracking.
					This is an internal SimpleActionClient/ActionClient bug.
					This could also be a GoalID collision"                    );
            }
            if (feedbackCallback != null)
            {
                feedbackCallback(feedback);
            }
        }
Ejemplo n.º 2
0
        public void updateFeedback(ClientGoalHandle <ActionSpec> gh, AActionFeedback actionFeedback)
        {
            if (actionGoal.GoalID.id != actionFeedback.GoalStatus.goal_id.id)
            {
                return;
            }

            if (feedbackCallback != null)
            {
                AFeedback feedback = actionFeedback.Feedback.Clone();
                feedbackCallback(gh, feedback);
            }
        }