Progress report for navigation in RoadMap

View: New views
4 Messages — Rating Filter:   Alert me  

Progress report for navigation in RoadMap

by Danny Backx :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

I'm playing with navigation.

I've just recorded a debugging session. Look at it with e.g.
  totem http://danny.backx.info/download/roadmap/out-3.ogv

This is on Linux, with a data feed from gpsfake.

The code for this is not in SVN yet but I could commit easily if there
is demand.

Input welcome.

        Danny
--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Roadmap-general mailing list
Roadmap-general@...
https://lists.sourceforge.net/lists/listinfo/roadmap-general

Re: Progress report for navigation in RoadMap

by Paul Fox-3 :: Rate this Message:

| View Threaded | Show Only this Message

danny wrote:
 > Hi,
 >
 > I'm playing with navigation.
 >
 > I've just recorded a debugging session. Look at it with e.g.
 >   totem http://danny.backx.info/download/roadmap/out-3.ogv
 >
 > This is on Linux, with a data feed from gpsfake.
 >
 > The code for this is not in SVN yet but I could commit easily if there
 > is demand.

so, which parts of this are new?  i recall there was some street
announcement stuff there already.  i didn't see any turn-by-turn
instructions -- perhaps they were audible?  (i didn't have sound
when i watched.)

i noticed the vehicle icon (blue pointer) wasn't pointing the right
way (always pointed north).  is that because of the gpsfake feed?  or
perhaps it was because the speeds were too low for roadmap to consider
the direction information reliable.  we need to fix that, i guess.

paul
=---------------------
 paul fox, pgf@... (arlington, ma, where it's 70.2 degrees)

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Roadmap-general mailing list
Roadmap-general@...
https://lists.sourceforge.net/lists/listinfo/roadmap-general

Re: Progress report for navigation in RoadMap

by Danny Backx :: Rate this Message:

| View Threaded | Show Only this Message

On ma, 2011-05-02 at 10:44 -0400, Paul Fox wrote:

> danny wrote:
>  > Hi,
>  >
>  > I'm playing with navigation.
>  >
>  > I've just recorded a debugging session. Look at it with e.g.
>  >   totem http://danny.backx.info/download/roadmap/out-3.ogv
>  >
>  > This is on Linux, with a data feed from gpsfake.
>  >
>  > The code for this is not in SVN yet but I could commit easily if there
>  > is demand.
>
> so, which parts of this are new?  i recall there was some street
> announcement stuff there already.  i didn't see any turn-by-turn
> instructions -- perhaps they were audible?  (i didn't have sound
> when i watched.)
>
> i noticed the vehicle icon (blue pointer) wasn't pointing the right
> way (always pointed north).  is that because of the gpsfake feed?  or
> perhaps it was because the speeds were too low for roadmap to consider
> the direction information reliable.  we need to fix that, i guess.

Several pieces :
- recalculate a route on the fly, in two ways (you're still good but
  farther along -> skip some; or you're off -> recalculate completely)
- hook up to roadmap_trip better, and fix a queue function in the
  process
- don't crash after a couple of seconds ;-)

The vehicle icon being off caught my attention too. It may also be a
gpsd3 thingy, I'll look into this.

After I sent the message, I fixed one more thing so now the trips get
cleaned up better, and the display after recalculate is cleaner as a
result.

Looking ahead a little better (the green&yellow arrows move around too
much for my liking), and calculating announcements that I can translate
into voice, are indeed next steps.

        Danny

--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Roadmap-general mailing list
Roadmap-general@...
https://lists.sourceforge.net/lists/listinfo/roadmap-general

Re: Progress report for navigation in RoadMap

by Danny Backx :: Rate this Message:

| View Threaded | Show Only this Message

On ma, 2011-05-02 at 10:44 -0400, Paul Fox wrote:
> i noticed the vehicle icon (blue pointer) wasn't pointing the right
> way (always pointed north).  is that because of the gpsfake feed?  or
> perhaps it was because the speeds were too low for roadmap to consider
> the direction information reliable.  we need to fix that, i guess.

A small addition to roadmap_gpsd3.c did the trick. Committed.

        Danny

pavilion: {248} svn diff roadmap_gpsd3.c
Index: roadmap_gpsd3.c
===================================================================
--- roadmap_gpsd3.c     (revision 2682)
+++ roadmap_gpsd3.c     (working copy)
@@ -132,6 +132,9 @@
       if (isnan(gpsdp->fix.time) == 0) {
          gps_time = gpsdp->fix.time;
       }
+      if (isnan(gpsdp->fix.track) == 0) {
+         steering = gpsdp->fix.track;
+      }
    }
 
    RoadmapGpsd2NavigationListener


--
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today.  Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Roadmap-general mailing list
Roadmap-general@...
https://lists.sourceforge.net/lists/listinfo/roadmap-general