Re: vehicle navigation

"Anand Veeraswamy" <[email protected]> Wed, 7 Sep 2005 10:23:49 +0100
Newsgroups gmane.comp.breve
Message-ID <[email protected]>
This is a multi-part message in MIME format.

--===============90045250484858363==
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0038_01C5B396.3CE3DE40"

This is a multi-part message in MIME format.

------=_NextPart_000_0038_01C5B396.3CE3DE40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Thanks Jon that resolves my issue.
  ----- Original Message -----=20
  From: jon klein=20
  To: [email protected]=20
  Sent: Monday, September 05, 2005 4:19 PM
  Subject: Re: [breve] vehicle navigation




  On Sep 5, 2005, at 6:46 AM, Anand Veeraswamy wrote:


    But instead of using code inside the iterate method I would like to =
shift this code into a function=20
    that I can call from the init method. But in the functions which =
would be out of the iterate method,
    how can I implement the delay required to make the vehicle turn left =
for some time and then stop?

    Actually I have been able to implement a path finding algorithm and =
the path to be taken is in the=20
    form of a list of patches. Now I cannot use the for each method to =
run through the patches in=20
    the iterate function, right? I would like to run the for each method =
in the init function of mybraitenbergcontrol class.
    And for this I need a way to implement delay so that the vehicle can =
move left for some time and then move
    right etc.... and this should be done without the (controller =
get-time) .


  Sounds like you'll want to make use of the "schedule" method in the =
Object class.
  Since your strategy is to plan out a route ahead of time, you could, =
in the init
  method, schedule several methods to be called according to the route:


  self schedule method-call "turn-left" at-time 10.
  self schedule method-call "turn-right" at-time 20.
  self schedule method-call "turn-right" at-time 30.


  etc.


  - jon klein


-------------------------------------------------------------------------=
-----


  _______________________________________________
  breve mailing list
  [email protected]
  http://lists.spiderland.org/mailman/listinfo/breve

------=_NextPart_000_0038_01C5B396.3CE3DE40
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2722" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY=20
style=3D"WORD-WRAP: break-word; khtml-nbsp-mode: space; =
khtml-line-break: after-white-space"=20
bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Thanks Jon that resolves my =
issue.</FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV=20
  style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: =
black"><B>From:</B>=20
  <A [email protected] href=3D"mailto:[email protected]">jon =
klein</A>=20
</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A =
[email protected]=20
  href=3D"mailto:[email protected]">[email protected]</A> </DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, September 05, =
2005 4:19=20
  PM</DIV>
  <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [breve] vehicle=20
  navigation</DIV>
  <DIV><BR></DIV><BR>
  <DIV>
  <DIV>On Sep 5, 2005, at 6:46 AM, Anand Veeraswamy wrote:</DIV><BR=20
  class=3DApple-interchange-newline>
  <BLOCKQUOTE type=3D"cite">
    <DIV><FONT face=3DArial size=3D2>But&nbsp;instead of&nbsp;using code =
inside the=20
    iterate method I would like to shift this code into a function =
</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>that I can call from the init =
method. But in=20
    the&nbsp;functions which would be out of the iterate =
method,</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>how can I implement the delay =
required&nbsp;to=20
    make the vehicle turn left for some time and then stop?</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
    <DIV><FONT face=3DArial size=3D2>Actually I have been able to =
implement a path=20
    finding algorithm and the path to be taken is in =
the&nbsp;</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>form of a list of patches. Now I =
cannot use the=20
    for each method to run through the patches in&nbsp;</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>the iterate function, right?&nbsp;I =
would like=20
    to run the for each method in the init function =
of&nbsp;mybraitenbergcontrol=20
    class.</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>And for this I need a way to =
implement delay so=20
    that the vehicle can move left for some time and then =
move</FONT></DIV>
    <DIV><FONT face=3DArial size=3D2>right etc.... and this should be =
done without=20
    the (controller get-time) .</FONT></DIV></BLOCKQUOTE><BR></DIV>
  <DIV>Sounds like you'll want to make use of the "schedule" method in =
the=20
  Object class.</DIV>
  <DIV>Since your strategy is to plan out a route ahead of time, you =
could, in=20
  the init</DIV>
  <DIV>method, schedule several methods to be called according to the=20
  route:</DIV>
  <DIV><BR class=3Dkhtml-block-placeholder></DIV>
  <DIV>self schedule method-call "turn-left" at-time 10.</DIV>
  <DIV>self schedule method-call "turn-right" at-time 20.</DIV>
  <DIV>self schedule method-call "turn-right" at-time 30.</DIV>
  <DIV><BR class=3Dkhtml-block-placeholder></DIV>
  <DIV>etc.</DIV>
  <DIV><BR class=3Dkhtml-block-placeholder></DIV>
  <DIV>- jon klein</DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>breve =
mailing=20
  =
list<BR>[email protected]<BR>http://lists.spiderland.org/mailman/listi=
nfo/breve<BR></BLOCKQUOTE></BODY></HTML>

------=_NextPart_000_0038_01C5B396.3CE3DE40--

--===============90045250484858363==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
breve mailing list
[email protected]
http://lists.spiderland.org/mailman/listinfo/breve

--===============90045250484858363==--