Package | Description |
---|---|
iRobotCreate.simulator |
This package offers a simulator environment for these robots.
|
Modifier and Type | Class and Description |
---|---|
class |
CameraObservableCircle |
class |
CameraObservableObject |
class |
CameraObservableTriangle |
class |
DecoratorObject |
class |
MovablePhysObject |
class |
Puck |
class |
RobotSimulator
This class is the one that actually simulates an iRobot Create robot.
|
Modifier and Type | Field and Description |
---|---|
(package private) PhysObject |
DecoratorObject.component |
(package private) PhysObject |
Environment.SimulationPanel.focusObject |
private PhysObject |
Environment.wallE |
private PhysObject |
Environment.wallN |
private PhysObject |
Environment.wallS |
private PhysObject |
Environment.wallW |
Modifier and Type | Field and Description |
---|---|
(package private) Set<PhysObject> |
Environment.allPhysObjects
The list of all PhysObjects that are to displayed in the environment.
|
Modifier and Type | Method and Description |
---|---|
PhysObject |
Environment.getObject(String name)
Finds the first object with the given name.
|
Modifier and Type | Method and Description |
---|---|
Set<PhysObject> |
Environment.findObjectIn(Area oarea)
Finds any object that intersects with the given area.
|
(package private) Set<PhysObject> |
Environment.findOverlap(PhysObject o,
Shape oshape)
Finds any object that intersect with the parameter object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Puck.allowMovement(PhysObject obj,
Shape from,
Shape to) |
boolean |
PhysObject.allowMovement(PhysObject obj,
Shape from,
Shape to)
Meant to indicate whether an object can be moved by an impact with another object or not.
|
protected short |
RobotSimulator.computeCliffSignal(Shape s,
PhysObject obj)
Calculates the cliff signal, ranging from 0 to 1000.
|
protected void |
RobotSimulator.encounteredCliff(PhysObject cliff) |
protected void |
Puck.encounteredCliff(PhysObject cliff) |
protected abstract void |
MovablePhysObject.encounteredCliff(PhysObject cliff)
This method will be called at least once during an update cycle to indicate
and encounter with a cliff object: once
per encounter, and if there is no encounter, once only with a null parameter.
|
protected void |
RobotSimulator.encounteredVWall(PhysObject vWall) |
protected void |
Puck.encounteredVWall(PhysObject vWall) |
protected abstract void |
MovablePhysObject.encounteredVWall(PhysObject vWall)
This method will be called at least once during an update cycle to indicate
and encounter with a virtual wall: once
per encounter, and if there is no encounter, once only with a null parameter.
|
(package private) Set<PhysObject> |
Environment.findOverlap(PhysObject o,
Shape oshape)
Finds any object that intersect with the parameter object.
|
private static int |
CameraObservableTriangle.fixRadius(PhysObject o,
int radius) |
private static int |
CameraObservableCircle.fixRadius(PhysObject o,
int radius) |
void |
Environment.invalidate(PhysObject o)
The objects let this class know they have changed through this method.
|
private static Shape |
CameraObservableTriangle.makeShape(PhysObject o,
int radius) |
private static Shape |
CameraObservableCircle.makeShape(PhysObject o,
int radius) |
void |
Environment.registerObject(PhysObject o)
Registers an object for later painting an processing by placing it in
Environment.allPhysObjects . |
(package private) void |
RobotSimulator.setCliff(PhysObject obj)
Set the cliff sensors according to the parameter
PhysObject . |
(package private) void |
Environment.unregisterObject(PhysObject o)
Unregisters an object by removing it from
Environment.allPhysObjects |
Constructor and Description |
---|
CameraObservableCircle(PhysObject decoratedObject,
String name,
int radius,
camera.Colors color,
boolean persistent) |
CameraObservableObject(PhysObject decoratedObject,
String name,
Shape shape,
camera.Colors color,
String shapeName,
boolean persistent) |
CameraObservableTriangle(PhysObject decoratedObject,
String name,
int radius,
camera.Colors color,
boolean persistent) |
DecoratorObject(PhysObject decoratedObject,
String name,
Shape shape) |
DecoratorObject(PhysObject decoratedObject,
String name,
Shape shape,
Color color,
boolean persistent) |