Re: Braitenberg Vehicle Tutorial - "set-bias" related question
b n <[email protected]>
| Newsgroups | gmane.comp.breve |
|---|---|
| Message-ID | <[email protected]> |
I am new to Breve and have been playing with the
Braitenberg Vehicle Tutorial.
I have a question regarding the set-bias function of
the vehicle.
The tutorial states that the set-bias function can be
used to "slow down" the vehicle speed by setting a
negitive bias on the Sensors.
Well, I am able to see this behaviour. But what I
noticed is the following :
When I use a negative bias of say -1.0, I notice that
the Vehicle NO LONGER "gobbles up" the light source,
as it does when I use a positive bias to for the
sensors.
Is this expected behaviour or am I missing something.
Here is the modified code that I am using to run my
simulation.
TIA
BN
------ Included Code Segment -------------------
@use Braitenberg.
Controller myBraitenbergControl.
BraitenbergControl : myBraitenbergControl {
+ variables:
vehicle (object).
leftSensor, rightSensor (object).
leftWheel, rightWheel (object).
light (object)
+ to init:
light = new BraitenbergLight.
light move to (10, 1, 0).
vehicle = new BraitenbergVehicle.
self watch item vehicle.
leftWheel = (vehicle add-wheel at ( 0,0,
1.5)).
rightWheel = (vehicle add-wheel at (0,0,
-1.5)).
leftSensor = ( vehicle add-sensor at
(2.0,0,1.5)).
rightSensor = (vehicle add-sensor at (2.0,0,
-.5)).
leftSensor link to rightWheel.
rightSensor link to leftWheel.
leftWheel set-natural-velocity to 0.5.
rightWheel set-natural-velocity to 0.5.
leftSensor set-bias to -0.1.
rightSensor set-bias to -0.1.
}
-------- End of code Segment --------------
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail
_______________________________________________
breve mailing list
[email protected]
http://www.spiderland.org/mailman/listinfo/breve