maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] modRana: a flexible GPS navigation system (https://talk.maemo.org/showthread.php?t=58861)

7thd 2010-12-12 21:47

Re: [Announce] modRana: a flexible GPS navigation system
 
Wonderful app! Particularly the tracklogging which I like for sailing (one can determine when to tack).

<problem> I lost the crosshair/fix/pointer as well as the tracks and start/end pointers. Latest build no improvement.

woody14619 2010-12-13 19:26

Re: [Announce] modRana: a flexible GPS navigation system
 
Martin: In the bug on causing the SGX driver to lock up, the Nokia rep noted the problem may be from sending too much to the drawing system. (Bogus, I know, but...) One thing of note was placing an entry in /etc/powervr.d/ for the program to "increase it's GL command buffer". I'm not sure how this is done though. Thought maybe you'd have and idea? :)

jj0 2010-12-13 20:11

Re: [Announce] modRana: a flexible GPS navigation system
 
v 0.20-3 fails in postinst while chmodding /opt/modrana/cache/images/

It fails since there's dirnames with spaces in this dir, if you've downloaded some files, and the busybox `chmod -R' doesn't cope with these it seems...

7thd 2010-12-13 22:37

Re: [Announce] modRana: a flexible GPS navigation system
 
in addition to forementioned problem

Quote:

Originally Posted by 7thd (Post 895494)
<problem> I lost the crosshair/fix/pointer as well as the tracks and start/end pointers. Latest build no improvement.

Modrana won't start at all now. I have only tried out setting buttons and have not tried to reinstall or other installs. I'm quite ignorant of the technique so I have no real clue.

Start in Xterminal shows the following
Code:

~ $ modrana
 == modRana Starting ==
 device string (first parameter): n900
importing modules:
 * menu: Handle menus (30.00 ms)
 * example: A sample pyroute module (10.00 ms)
 * clickHandler: handle mouse clicks (10.00 ms)
 * waypoints: Lookup nearest town or village (80.00 ms)
 * messages: Handles messages (120.00 ms)
 * onlineServices: Module for communication with various online services. (170.00 ms)
 * mapView: Controls the view being displayed on the map (0.00 ms)
 * display: A platform independent display device control module (0.00 ms)
 * icons: Draw icons (10.00 ms)
 * log: A modRana logging module (0.00 ms)
Traceback (most recent call last):
  File "modrana.py", line 476, in <module>
    program = GuiBase(device)
  File "modrana.py", line 411, in __init__
    self.mapWidget = MapWidget()
  File "modrana.py", line 85, in __init__
    self.loadModules('modules') # name of the folder with modules
  File "modrana.py", line 106, in loadModules
    self.m[name] = a.getModule(self.m,self.d)
  File "/opt/modrana/modules/mod_options.py", line 25, in getModule
    return(options(m,d))
  File "/opt/modrana/modules/mod_options.py", line 33, in __init__
    self.load()
  File "/opt/modrana/modules/mod_options.py", line 369, in load
    newData = marshal.load(f)
EOFError: EOF read where object expected
~ $

Would it help to uninstall or sth? Or can some1 provide info on a detail?

I'm not experiencing other big failures other than some widgets falling out. I have toggled 3G/GSM while running Modrana by the way

<edit> I have tried reinstall (OTA). Xterminal session of modRana still shows the above. I can safely say that I left mod_options.py untouched, so far as I made no textual alterations whatsoever.

I miss this app with its k i c k a s s tiles, could anyone help restoring this modRana 0.20-3?

MartinK 2010-12-15 00:37

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by woody14619 (Post 893550)
Get outta town! You had a FR too!? Small world. :) I have a GTA02v5 sitting on a shelf right now collecting dust. I keep meaning to bring it into work to flash it with the latest qtmoko (they just release v30 this week), but I keep forgetting it. (I don't have a windows box at home anymore, and the linux tools for FR never worked right for me...) I hear it's almost working as a reliable phone now... But then I heard that from some people the whole time, and mine was never good at keeping a GSM signal, yet alone handling calls or text. :P

I think I have seen a lecture about QtMoko by one of the developers (maybe it was even the main developer ? I'm not really sure) on the OpenMobility conference, that took place april. It looked very usable even then :) BTW, there is a (bit old) howto for running modRana on QtMoko :)

BTW, concerning flashing - I have been using dfu-util in Linux to flash about everything in Neo, including rootfs (SHR), kernel and even the non-hardwired bootloader quite recently - without issues once I set the correct path and usb id.

Quote:

Originally Posted by gkuenning (Post 893681)
Of course, none of these solve the "Turn left on Street Andrews Street" problem; I'm not sure how that could be handled without true natural-language processing.

Well, the street names actually come enclosed in <b></b> tags. The enclosed text could be taken as a whitespace separated string and only those St. that have no whitespace behind them would be substituted :)
IMO, this looks like a textbook use-case for a regexp ->
I think I'll just add support for adding custom regexps to the filter file :D
Something like:
Code:

regexp;your_regexp_code
Quote:

Originally Posted by jj0 (Post 894454)
You need to be careful with these, they do not work as expected, which relates to the previous post also. Basically modrana just does a plain substitution, not whole words. I.e. if you have
Code:

St;Street
this is wrong as then for instance "Park Street" will be read as "Park Street reet"
so maybe it should be:
Code:

St ;Street

Yep, its just really simple exact-match (including whitespace) substitution right now. It also applies ALL the rules, one after another, going from the first line to the last.

So you should use either
Code:

St. ;Street
or
Code:

St.;Street
, depending on how the streetnames are shortened and also watch out for substituting to something that might match match a rule further down the list :)

Quote:

Originally Posted by gkuenning (Post 893681)
I'm pretty sure it just overwrites things, unless the file has been specially marked in the distribution. One way to handle that problem would be to auto-merge it with a similar file in the user's home directory; then the one in /home/user could be used for personal localizations.

OK, upgrade-time merging seems like the best way, it might be less confusing than having two separate default (always overwritten by upgrade)/user(never overwritten by upgrade) filter files, etc. I just hope all the needed utilities are there in our (quite) limited busybox shell :) Also, there might be problems with order of the rules in the merged file.

Also, thanks for all the new substitution rules! :)

Just a question to the gkuenning ones:
Code:

Ave;Avenue
Cir;Circle
Hts;Heights
Hwy;Highway
Ln;Lane
Pde;Parade
Pkwy;Parkway
Pl;Place
Plz;Plaza
Rd;Road
Sq;Square
Tce;Terrace
Trk;Track
Wy;Way

Is there really no period behind those abbreviations ? It hight potentially mangle some unabbreviated street names (5th Avenue -> 5th Avenuenue), like jj0 mentioned earlier.

Quote:

Originally Posted by jj0 (Post 893827)
BTW, the new version is MUCH slower in loading the individual tiles for display, must be doing some caching or what-have-you, but now there is a noticeable lag, and the "Loading..." text showed for about a second or so, with every tile upon first display, then when it's redisplayed, i.e. zoomed out and back in, it's instantaneous, but it used to be instantaneous before...

I have changed how tile drawing/loading works. The drawing function previously handled everything - not only drawing but also caching the tiles (loading from file/sqlite or starting download threads) in case they were not in the memory cache.
This froze the whole GUI once there were enogh new tiles on the screens, because the drawing function waited for all the new tiles to load. There was also no limit on the number of concurrent download threads, which is another matter. I think you can imagine what happened if you entered an area with poor network coverage at hight speed without any thread-count limit :)

I have changed how tile drawing works like this:
  • the drawing function now only draws tiles that are cached in the memory cache, if there is a cache miss, it sends a loading request for the missing tile and loads a "Loading..." placeholder tile in the cache - like this, only one loading request is sent per missing tile
  • a separate consumer thread handles the loading request queue - it either loads the tile from local storage (file/sqlite) or sends a download request to the download request pool
  • a second consumer thread is responsible for starting the download threads, it also makes sure that the number of concurrent download threads never exceeds a given limit (20 by default), unprocessed download requests time-out after 30 second

The slower apparent loading of tiles might be caused by the default once-per-second screen refresh.

If you are not dragging the map, modRana updates the screen only once per second, as this is the shortest interval I can get a new fix in. Not much sense to update more often IMO. The first redraw draws the "Loading..." tiles and sends loading requests. And only the next redraw that happens a second later shows the actual tiles that were loaded to the cache in the meantime.

I think sending a screen redraw request once a tile is finished loading might improve/fix this.

MartinK 2010-12-15 01:27

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by jj0 (Post 893925)
Hmmm... very interesting. Could it be that the sqlite db has some internal errors and that's what is messing up the download. Though the log is not reporting any...

Anyhow, I backed up the .maps folder, then created a new empty one, and am now downloading maps for a 80 km area around a point.

It's been going on without errors for some time now, now at 39 thousand out of 360 thou...

Have you tried how the batch download to sqlite fares in 0.20-3 ? I have made the database access sequential in this version as I suspect that concurrent access to the database might be causing for all those "database locked" errors.

Quote:

Originally Posted by jj0 (Post 894484)
Also, there might be some prob in navigating tags, as for the past couple of days, driving around I've had modrana say:

In XXX meters turn right on XXX Street reet slash emphasis

I.e. the "Street reet" part was because of the St; substitution, but pronouncing the "slash emphasis" seems like it's reading a </emphasis> tag...

It doesn't do it all the time though, so not sure if only when it's ending in "Street"...

The emphasis tags come from SSML are used so that espeak puts emphasis on important words, like street names or the turn commands. IMO it is reading the tag because it is somehow mangled - either the is a < missing or the <emphasis> opening tag is not where it should be. Does it happen for all turns or just from time to time ?

Quote:

Originally Posted by woody14619 (Post 896074)
Martin: In the bug on causing the SGX driver to lock up, the Nokia rep noted the problem may be from sending too much to the drawing system. (Bogus, I know, but...) One thing of note was placing an entry in /etc/powervr.d/ for the program to "increase it's GL command buffer". I'm not sure how this is done though. Thought maybe you'd have and idea? :)

OK, I'll try to investigate if I can find something about this mysterious option.

BTW, modRana is not actually drawing that much, but it does redraw the whole screen each time. ModRana redraws frequently only when the map is being dragged, otherwise the screen is redrawn just once per second, (as mentioned earlier). The weird thing is that most of the freezes that have been reported for modRana so far were IIRC not while dragging the map but while just looking at it or even when the screen was blanked.

Maybe it doesn't like when applications redraw while the screen is blanked ? I think I have noticed something in this sense in one of the new comments to the freezing bug.

Quote:

Originally Posted by jj0 (Post 896096)
v 0.20-3 fails in postinst while chmodding /opt/modrana/cache/images/

It fails since there's dirnames with spaces in this dir, if you've downloaded some files, and the busybox `chmod -R' doesn't cope with these it seems...

Well, this folder should be empty, as all map tiles should be by default stored in MyDocs/.maps on the N900. Otherwise the 2GB partition with home and opt would get filled by tiles quite quickly. So this might be a double bug :)

Quote:

Originally Posted by 7thd (Post 896212)
in addition to forementioned problem



Modrana won't start at all now. I have only tried out setting buttons and have not tried to reinstall or other installs. I'm quite ignorant of the technique so I have no real clue.

Start in Xterminal shows the following
Code:

~ $ modrana
 == modRana Starting ==
 device string (first parameter): n900
importing modules:
 * menu: Handle menus (30.00 ms)
 * example: A sample pyroute module (10.00 ms)
 * clickHandler: handle mouse clicks (10.00 ms)
 * waypoints: Lookup nearest town or village (80.00 ms)
 * messages: Handles messages (120.00 ms)
 * onlineServices: Module for communication with various online services. (170.00 ms)
 * mapView: Controls the view being displayed on the map (0.00 ms)
 * display: A platform independent display device control module (0.00 ms)
 * icons: Draw icons (10.00 ms)
 * log: A modRana logging module (0.00 ms)
Traceback (most recent call last):
  File "modrana.py", line 476, in <module>
    program = GuiBase(device)
  File "modrana.py", line 411, in __init__
    self.mapWidget = MapWidget()
  File "modrana.py", line 85, in __init__
    self.loadModules('modules') # name of the folder with modules
  File "modrana.py", line 106, in loadModules
    self.m[name] = a.getModule(self.m,self.d)
  File "/opt/modrana/modules/mod_options.py", line 25, in getModule
    return(options(m,d))
  File "/opt/modrana/modules/mod_options.py", line 33, in __init__
    self.load()
  File "/opt/modrana/modules/mod_options.py", line 369, in load
    newData = marshal.load(f)
EOFError: EOF read where object expected
~ $

Would it help to uninstall or sth? Or can some1 provide info on a detail?

I'm not experiencing other big failures other than some widgets falling out. I have toggled 3G/GSM while running Modrana by the way

<edit> I have tried reinstall (OTA). Xterminal session of modRana still shows the above. I can safely say that I left mod_options.py untouched, so far as I made no textual alterations whatsoever.

I miss this app with its k i c k a s s tiles, could anyone help restoring this modRana 0.20-3?

This might be caused the by corrupted settings file. Try to delete/move somewhere else this file:
/opt/modrana/data/options.bin
ModRana will create a new one with default settings if it cant find the old one. This might even solve your other problem with missing position indicator.

Also, failed loading of the options file should really fail more gracefully, with a "loading settings failed" notifications and not with a crash... I'll do something about it :)

romanianusa 2010-12-15 01:34

Re: [Announce] modRana: a flexible GPS navigation system
 
No voice nav?

petur 2010-12-15 08:40

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by romanianusa (Post 897070)
No voice nav?

yes it does (if you can understand it ;) )

Wikiwide 2010-12-15 09:33

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by romanianusa (Post 897070)
No voice nav?

No, it doesn't recognize your voice commands as you speak them.

Yes, it does pronounce the route turn-by-turn, with help of espeak, if you have Internet to get routing from Google.

jj0 2010-12-15 13:57

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 897066)
Well, this folder should be empty, as all map tiles should be by default stored in MyDocs/.maps on the N900. Otherwise the 2GB partition with home and opt would get filled by tiles quite quickly. So this might be a double bug :)

So maybe this dir is a historical remnant from an old modrana installation. On a clean install the postinst script doesn't bomb obviously, I'll try to use it for a while and see if anything gets placed in the dir...

jj0 2010-12-15 14:00

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 897045)
Just a question to the gkuenning ones:

Is there really no period behind those abbreviations ? It hight potentially mangle some unabbreviated street names (5th Avenue -> 5th Avenuenue), like jj0 mentioned earlier.

Yeah, in the States these are usually spelled without the period... So regexp support is needed, since you'll have stuff like "Penn Ave" but you can't sub "Ave" (without the space) for "Avenue"...

zimon 2010-12-15 16:15

Re: [Announce] modRana: a flexible GPS navigation system
 
btw, I have both .maps and .map_tile_cache directories in MyDocs.
I wonder for what .map_tile_cache is for? It is empty.

modRana and Mappero are both using MyDocs/.maps ?

7thd 2010-12-15 20:17

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 7thd
<problem> I lost the crosshair/fix/pointer as well as the tracks and start/end pointers. (...)
<problem> Modrana won't start at all now.

---------------------------------------------------------------------------------------------------------------------------
Quote:

Originally Posted by MartinK (Post 897066)
This might be caused the by corrupted settings file. Try to delete/move somewhere else this file:
/opt/modrana/data/options.bin
ModRana will create a new one with default settings if it cant find the old one. This might even solve your other problem with missing position indicator.

Also, failed loading of the options file should really fail more gracefully, with a "loading settings failed" notifications and not with a crash... I'll do something about it :)

---------------------------------------------------------------------------------------------------------------------------
</problem> 1 0 0 % f i x T H X !
I might add that it works better than first install (I think it was 2 versions before v 0.20-3). Namely, I believe after first install two blue squares where always present on navigation screen (mentioning: starting a track to calculate time to resp. start and destination). They're not there now anymore (hadn't figured those out btw; they remained always the same*).

*edit: except in your exemplary tracks, somewhere way out east :D

woody14619 2010-12-15 23:52

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 897066)
Have you tried how the batch download to sqlite fares in 0.20-3 ?

I was having the same issue. 0.20-3 fixed it for me. :)

I also found part of the issue with my longer trip? Apparently something in the install is nuking the sqlite db files? When I updated to the new version the db file went away. So I'm backing those up now before updates in the future. :)

Quote:

Originally Posted by MartinK (Post 897066)
The emphasis tags come from SSML are used so that espeak puts emphasis on important words

I got this too, and know how to fix it. :) In the rule file you have:
Code:

St.;Street
In the case of regex, the dot (.) matches a single character. So:
Code:

Turn right on <emphasis>Jay St</emphasis>
becomes:
Code:

Turn right on Jay Street /emphasis>
Quote:

Originally Posted by MartinK (Post 897066)
OK, I'll try to investigate if I can find something about this mysterious option.

I'm testing an option or two right now. If I go lock-up free for a while I'll post my settings here. It's a bandaid to what's clearly a kernel bug, but it's better than nothing. (Which is what Nokia is good at delivering so far.)

Thanks for the feedback and updates!

petur 2010-12-17 11:54

Re: [Announce] modRana: a flexible GPS navigation system
 
Just noticed that TTS does not quite follow the device volume setting, if I lower volume using the hardware keys, TTS volume lowers, but it can get louder by itself again, or new TTS messages start at full volume.

This is with the latest version in -devel

白い熊 2010-12-17 16:46

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 897066)
Have you tried how the batch download to sqlite fares in 0.20-3 ? I have made the database access sequential in this version as I suspect that concurrent access to the database might be causing for all those "database locked" errors.

Significant improvement, I'm downloading thousands now, and so far no error...

The log however keeps saying "threads: 9" though I raised these to 50 in options, so maybe you didn't implement the option properly.
Quote:

The emphasis tags come from SSML are used so that espeak puts emphasis on important words, like street names or the turn commands. IMO it is reading the tag because it is somehow mangled - either the is a < missing or the <emphasis> opening tag is not where it should be. Does it happen for all turns or just from time to time ?
Yeah, haven't heard it now for a while. Are google's nav instructions cached somewhere? Or is this also in the log, have had it turned of for nav, so don't know...

白い熊 2010-12-17 16:49

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by woody14619 (Post 897743)
I got this too, and know how to fix it. :) In the rule file you have:
Code:

St.;Street
In the case of regex, the dot (.) matches a single character. So:
Code:

Turn right on <emphasis>Jay St</emphasis>
becomes:
Code:

Turn right on Jay Street /emphasis>

Makes sense, but I thought there was no regexp support so far, that it was just a straight replace, isn't that so?

If there's regexp then this should do it:
Code:

St\.;Street

zimon 2010-12-17 22:30

Re: [Announce] modRana: a flexible GPS navigation system
 
My /var/log/syslog is flooded with warnings when I use modRana.
A known bug?
Code:

Dec 18 00:25:56 Nokia-N900 [1153]: GLIB DEBUG default - location-sb: fix status changed: 3->2
Dec 18 00:25:56 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:25:56 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:25:57 Nokia-N900 [1153]: GLIB DEBUG default - location-sb: fix status changed: 2->3
Dec 18 00:25:57 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:26:05 Nokia-N900 last message repeated 17 times


白い熊 2010-12-19 00:07

Re: [Announce] modRana: a flexible GPS navigation system
 
Latest version, same error in batch download:

After a while:

unable to open database file
exception in get tiles thread

I thought it disappeared in the prior version, now it's back. What's the prob?

7thd 2010-12-19 22:23

Re: [Announce] modRana: a flexible GPS navigation system
 
<noticed>
-Changing from Car Mode to another mode and then back to Car Mode--> two blue rectangles are added to the navigation UI. They mention adding a track to show time to either start or destination.
I'm unaware what function these rectangles have to have. Do they contain a future feature? Like more info on route? I noticed in the exemplary logs they turned up with a function.
(forementioned removal/renaming of file named /opt/modrana/data/options.bin and consequent reviving of the same (after re-run) has modRana restart a UI without the rectangles)

<wildely proposed feature>
Another mode in which you could plot more than two (simple) track points would be very cool. If added by absolute directions (straight path) for each part of the route would make a Ship Mode. Visualization: dots with the wind direction and distance as indicator of where to go. Sky rocketing would it be if a straight line was drawn from present position to next track point :p but I guess this all would be a bieg job to realize.

<general question>
The GPX files. (What prevends them from being opened in Google Earth?) Is it possible to mutate those on PC (other program)?

白い熊 2010-12-20 08:26

Re: [Announce] modRana: a flexible GPS navigation system
 
So that I don't forget, I propose to move the cursor point when automatic display orientation is on...

Currently, your vehicle is exactly in the middle of the screen, which doesn't make sense, you don't have to see half screen of what you've already passed. So when auto-rotation is on, meaning you're driving, your position should be on the bottom of the screen, with maybe MAX 10 percent of what's behind you visible, the rest should be ahead of you, so you can consider what's coming up...

zimon 2010-12-20 12:19

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 白い熊 (Post 900375)
So that I don't forget, I propose to move the cursor point when automatic display orientation is on...

Currently, your vehicle is exactly in the middle of the screen, which doesn't make sense, you don't have to see half screen of what you've already passed. So when auto-rotation is on, meaning you're driving, your position should be on the bottom of the screen, with maybe MAX 10 percent of what's behind you visible, the rest should be ahead of you, so you can consider what's coming up...

This could be configurable in the settings, how muchof the screen (in %) user wants to see ahead and how much back when auto-rotation is on.

woody14619 2010-12-20 21:11

Re: [Announce] modRana: a flexible GPS navigation system
 
MartinK,
I have to turn debugging on, but I've had at least 2 occasions now when modRana has "closed" and turned off GPS, but remained "running" in the background. (eg, it's still there in top, like 2 hours later.) Not sure why, but... one more thing to add to the list? :P

MartinK 2010-12-21 02:57

Re: [Announce] modRana: a flexible GPS navigation system
 
Looks like a skiped this question last time:

Quote:

Originally Posted by skykooler (Post 894367)
Will there ever be support for skins? The default look seems rather cartoony to me, and I would like to try making another theme. Other than this, and the current lack of hardware acceleration, it is perfect!

Well, even though I currently don't see this as a high priority, it would quite easy to do. All graphical icons in modRana are just PNG files (you can find them in /opt/modrana/icons/bitmap) and other GUI elements are drawn with cairo at runtime. Skinning support would just mean a per-skin bitmap folder + color definitions for cairo drawing.

Quote:

Originally Posted by jj0 (Post 897329)
So maybe this dir is a historical remnant from an old modrana installation. On a clean install the postinst script doesn't bomb obviously, I'll try to use it for a while and see if anything gets placed in the dir...

Well, I have removed the offending chmod from the postionst script, just in case :)

Quote:

Originally Posted by zimon (Post 897437)
btw, I have both .maps and .map_tile_cache directories in MyDocs.
I wonder for what .map_tile_cache is for? It is empty.

modRana and Mappero are both using MyDocs/.maps ?

ModRana stores all map data in .MyDocs/.maps and shares the tile images with Mappero and Maep. If you enable sqlite storage in modRana, it currently does not share the database with anybody - I have designed the database to be easily shared with other programs but no other software has implemented it yet.
Don't know about the .map_tile_cache, but I have it too. Maybe it is used by Geeps, Ovi maps, AGTL, Buscatcher or some other software ?

Quote:

Originally Posted by woody14619 (Post 897743)
I was having the same issue. 0.20-3 fixed it for me. :)

I also found part of the issue with my longer trip? Apparently something in the install is nuking the sqlite db files? When I updated to the new version the db file went away. So I'm backing those up now before updates in the future. :)

Well, thats weird, I'll investigate :) At least it should not be caused by the packaging scripts as all the database files are created on runtime and are thus not listed in the package manifest. also the scripts don't do anything in MyDocs, at all.

Quote:

Originally Posted by woody14619 (Post 897743)
I got this too, and know how to fix it. :) In the rule file you have:
Code:

St.;Street
In the case of regex, the dot (.) matches a single character. So:
Code:

Turn right on <emphasis>Jay St</emphasis>
becomes:
Code:

Turn right on Jay Street /emphasis>

Quote:

Originally Posted by 白い熊 (Post 898831)
Makes sense, but I thought there was no regexp support so far, that it was just a straight replace, isn't that so?

If there's regexp then this should do it:
Code:

St\.;Street

Well, I have used a dirty hack fof Ave->Avenue and other ambiguous cases, for now :)
As there is currently always a closing a tag on the end of the street description just after the abbreviation, I have added a substitution rule like this:
Code:

Ave<;Avenue<
It just substitutes the abbreviation including the < with a full version, also with < :D

Concerning regexp support, after studing the documentation in more detail, it turns out that modRana already supports regexps :)

the re.sub function I have used used actually takes as pattern as input and substitutes all matches with a string given as its second parameter.

Just write a regexp with correct syntax on a line to the rules file, separated by ; from the string that should replace what your regexp matches. :)


Quote:

Originally Posted by 白い熊 (Post 898829)
The log however keeps saying "threads: 9" though I raised these to 50 in options, so maybe you didn't implement the option properly.

The numbre of threads currently setable from options->network relates to threads for automatic tile download, that are used for automatically downloading visible tiles that are not yet locally stored.
The number of batch download threads is currently hard-coded, but it should be also user-configurable soon.

Quote:

Originally Posted by 白い熊 (Post 899696)
Latest version, same error in batch download:

After a while:

unable to open database file
exception in get tiles thread

I thought it disappeared in the prior version, now it's back. What's the prob?

IMO just a coincidence, there were no batch download related changes in 0.20-4.
BTW, provided MyDocs is still writable after you get this error, it might be possible to reconnect to the database and recover from this error.

Quote:

Originally Posted by petur (Post 898661)
Just noticed that TTS does not quite follow the device volume setting, if I lower volume using the hardware keys, TTS volume lowers, but it can get louder by itself again, or new TTS messages start at full volume.

This is with the latest version in -devel

this might be a espeak issue as modRana just calls espeak from the command line - it is therefore espeak that does not respect the volume settings. Any idea if espeak gui behaves the same ?

Quote:

Originally Posted by zimon (Post 899059)
My /var/log/syslog is flooded with warnings when I use modRana.
A known bug?
Code:

Dec 18 00:25:56 Nokia-N900 [1153]: GLIB DEBUG default - location-sb: fix status changed: 3->2
Dec 18 00:25:56 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:25:56 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:25:57 Nokia-N900 [1153]: GLIB DEBUG default - location-sb: fix status changed: 2->3
Dec 18 00:25:57 Nokia-N900 python2.5[6238]: GLIB WARNING ** default - Trying to register gtype 'LocationGPSDeviceSet' as enum when in fact it is of type 'GFlags'
Dec 18 00:26:05 Nokia-N900 last message repeated 17 times


Thanks for reporting this! :)

I remember getting something like this in a quite while ago in scratchbox - I thought it might be related to the incomplete liblocation implementation present in scratchbox.

Looks like there might be another cause if this also happens on the device itself.

Quote:

Originally Posted by 7thd (Post 900154)
Do they contain a future feature? Like more info on route? I noticed in the exemplary logs they turned up with a function.

Yes, these rectangles are basic information widgets that report useful information about a tracklog. There are currently quite awkward to configure, but should become quite usable when I finally add the long promised interactive widget configuration.

Quote:

Originally Posted by 7thd (Post 900154)
<wildely proposed feature>
Another mode in which you could plot more than two (simple) track points would be very cool. If added by absolute directions (straight path) for each part of the route would make a Ship Mode. Visualization: dots with the wind direction and distance as indicator of where to go. Sky rocketing would it be if a straight line was drawn from present position to next track point :p but I guess this all would be a bieg job to realize.

Custom road drawing and free navigation are both already planed :)

Quote:

Originally Posted by 7thd (Post 900154)
<general question>
The GPX files. (What prevends them from being opened in Google Earth?) Is it possible to mutate those on PC (other program)?

Does Google Earth support GPX (it works mostly with KML, IMO)? I tried to upload a modRana GPX tracklog to OpenStreatMap a while ago and it worked.

Quote:

Originally Posted by 白い熊 (Post 900375)
So that I don't forget, I propose to move the cursor point when automatic display orientation is on...

Currently, your vehicle is exactly in the middle of the screen, which doesn't make sense, you don't have to see half screen of what you've already passed. So when auto-rotation is on, meaning you're driving, your position should be on the bottom of the screen, with maybe MAX 10 percent of what's behind you visible, the rest should be ahead of you, so you can consider what's coming up...

Yep, this will be really useful & is planed (for quite a while already actually).

Quote:

Originally Posted by woody14619 (Post 900838)
MartinK,
I have to turn debugging on, but I've had at least 2 occasions now when modRana has "closed" and turned off GPS, but remained "running" in the background. (eg, it's still there in top, like 2 hours later.) Not sure why, but... one more thing to add to the list? :P

I suppose you have 0.20-3 or later ? There was a fix in 0.20-3 for an issue just like you describe (modRana not shutting down properly - caused by stuck non-demonic threads). If you had this happen in the current version, I might not have fixed this completely...

BTW, this might be quite a nasty bug as it would mean that the used memory would not get released + there might even be some useless CPU activity. Even worse if such processes accumulate.

skykooler 2010-12-21 04:25

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 900993)
Looks like a skiped this question last time:



Well, even though I currently don't see this as a high priority, it would quite easy to do. All graphical icons in modRana are just PNG files (you can find them in /opt/modrana/icons/bitmap) and other GUI elements are drawn with cairo at runtime. Skinning support would just mean a per-skin bitmap folder + color definitions for cairo drawing.

Nice! I am starting on a new ModRana theme right now! Maybe eventually we will have themes which integrate with the system themes? (Obviously that will require a lot of work on the theme artists' parts ;) .)

BTW I too have been getting the "street slash emphasis" problem. I noticed also that voice alerts seem to come while I'm in the intersection - could these possibly be moved back about fifty yards or so? Also, would it be possible to round the distance? "In four hundred and ninety-five point eight yards" is no more helpful than "In five hundred yards" and takes a good while longer for eSpeak to say.

petur 2010-12-21 08:59

Re: [Announce] modRana: a flexible GPS navigation system
 
MartinK, I have two usability questions/requests:

1. I think it would be nice to only unlock the auto-centering when the user actually swipes, as rerouting or going into the menu always unlocks the auto-center. So ignore normal taps :)

2. For me the route info box should be only shown when I tap the screen, so that it is only shown when also the menu and maximize buttons are shown. And the routing box could be smaller too :)

I have recently started using ModRana as my main routing device, and I am generally happy with it! Keep up the good work man!

petur 2010-12-21 09:01

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by 7thd (Post 900154)
<general question>
The GPX files. (What prevends them from being opened in Google Earth?) Is it possible to mutate those on PC (other program)?

There are some (free) sites that offer to convert GPX to KML/KMZ, and even view them in a Google Maps page online. Easy to find with Google ;)

zod 2010-12-21 14:30

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by petur (Post 898661)
Just noticed that TTS does not quite follow the device volume setting, if I lower volume using the hardware keys, TTS volume lowers, but it can get louder by itself again, or new TTS messages start at full volume.
This is with the latest version in -devel

