Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong sensor head issue #7

Open
trgross-dfki opened this issue Jul 2, 2018 · 2 comments
Open

Wrong sensor head issue #7

trgross-dfki opened this issue Jul 2, 2018 · 2 comments

Comments

@trgross-dfki
Copy link

When testing the driver we always receive the following error:

Received data from a different sensor head!
Received data from a different sensor head!
Received data from a different sensor head!
1.187 [ ERROR  ][OrbRunner] velodyne: Read timeout! Received no new packets from the sensor.

This error can be traced back to the following block of code:

if(buffer[VELODYNE_DATA_MSG_BUFFER_SIZE-1] != sensor_type)
{
std::cerr << "Received data from a different sensor head!" << std::endl;
return -buffer_size;
}

Per Velodyne documentation, buffer[VELODYNE_DATA_MSG_BUFFER_SIZE-1] should be equal to one of the following values:

grafik

From a bit of testing it seems like buffer[VELODYNE_DATA_MSG_BUFFER_SIZE-1] is always 0x00 when receiving data from a VLP16 (should be 0x22). It is unclear what causes this issue.

Removing the above mentioned block of code allows the driver to work like normal.

@jmachowinski
Copy link

Old firmware on the scanner ?

@trgross-dfki
Copy link
Author

Updated Velodyne to most recent version, 3.0.38, but still having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants