question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Erroneous trajectory of egocentric vehicle

See original GitHub issue

Using the code in the Readme for converting imu to world coordinates, I plot the trajectory of the egocentric vehicle in 2d plane(xy) and the trajectory doesn’t seem to be correct in some of the videos.

For instance, in City category for drive 93, I get this plot which doesn’t look right at all ego_trajectory_wrong

after plotting point_w array below

point_imu = np.array([0,0,0,1])
point_w = [o.T_w_imu.dot(point_imu) for o in data.oxts]

Whereas the same code for drive 15 in Road category gives the correct trajectory of the egocentric vehicle below:

ego_trajectory_correct

Are the GPS/IMU tags noisy and are x and y in meters here?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
leeclemnetcommented, Nov 14, 2017

It looks like the GPS/INS system didn’t have a good lock on that particular sequence. Looking at the first OXTS packet in the dataset, we have

pos_accuracy=43.329367454418, 
vel_accuracy=0.34225136961012, 
navstat=4, 
numsats=2, 
posmode=0, 
velmode=0, 
orimode=0

And this seems to be representative of the entire sequence. So if the position accuracy (I assume this is a standard deviation or similar) is 20-40 meters everywhere, that would explain why your first plot doesn’t make sense.

In contrast, looking at 2011_09_30_drive_0018_sync, the position accuracy is on the order of centimeters, there are significantly more satellites being used, and the pos/vel/orimode flags are different:

pos_accuracy=0.067801179930736, 
vel_accuracy=0.017029386365926, 
navstat=4, 
numsats=9, 
posmode=5, 
velmode=5, 
orimode=6
0reactions
leeclemnetcommented, Nov 14, 2017

I don’t have a straight answer for this because I usually just use the raw sequences corresponding to the odometry benchmark.

As far as I know, there isn’t a list showing which raw sequences have good GPS and which ones don’t. Excluding measurements or entire sequences with a pos_accuracy above some threshold seems like a reasonable thing to try.

I suspect posmode=0 is also a sign that something has gone wrong, but I’m not familiar with what these mode flags actually mean. You could try searching for some documentation about the OXTS packet format.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vehicle Trajectory Prediction Method Coupled With Ego ...
This article proposes a dual-attention mechanism trajectory prediction method based on long short-term memory encoding that is coupled with the ...
Read more >
Pedestrian potentially dangerous behaviour prediction based ...
Abstract This paper develops a pedestrian potentially dangerous behaviour prediction method based on attention-long-short-term memory ...
Read more >
Pedestrian and Ego-Vehicle Trajectory Prediction From ...
The method explicitly disentangles actual move- ment of pedestrians in real world from the ego-motion of the vehicle, using a future pose prediction...
Read more >
Motion prediction of ego vehicle in complex scenarios
In this thesis, we study the trajectory prediction problem of an ego vehicle,. i.e. ”predicting” the location of the ego vehicle in the...
Read more >
A Comparative Study of Ego-centric and Cooperative ...
In this paper, we proposed two perception models, ap- plicable to any vehicle trajectory dataset recorded by a top-down view sensor, to model...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found