maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   Navit GPS (and libgarmin) for os2008 (https://talk.maemo.org/showthread.php?t=18093)

ajf 2008-03-19 16:49

Navit GPS (and libgarmin) for os2008
 
Hello,

A very alpha port of Navit (GPS software) is ready for the Internet tablet, it works with vector maps, including Garmin maps (routing is not working yet for garmin maps).

Packages are here: http://www.tecdencia.net/navit/

Performance is not the best yet but it's very usable.

danguyf 2008-03-19 17:16

Re: Navit GPS (and libgarmin) for os2008
 
Yay! I was just about to start trying to get navit working. I can't wait to get home and try this out.

spartanNTX 2008-03-19 17:50

Re: Navit GPS (and libgarmin) for os2008
 
Would the included wayfinder maps with this application? Or the Census maps that Roadmap uses?

ajf 2008-03-19 18:00

Re: Navit GPS (and libgarmin) for os2008
 
spartan, i didn't try it but i don't think it will work. Check section Maps on the wiki http://wiki.navit-project.org/index.php/Main_Page

spartanNTX 2008-03-19 18:08

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ajf (Post 157387)
spartan, i didn't try it but i don't think it will work. Check section Maps on the wiki http://wiki.navit-project.org/index.php/Main_Page

either way this is very cool- thank you for putting in the work

spartanNTX 2008-03-19 18:10

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ajf (Post 157387)
spartan, i didn't try it but i don't think it will work. Check section Maps on the wiki http://wiki.navit-project.org/index.php/Main_Page

Looks like it supports the tiger census maps

yabbas 2008-03-19 18:30

Re: Navit GPS (and libgarmin) for os2008
 
I had no idea there was a routable OS map. :) Good show - p'raps I'll joint heir efforts in adding more functionality!

ajf 2008-03-19 18:57

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by yabbas (Post 157407)
I had no idea there was a routable OS map. :) Good show - p'raps I'll joint heir efforts in adding more functionality!

Thanks, there's a lot of work to do, optimization is needed and i'm working on making a hildonized gui for a better in-car use (bigger fonts, graphics, etc). Also a SDL interface with 3d tracking would be nice but we should work with the device limits.
Join #navit at freenode if you're interested :)

danguyf 2008-03-20 00:58

Re: Navit GPS (and libgarmin) for os2008
 
Can you post the block from the xml config for using the garmin maps included with the N810? I checked the wiki but couldn't find either file extension listed.

As for speech, is it just 'flite %s'?

yabbas 2008-03-20 10:44

Re: Navit GPS (and libgarmin) for os2008
 
GPSD needs to be tracking data for maps to show up. No maps will show up without a fix and known locale. Don't know what the point is of the "center" variable in the config..perhaps it's used when you set the "car" to be a demo device.

Tried it with the Garmin Euro maps - nothing shows up. Garmin map is a rather large 1.4GB file called GMAPPROM.IMG that has the whole of Europe. Probably not useful if routing doesn't work on Garmin maps.

Tried with OSM maps - works a treat :) and looks really nice. Odd thing - selecting anything in the data menu clears the map and I can't seem to get it back without restarting Navit.

It's a shame osm2navit wasn't included (though saying that it took a while to execute on my desktop with a small map so this was probably good foresight on your part :))

Downloaded the planet data extract for the UK. Used osm2navit from the Windows version of Navit (since I was in Windows) to convert. For those interested:
Extract the bz archive using whatever app you have. I used WinRAR.
Then: osm2navit.exe < WHATEVERTHISISCALLED.osm WHATEVERYOUWNTTOCALLIT.bin

UK OSM is a 30MB file - much nicer. Can't seem to route using it though :(



Will try the Marco Polo Reiseplaner Maps later.

yabbas 2008-03-20 11:36

Re: Navit GPS (and libgarmin) for os2008
 
Consolidated message into earlier one.

ajf 2008-03-20 13:47

Re: Navit GPS (and libgarmin) for os2008
 
Hello, here is an example of navit.xml using Mapear (garmin) maps (www.proyectomapear.com.ar)

http://www.tecdencia.net/navit/downloads/navit.xml

Set your coordinates in the Navit tag so when the program starts it will show your location. Example:
Code:

<navit center="4808 N 1134 E" zoom="256" tracking="1" cursor="1" orientation="0">
Also, remember to select Maps -> Projection -> Garmin if you are using garmin maps.

I hope this helps.

ajf 2008-03-20 13:52

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by danguyf (Post 157587)
Can you post the block from the xml config for using the garmin maps included with the N810? I checked the wiki but couldn't find either file extension listed.

As for speech, is it just 'flite %s'?

Hi, it's flite -t '%s'
I uploaded a sample configuration, please take a look at it.

danguyf 2008-03-20 14:49

Re: Navit GPS (and libgarmin) for os2008
 
Thank you for the sample config.

I think I figured out the source of my confusion. In another thread someone had suggested that Navit could use the Wayfinder maps that come on the N810's internal memory card; I had those mixed up with Garmin maps.

yabbas 2008-03-20 15:20

Re: Navit GPS (and libgarmin) for os2008
 
ajf: I was using the map file obtained from Garmin City Navigator Europe NT 2008, couldn't get it to display.

Wonder if the Mapear Garmin maps are somewhat different than this one.

venubvs 2008-03-21 20:26

Re: Navit GPS (and libgarmin) for os2008
 
Can anybody please post steps on how to install NAVIT on N800?
Also where will I find the maps to download?

I downloaded the navit0.0.3.tar.gz file to my N800 and tried to untar it, but it could not be untared. Please help?

ajf 2008-03-22 17:09

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by venubvs (Post 158480)
Can anybody please post steps on how to install NAVIT on N800?
Also where will I find the maps to download?

I downloaded the navit0.0.3.tar.gz file to my N800 and tried to untar it, but it could not be untared. Please help?

follow the instructions of my first post please.

venubvs 2008-03-22 17:43

Re: Navit GPS (and libgarmin) for os2008
 
Thank you for your reply. After posting my question, I have gone thorough your first post and successfully installed Navit. I even downloaded maps from 'http://maps.navit-project.org/download/' and loaded them to one of my SD Card on my N800. Only thing I don't know is how to edit the Navit.xml file and change the maps path to the SD card. Please help me with this.

One more clarification, when we start the Navit, it won't launch the GPS application automatically, we need to launch it from the Control Panel, right?? Correct me if I am wrong.

Thank you.

yabbas 2008-03-23 05:03

Re: Navit GPS (and libgarmin) for os2008
 
just tried reisenplanner maps...
wow :) ... whole of europe present without needing to swap countries! detail is pretty good too!

navit > wayfinder :D

at the moment i gotta launch gpsd through control panel too.
also...yet to try routing.

directore 2008-03-23 09:28

Re: Navit GPS (and libgarmin) for os2008
 
I wasn't able to get it communicate with my GPS receiver (which is working fine per Wayfinder's Map). Getting a location fix in control panel crashes this app the moment some satellites are shown as in use. Same thing with Map I started this app while Map was running hoping that that would work, share gps data perhaps, but no way, the moment Map acquires the fix, this app crashes. Oh well the hope springs eternal.

directore 2008-03-23 10:11

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

N800. Only thing I don't know is how to edit the Navit.xml file and change the maps path to the SD card. Please help me with this.

Don't know if I can help - the situation isn't very friendly as far as editing system files on n800 goes, isn't it?

I refuse to use vi so my only (?) option is this. Copy the file in question either in x-term or whatever you use on PC side after ssh-ing to your n8x0 to a memory card. That is:

cp /usr/share/navit/navit.xml /media/mmc1/

Connect via usb to your PC. You should be able to see the file now (if prefixed with period you wont, I use TextWrangler on OS X to see/edit invisible files). When finished copy it back to wherever it came from.

cp /media/mmc1/navit.xml /usr/share/navit/

There must a simpler solution. I guess some people create VPN to access system files but I wouldn't call it simple.

BTW I gave up on this Navi thing for the time being, this is simply unusable at this tage..

qwerty12 2008-03-23 10:13

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by directore (Post 159042)
I refuse to use vi so my only (?) option is this. Copy the file in question either in x-term or whatever you use on PC side after ssh-ing to your n8x0 to a memory card. Connect via usb to your PC. You should be able to see this file now (if prefixed with period you wont, I use TextWrangler on OS X to see/edit invisible files). When finished copy it back to wherever it came from.

You should look into leafpad by free :)

In root, just run "run-standalone.sh leafpad <path to file>" . It's gui and very reliable imho.

directore 2008-03-23 11:11

Re: Navit GPS (and libgarmin) for os2008
 
I believe I tried it before but it won't install on my tablet, incompatibility of some kind.

danguyf 2008-03-23 23:59

Re: Navit GPS (and libgarmin) for os2008
 
I got maps loaded and showing up at last! Progress is very cool.

I haven't figured out a way to get the GPS to start from within the program, but starting RoadNav's RoadGPS got the GPS locked without crashing anything.

