Ejemplo n.º 1
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);
            }
        }
Ejemplo n.º 2
0
        public void updateFeedbacks(AActionFeedback actionFeedback)
        {
            lock ( lockObject )
            {
                var iter = list.GetIterator();
                while (iter.GetElement() != null)
                {
                    ClientGoalHandle <ActionSpec> gh = new ClientGoalHandle <ActionSpec> (this, iter.CreateHandle(), guard);
                    iter.GetElement().updateFeedback(gh, actionFeedback);
                    iter++;
                }
//				for ( int i = 0; i < list.Count; i++ )
//				foreach ( CommStateMachine<ActionSpec> item in list )
//				{
//					CommStateMachine<ActionSpec> item = list [ i ];
//					ClientGoalHandle<ActionSpec> gh = new ClientGoalHandle<ActionSpec> ( this, item.createHandle (), guard );
//					item.updateFeedback ( gh, actionFeedback );
//				}
            }
        }
 public ActionFeedbackDecorator(AActionFeedback af)
 {
     _actionFeedback = af;
 }