look at /etc/pulse/xpolicy.conf and search for espeak
I spent many hours searching how to hear messages when mediaplayer is playing (it mutes all other apps).
solution was to write:
- - - - - -
[stream]
exe = espeak
group = ringtone
- - - - - -
into /etc/pulse/xpolicy.conf. btw espeakcaller does same!

now i can listen something over FM-transmitter and also hear navigation messages.

petur 2010-12-21 14:32

Re: [Announce] modRana: a flexible GPS navigation system
 
Thanks! What does that mean for the volume - would that make it use/follow the ringtone volume setting?

woody14619 2010-12-21 20:21

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by MartinK (Post 900993)
Well, thats weird, I'll investigate :) At least it should not be caused by the packaging scripts as all the database files are created on runtime and are thus not listed in the package manifest. also the scripts don't do anything in MyDocs, at all.

Maybe it's part of the cache cleanup code, since the files exist in the same area? If it cleans up anything in .maps, that would nuke the sql files, assuming it tries to clean up tiles if sqllite is enabled? :)

Quote:

Originally Posted by MartinK (Post 900993)
Concerning regexp support, after studing the documentation in more detail, it turns out that modRana already supports regexps :)

I could have told you that a while ago... sorry. :) Since the first time I was told to turn on to Some Street slash emphasis, I knew what it was doing. I work with regular expressions a lot, and any time a substitution eats a random character, it's usually because of a stray period. :)

Quote:

Originally Posted by MartinK (Post 900993)
I suppose you have 0.20-3 or later ? There was a fix in 0.20-3 for an issue just like you describe (modRana not shutting down properly - caused by stuck non-demonic threads). If you had this happen in the current version, I might not have fixed this completely...

Yes, This was with 20-3. I was running late last night and didn't get to test a new theory I was having with the 9150 bug. I think it may be related to tile downloading on GPRS (not 3G) and having the stream interrupted by a text or call. This is more likely a hardware / kernel fault though.

skykooler 2010-12-22 04:28

Re: [Announce] modRana: a flexible GPS navigation system
 
I have created the first Modrana theme!! It is based mainly on iPhone icons. Download from http://www.mediafire.com/file/8p51x4.../bitmap.tar.gz to the n900. From xterm, run
Code:

root
cd <directory/you/downloaded/to>
gzip -d bitmap.tar.gz
tar -xvf bitmap.tar
mv /opt/modrana/icons/bitmap /opt/modrana/icons/bitmap~
mv bitmap /opt/modrana/icons

and restart Modrana if it is running. If someone knows a better way to extract this please tell me!

BTW martinK is some of the UI hardcoded in Cairo? My theme isn't changing the plain text boxes.
Also would it be possible in the future to use a user directory (such as /home/user/modrana) for storage of customizable elements so they are not overwritten on every update?

skykooler 2010-12-22 04:47

Re: [Announce] modRana: a flexible GPS navigation system
 
3 Attachment(s)
Here are some screenshots of Modrana with the new theme.

As can be seen in the third one, I am unable to modify the plain text boxes.

skykooler 2010-12-22 23:47

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by petur (Post 901127)
There are some (free) sites that offer to convert GPX to KML/KMZ, and even view them in a Google Maps page online. Easy to find with Google ;)

Google Earth can open GPX files. Just go to File > Open and select "Gps (*.gpx *.loc *.mps *.gdb *.tcx *.nmea *.log *.wpt *.plt *.pcx)" from the "Files of type:" dropdown.

petur 2010-12-23 08:18

Re: [Announce] modRana: a flexible GPS navigation system
 
oh nice, thanks... but I use Google Maps far more than Earth (which is just a gimmick for me). And getting Google Earth to run properly on linux can be a pita

slender 2010-12-23 08:31

Re: [Announce] modRana: a flexible GPS navigation system
 
Enhancement request:
-Text centered in buttons and same font & style.

skykooler 2010-12-23 22:01

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by petur (Post 902633)
oh nice, thanks... but I use Google Maps far more than Earth (which is just a gimmick for me). And getting Google Earth to run properly on linux can be a pita

I use Linux too (Mint specifically). If Google Earth is giving you a "43: ./googleearth-bin: not found" error, try running
Code:

sudo apt-get install lsb-core
and see if that helps. Dunno why Google doesn't make this a dependency.

Quote from a Google Maps help thread:
Quote:

I managed to import a GPX file directly to my maps, I think it is quite a recent change. I just used the "Import" menu in My Maps and supplied a GPX file istead of a KML file. It just worked!
I have not had success with this; Google Maps gives me a "Couldn't finish" error. I don't know what exactly is up with this.

MartinK 2010-12-25 22:17

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by skykooler (Post 901026)
I noticed also that voice alerts seem to come while I'm in the intersection - could these possibly be moved back about fifty yards or so?

Try to tweak the "Point reached distance" in options->navigation, this is what currently triggers the last routing message and switches to the next point. BTW, I'm currently working on improving the navigation functionality, including among others custom voice message triggers. :)

Quote:

Originally Posted by skykooler (Post 901026)
Also, would it be possible to round the distance? "In four hundred and ninety-five point eight yards" is no more helpful than "In five hundred yards" and takes a good while longer for eSpeak to say.

Good point about unnecessary long voice messages, I'll ad some rounding.

Quote:

Originally Posted by petur (Post 901124)
MartinK, I have two usability questions/requests:

1. I think it would be nice to only unlock the auto-centering when the user actually swipes, as rerouting or going into the menu always unlocks the auto-center. So ignore normal taps :)

Well, it actually works like this when controlled by mouse :) IMO, this is because the touchscreen registers even a click as a slight drag which makes the centering disengage. I'll try to set some "drag-threshold" to fix this.

Quote:

Originally Posted by petur (Post 901124)
2. For me the route info box should be only shown when I tap the screen, so that it is only shown when also the menu and maximize buttons are shown. And the routing box could be smaller too :)

I'm going to add a minimize button (+ next/last turn buttons) on to of the routing info box. I guess I can also add a "hide with main buttons" option for the routing box. :)

Quote:

Originally Posted by zod (Post 901315)
look at /etc/pulse/xpolicy.conf and search for espeak
I spent many hours searching how to hear messages when mediaplayer is playing (it mutes all other apps).
solution was to write:
- - - - - -
[stream]
exe = espeak
group = ringtone
- - - - - -
into /etc/pulse/xpolicy.conf. btw espeakcaller does same!

now i can listen something over FM-transmitter and also hear navigation messages.

I don't I want that modRana fiddles with important OS config files, but I'll add your "how-to" to the first post & on the project wiki, so that users can do this on their own. :) BTW, I'm going to add dbus-based medial player pausing probably in next release.

Quote:

Originally Posted by woody14619 (Post 901577)
Maybe it's part of the cache cleanup code, since the files exist in the same area? If it cleans up anything in .maps, that would nuke the sql files, assuming it tries to clean up tiles if sqllite is enabled? :)

There is no "cache cleanup" (eq. stuffing tile images to sqlite & deleting them afterwards) yet, although this is, of course, planed. :)

BTW, a reverse process (sqlite -> tiles) would be also possible...

Quote:

Originally Posted by skykooler (Post 901788)
I have created the first Modrana theme!! It is based mainly on iPhone icons. Download from http://www.mediafire.com/file/8p51x4.../bitmap.tar.gz to the n900.

Wow, nice! :D

Quote:

Originally Posted by skykooler (Post 901788)
BTW martinK is some of the UI hardcoded in Cairo? My theme isn't changing the plain text boxes.

Yep, some gui elements (centering button, position indicator, point descriptors, the blue box widgets, all buttons that have only text on them,etc.) are drawn with cairo at runtime. But I can add something like a color-settings file so that you can at least set the colors & opacity to go with the theme.
It might be also possible to render an image under/instead of those elements, preferably an SVG due to scaling but bitmap should also work, even if it might not be always sharp.

Quote:

Originally Posted by skykooler (Post 901788)
Also would it be possible in the future to use a user directory (such as /home/user/modrana) for storage of customizable elements so they are not overwritten on every update?

Or maybe even something like ~/MyDocs/modrana/themes or ~/MyDocs/modrana/themes so that it is visible and accessible from the file manager and in mass-storage mode ?

Quote:

Originally Posted by slender (Post 902635)
Enhancement request:
-Text centered in buttons and same font & style.

All buttons already use the same font/style, although the size-scaling is often a bit quirky. But good point about centering the labels, I'll look into it.

skykooler 2010-12-27 07:02

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Or maybe even something like ~/MyDocs/modrana/themes or ~/MyDocs/modrana/themes so that it is visible and accessible from the file manager and in mass-storage mode ?
Good idea. I generally use FileBox so I forget that most directories aren't easily accessible.

romanianusa 2010-12-28 03:10

Re: [Announce] modRana: a flexible GPS navigation system
 
Ok, i am new to this...can you use the map without internet or do you have to have internet to use the map? So if you're out in the car and don't have internet access...basically you can't use it?? Can you download and save map ?

edit: Ok, i just notice this thing can't do offline routing! Is it possible to add this feature?

Wikiwide 2010-12-28 07:15

Re: [Announce] modRana: a flexible GPS navigation system
 
Quote:

Originally Posted by romanianusa (Post 905730)
Ok, i am new to this...can you use the map without internet or do you have to have internet to use the map? So if you're out in the car and no have internet access...basically can't use it?? Can you download and save map ?

edit: Ok, i just notice this thing can't do offline routing! Is it possible to add this feature?

Maps should be downloaded to N900 and it can be done at home beforehand (home Internet is usually faster and cheaper than mobile); don't download the whole map of the world, it's impossible (takes too much memory), just take the detailed region which you are going to visit, like a part of a city.

Maps should be downloaded to /home/user/MyDocs/.maps/ if "file storage" in Modrana is set to "files", not "sqlite". To prevent Modrana from downloading tiles over WiFi on the fly, set "Network"->"Only for important data".

For example, there are several programs to download OpenStreetMaps:
http://wiki.openstreetmap.org/wiki/C...le_downloading

Google and Yahoo Maps can be downloaded, too.
http://wiki.openstreetmap.org/wiki/GMapCatcher
http://code.google.com/p/gmapcatcher/

Offline routing isn't easy to add. It requires using and analysing vector data, understanding which paths are only for human/automobile/bicycle, one-way only roads, etc. But it may be added later, there is a ticket for it, I heard.


All times are GMT. The time now is 14:54.

vBulletin® Version 3.8.8