I haven't been able to get routing working, though. When I bring up the routing window I can enter an address, but none of the buttons seem to make that window actually do anything.

venubvs 2008-03-24 05:31

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by directore (Post 159042)
cp /usr/share/navit/navit.xml /media/mmc1/

Connect via usb to your PC. You should be able to see the file now (if prefixed with period you wont, I use TextWrangler on OS X to see/edit invisible files). When finished copy it back to wherever it came from.

cp /media/mmc1/navit.xml /usr/share/navit/

I was able to complete the 1st step. But when I was trying to copy it back, I am getting 'permission denied' issue. How to overcome it? Any help please..

directore 2008-03-24 06:09

Re: Navit GPS (and libgarmin) for os2008
 
You need to be a root to do that, copy it back that is. The instructions here and elsewhere are confusing to me. I managed to gain root access by simply installing openssh, at some point they will ask you to define root password (that is password for user "root").

Then you can ssh from your PC (assuming that they both sit on the same router) to your tablet as user "root":
ssh root@192.x.x.x

where 192.x.x.x is your tablet local IP (good luck finding it!) and entering your root password.

For reasons unclear to me that password will not work in x-term on the tablet, that is
su
fails, and
sudo cp /media/mmc1/navit.xml /usr/share/navit/
will not accept your password.

danguyf 2008-03-24 11:19

Re: Navit GPS (and libgarmin) for os2008
 
If you want root from xterm on your tablet, directore, install "becomeroot" and then you do "sudo gainroot" from the prompt.

venubvs 2008-03-25 00:22

Re: Navit GPS (and libgarmin) for os2008
 
I finally succeeded copying navit.xml file back to usr/share/navit folder using 'becomeroot'. But still it is not working. Navit application is looking for maps bin file from the root directory, though I changed its path to /media/mmc1/ folder on SD Card in the navit.xml file.

After navit.xml file is changed and copied back to root, do I need to do any sort of compile or something?

danguyf 2008-03-25 00:36

Re: Navit GPS (and libgarmin) for os2008
 
How do you know it's looking for it in root? Did you follow the posted navit.xml as a guide?

venubvs 2008-03-25 01:12

Re: Navit GPS (and libgarmin) for os2008
 
Now the changed navit.xml is working. But it is crashing now while loading the maps binfile. I have downloaded maps from 'http://maps.navit-project.org/' for OH state in U.S. But when I looked into the maps in the above site at the highest zoom level, I am not seeing any roads or city/street names. Is this the site I should download maps from?? They are mentioned as opensteet maps - precompiled, ready to use.

danguyf 2008-03-25 11:36

Re: Navit GPS (and libgarmin) for os2008
 
Can you post your navit.xml so we can check it out?

I found that in order for my maps to show up properly I had to set my initial center point to a point within the area of the maps, otherwise Navit opened up at some unmapped point. Did you set your center point in your navit.xml? I used Google Maps to find my house and then pulled the coordinates out of the "Send Link" URL.

venubvs 2008-03-26 01:57

Re: Navit GPS (and libgarmin) for os2008
 
Thank you very much for offering help. With few changes, I finally could able to load the maps. Now, the destination form is not working. I entered a place in the Route->Destination form. There were no OK/Cancel buttons to hit. Did you try this facility?
Thank you once again.

danguyf 2008-03-26 10:25

Re: Navit GPS (and libgarmin) for os2008
 
I'm at the same spot. I can enter a location into the Destination window but there's no OK/Cancel, nor do any of the other buttons seem to do anything. I have no idea how to get it to work!

venubvs 2008-03-26 17:59

Re: Navit GPS (and libgarmin) for os2008
 
We have 4 navigation applications available for Nokia Internet Tablets, but at the same time none of them are complete in nature.

MaemoMapper is a mature and stable application - But Map files are too big to download and importantly, it needs internet connection during travel to do routing/rerouting.

Wayfinder - Involves $130/- for 3 year period. One time investment is OK, but I don't like recurring exp.

RoadMap is a good one, it uses vector maps but so far Routing/Rerouting engine is not available yet.

Finally Navit, similar to RoadMap, it uses Openstreet maps, not fully functional. But as per the developer Navit can do routing/rerouting but so far it is not working. It would be great if he looks into the issue and makes routing/rerouting works.

ajf 2008-03-27 22:28

Re: Navit GPS (and libgarmin) for os2008
 
Hi everybody, sorry for the late response.

