|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object simbad.sim.Factory simbad.sim.RobotFactory
A helper class to aid building robot bodies and sensors. It only contains only static methods and thus should not be instanciated.
Constructor Summary | |
RobotFactory()
|
Method Summary | |
static RangeSensorBelt |
addBumperBeltSensor(Agent agent)
Adds a prebuild belt of bumpers sensor to the agent. |
static RangeSensorBelt |
addBumperBeltSensor(Agent agent,
int nbSensors)
Adds a prebuild belt of bumpers sensor to the agent. |
static CameraSensor |
addCameraSensor(Agent agent)
Adds a prebuild camera sensor to the agent. |
static LampActuator |
addLamp(Agent agent)
Adds a prebuild lamp actuator on the top of the agent . |
static LightSensor |
addLightSensor(Agent agent)
Adds a prebuild light sensor to the agent. |
static LightSensor |
addLightSensor(Agent agent,
javax.vecmath.Vector3d pos,
float angle,
java.lang.String label)
Adds a prebuild light sensor to the agent at a given position. |
static LightSensor |
addLightSensorLeft(Agent agent)
Adds a prebuild light sensor on the left of the agent . |
static LightSensor |
addLightSensorRight(Agent agent)
Adds a prebuild light sensor on the right of the agent . |
static RangeSensorBelt |
addSonarBeltSensor(Agent agent)
Adds a prebuild belt of sonar sensor to the agent. |
static RangeSensorBelt |
addSonarBeltSensor(Agent agent,
int nbSonars)
Adds a prebuild belt of sonar sensor to the agent. |
static DifferentialKinematic |
setDifferentialDriveKinematicModel(Agent agent)
Sets the kinematic model to be DifferentialDrive (instead of DefaultKinematic) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RobotFactory()
Method Detail |
public static CameraSensor addCameraSensor(Agent agent)
agent
-
public static RangeSensorBelt addSonarBeltSensor(Agent agent)
agent
-
public static RangeSensorBelt addSonarBeltSensor(Agent agent, int nbSonars)
agent
- nbSonars
- the number of sonars.
public static RangeSensorBelt addBumperBeltSensor(Agent agent)
agent
-
public static RangeSensorBelt addBumperBeltSensor(Agent agent, int nbSensors)
agent
- nbSensors
-
public static LightSensor addLightSensor(Agent agent)
agent
-
public static LightSensor addLightSensor(Agent agent, javax.vecmath.Vector3d pos, float angle, java.lang.String label)
agent
-
public static LightSensor addLightSensorLeft(Agent agent)
agent
-
public static LightSensor addLightSensorRight(Agent agent)
agent
-
public static LampActuator addLamp(Agent agent)
agent
-
public static DifferentialKinematic setDifferentialDriveKinematicModel(Agent agent)
agent
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |