n***@gmail.com
2014-08-28 14:05:48 UTC
Hi everyone!
I'm trying to implement Robocode and JADE (http://jade.tilab.com/) library
to develop a multi-robot based in escorting and entrapment application
system using TeamRobot class, integrating Robocode robot as an agent,
behaviours extending Behaviour class from Jade and also FIPA-ACL to the
communication between the TeamRobot.
For example, to put an agent in society, I need to extend Agent native
class from jade in the myAgent class, but at the same I need to extend
Robot. How do implement to relate a Robot as an Agent? One more this: once
I got integrate those classes, is it possible develop FIPA-ACL
communication in robots?
Does someone know how to do it?
I'm really need help!
There are below something I've tried to do. In myAgent class I instantiated
myRobot object to try to get a connection between Robot and Agent. However,
I'm not true if I'm in the right way...
MyAgent Class: ------------------------
package BenderRobot;
import jade.core.Agent;
import robocode.*;
public class BenderAgent extends Agent{
protected void setup() {
BenderRobot bender = new BenderRobot();
bender.getRobotRunnable();
}
}
MyRobot Class:------------------------
package BenderRobot;
import robocode.*;
import jade.core.Agent;
//primeiras tentativas com robocode e jade
class BenderRobot extends Robot {
/* Robot robot = new Robot();
string name = robot.getName(); */
public void run() {
while(true) {
// Replace the next 4 lines with any behavior you would like
ahead(100);
turnGunRight(360);
back(100);
turnGunRight(360);
}
}
}
I'm trying to implement Robocode and JADE (http://jade.tilab.com/) library
to develop a multi-robot based in escorting and entrapment application
system using TeamRobot class, integrating Robocode robot as an agent,
behaviours extending Behaviour class from Jade and also FIPA-ACL to the
communication between the TeamRobot.
For example, to put an agent in society, I need to extend Agent native
class from jade in the myAgent class, but at the same I need to extend
Robot. How do implement to relate a Robot as an Agent? One more this: once
I got integrate those classes, is it possible develop FIPA-ACL
communication in robots?
Does someone know how to do it?
I'm really need help!
There are below something I've tried to do. In myAgent class I instantiated
myRobot object to try to get a connection between Robot and Agent. However,
I'm not true if I'm in the right way...
MyAgent Class: ------------------------
package BenderRobot;
import jade.core.Agent;
import robocode.*;
public class BenderAgent extends Agent{
protected void setup() {
BenderRobot bender = new BenderRobot();
bender.getRobotRunnable();
}
}
MyRobot Class:------------------------
package BenderRobot;
import robocode.*;
import jade.core.Agent;
//primeiras tentativas com robocode e jade
class BenderRobot extends Robot {
/* Robot robot = new Robot();
string name = robot.getName(); */
public void run() {
while(true) {
// Replace the next 4 lines with any behavior you would like
ahead(100);
turnGunRight(360);
back(100);
turnGunRight(360);
}
}
}
--
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robocode+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.