upload-scripts icon indicating copy to clipboard operation
upload-scripts copied to clipboard

Upload tracks taken on Waylens cameras

Open LivInTheLookingGlass opened this issue 6 years ago • 11 comments

Recently Telenav and OSM US made a partnership to give out cameras to OSM contributors. It would be nice if we could upload tracks from this partnership using a fully FLOSS stack. I can submit example layouts to be used for these scripts

LivInTheLookingGlass avatar Jun 10 '18 20:06 LivInTheLookingGlass

Hey @gappleto97, we don't really have someone to work on that in the near future unfortunately. But to make sure we're on the same page, can you share the FLOSS examples you were thinking about? Not sure how that differs to the scripts on this repo ( I know Waylens is not currently supported, but not sure what FLOSS involves extra )

alexandrui-telenav avatar Jun 15 '18 12:06 alexandrui-telenav

I meant the layout of things on the SD card. Directory structures, file types, etc.

FLOSS = Freely Licensed Open Source Software

LivInTheLookingGlass avatar Jun 17 '18 09:06 LivInTheLookingGlass

File management is under Waylens firmware's control where we can't really do much ( it's being used by the non-OSC Waylens cameras as well )..

alexandrui-telenav avatar Jun 18 '18 12:06 alexandrui-telenav

Is there any documentation about how data is structured in the .idx files? The images are just in a 1 FPS video stream and would be trivial to pull out using ffmpeg or similar. But the GPS info seems to be in the .idx files and it isn't in plain text and is mixed with syslog output as well.

ToeBee avatar Feb 14 '19 15:02 ToeBee

@ToeBee We are not aware of any documentation.

bogdans-telenav avatar Feb 14 '19 15:02 bogdans-telenav

@ToeBee I was able to get a parseable CSV by using Waylens Studio and selecting the "Export Raw Data" option: screen shot 2019-02-14 at 8 56 19 am

This produces a CSV file like this: https://docs.google.com/spreadsheets/d/1AVzWMV3tckRaN-YqWxL5pVK7hZGBzQzsh3CHYLVn2wE/edit?usp=sharing

CSV columns:

  • TimeSinceEpoch(s)
  • PlayTime(s)
  • Frame Index
  • GPS Update
  • Accuracy (hdop)
  • Accuracy (vdop)
  • Latitude
  • Longitude
  • Altitude (m)
  • GPS Speed (MPH)
  • Heading
  • OBD Update
  • RPM
  • OBD Speed (MPH)
  • Pressure from OBD(kPa)
  • Throttle Position (%)
  • Boost (inHg)
  • Coolant Temperature (Celsius)
  • Oil Temperature (Celsius)
  • Telemetry Update
  • Pitch (rad)
  • Roll (rad)
  • accX (G)
  • accY (G)
  • accZ (G)
  • gyroX (Dps)
  • gyroY (Dps)
  • gyroZ (Dps)
  • YAW (rad)
  • Pressure from Telemetry(kPa)

jalessio avatar Feb 14 '19 16:02 jalessio

We can easily make a script to parse this and generate exif data.

bogdans-telenav avatar Feb 14 '19 16:02 bogdans-telenav

And here are some rough notes I took the last time I attempted to sort this out -- looks like the last time I touched this was in July 2018. I ran out of time before I actually got it all tied together but this is probably a good starting point for others: https://gist.github.com/jalessio/6ccbc203fc80540c24b984600831b644

This workflow requires using the Waylens Studio GUI app at the beginning to produce the CSV, which is not ideal since it requires manual steps. It would be much better if one could parse the files directly from the SD card, but I didn't make any attempt at that.

jalessio avatar Feb 14 '19 16:02 jalessio

We can easily make a script to parse this and generate exif data.

@bogdans-telenav per your comment on 2/14/19 is this something you're still willing to do? If you don't want to take it on yourself, I'll give it a try but in that case any pointers you can provide would be a great help in getting started. Thanks!

jalessio avatar Jul 26 '19 18:07 jalessio

As there is a process that the waylens uploads the recordings to telenav servers, telenav should have the spec of the incoming files to parse and geo-ref them?

polarbearing avatar Nov 25 '19 22:11 polarbearing

Any news on this issue under the new kartaview branding?

polarbearing avatar Dec 03 '20 21:12 polarbearing