Please take in consideration that Navit is in alpha stage and the N8x0 port is more alpha than the PC version. Actually there's a memory/cpu limitation in how Navit handle big maps, specially garmin ones. Please try to keep your maps as small as possible and use Swap.
The project is really promising, a 3d gui using SDL could be possible to do (I'm working on that) and routing is 90% finished. It's just a matter of time, so patience :)

Thanks.

danguyf 2008-03-28 00:05

Re: Navit GPS (and libgarmin) for os2008
 
And thank you for it! 90% sounds great.

venubvs 2008-03-28 01:26

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ajf (Post 161172)
Hi everybody, sorry for the late response.

Please try to keep your maps as small as possible and use Swap.
Thanks.

Thanks for the update and goodluck with the progress. When you say 'keep maps as small as possible', how small. I am using Navit with 70% US maps, i.e., little over 600mb. How small should I reduce them to. Can I have atlest my city (Columbus) which will be around 30mb?

yabbas 2008-03-28 05:35

Re: Navit GPS (and libgarmin) for os2008
 
Quote:

Originally Posted by ajf (Post 161172)
Hi everybody, sorry for the late response.

Please take in consideration that Navit is in alpha stage and the N8x0 port is more alpha than the PC version. Actually there's a memory/cpu limitation in how Navit handle big maps, specially garmin ones. Please try to keep your maps as small as possible and use Swap.
The project is really promising, a 3d gui using SDL could be possible to do (I'm working on that) and routing is 90% finished. It's just a matter of time, so patience :)

Thanks.

Hi ajf

Can you explain the limit please. Navit seems to work great with full Euro maps (1.4GB) from Reisenplanner. Are roads/labels missing or something?

ajf 2008-03-28 16:33

Re: Navit GPS (and libgarmin) for os2008
 
Hi, i don't have a limit table, if you are having problems with seg faults, try using smaller areas and please post the results here. I find argentinian garmin maps too big for the device and sometimes it crashes Navit.

Thanks.

tme 2008-03-28 16:51

Re: Navit GPS (and libgarmin) for os2008
 
back in the day, i built a quick and dirty maemo pacakge for v0.0.3. it used
a shell script to build the xml config at launch time with the available maps
- maybe this will be useful to you. see below:

Code:

#!/bin/sh

XMLCFG=/tmp/navit.xml
NAVITROOT=/usr/share/navit
MAPPATH="${NAVITROOT} /media/mmc1/Maps /media/mmc2/Maps"
MAPCOUNT=0

cat ${NAVITROOT}/preamble.xml > ${XMLCFG}
cat ${NAVITROOT}/layout*.xml >> ${XMLCFG}

if which flite >/dev/null; then
  cat ${NAVITROOT}/speech_flite.xml >> ${XMLCFG}
fi

for p in ${MAPPATH}; do
 if [ -e $p ]; then
  if [ `find $p -name *.bin | wc -l` -gt 0 ]; then
    echo '<mapset enabled="yes">'
    for m in `find $p -name *.bin`; do
      echo '<map type="binfile" enabled="yes" data="'$m'"/>'
      MAPCOUNT=$[${MAPCOUNT}+1]
    done
    echo '</mapset>'
  fi
  if [ `find $p -type d -name *.map | wc -l` -gt 0 ]; then
    for m in `find $p -type d -name *.map`; do
      echo '<mapset enabled="yes">'
      echo '<map type="mg" enabled="yes" data="'$m'"/>'
      for mm in `find $m -type d -name *.smp`; do
      MAPCOUNT=$[${MAPCOUNT}+1]
    done
    echo '</mapset>'
  fi
  if [ `find $p -type d -name *.map | wc -l` -gt 0 ]; then
    for m in `find $p -type d -name *.map`; do
      echo '<mapset enabled="yes">'
      echo '<map type="mg" enabled="yes" data="'$m'"/>'
      for mm in `find $m -type d -name *.smp`; do
        echo '<map type="mg" enabled="yes" data="'$mm'"/>'
      done
      echo '</mapset>'
      MAPCOUNT=$[${MAPCOUNT}+1]
    done
  fi
  if [ `find $p -name *.img | wc -l` -gt 0 ]; then
    echo '<mapset enabled="yes">'
    for m in `find $p -name *.img`; do
      echo '<map type="garmin" enabled="yes" data="'$m'" debug="4"/>'
      MAPCOUNT=$[${MAPCOUNT}+1]
    done
    echo '</mapset>'
  fi
 fi
done >> ${XMLCFG}
 
cat ${NAVITROOT}/postamble.xml >> ${XMLCFG}

exec ${NAVITROOT}/navit ${XMLCFG}



All times are GMT. The time now is 12:39.

vBulletin® Version 3.8.8