You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

package IndoorNavigationWaypointTracing.MultiAgentSystem;
import IndoorNavigationWaypointTracing.Launch;
import agentBehaviourPrototype.ExecutionBehaviour;
import agentBehaviourPrototype.ReceiveDataFromAgentBehaviour;
import agentBehaviourPrototype.SendDataToAgentBehaviour;
import agentBehaviourPrototype.ReceiveDataFromROSBehaviour;
import agentEntityPrototype.RobotAgent;
import edu.wpi.rail.jrosbridge.services.std.Empty.Request;
import jade.core.AID;
public class MoveAgent extends RobotAgent
{
private AID PlanDispatchAgent = new AID("PlanDispatchAgent", false);
protected void setup() {
//automatically generated
this.controller.addTopic(Launch.actionDispatchFeedbackTopicName, Launch.actionDispatchFeedbackTopicType);
//agent communication
this.behList.addElement(new SendDataToAgentBehaviour(this, controller, PlanDispatchAgent, Launch.actionFeedbackDataKey));
this.behList.addElement(new ReceiveDataFromROSBehaviour(this, controller, Launch.actionDispatchFeedbackTopicName, Launch.actionDispatchDataKey));
addBehaviour(tbf.wrap(new ExecutionBehaviour(this, ds, this.behList)));
}
}