These pages are auto-generated from self-documenting comments embedded in class files.
For more information on breve and steve, refer to the breve homepage.

Link : BraitenbergSensor

This class is included as part of the file Braitenberg.tz.
To use this class in a simulation, include the line "@use Braitenberg."

Class description:

A BraitenbergSensor is used in conjunction with BraitenbergVehicle to build Braitenberg vehicles. This class is typically not instantiated manually, since BraitenbergVehicle creates one for you when you add a sensor to the vehicle.

NOTE: this class is included as part of the file "Braitenberg.tz".

Class methods:

Linking the Sensor to a Wheel

Configuring the Sensor Values


link to w (object)

Associates this sensor with wheel w.


set-activation-method to m (string) in-object o (object)

This method specifies an activation method for the sensor. An activation method is a method which takes as input the strength read by the sensor, and as output returns the strength of the signal which will travel on to the motor.

Your activation function should be defined as:

 + to activation-function-name with-sensor-strength s (float): 

The default activation method is linear, but more complex vehicles may require non-linear activation functions.


set-bias to d (float)

Sets the "bias" of this sensor. The default bias is 1, meaning that the sensor has a positive influence on associated wheels with strength 1. You can change this to any magnitude, positive or negative.


set-sensor-angle to n (float)

Sets the angle in which this sensor can detect light. The default value of 1.5 means that the sensor can see most of everything in front of it. Setting the value to be any higher leads to general wackiness, so I don't suggest it.


Documentation created Sun Oct 7 19:13:02 2007