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

Convert scan_time and time_increment from nanoseconds to seconds for ROS msgs #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rhaschke
Copy link

Fixes #31.
ROS msgs expect time_increment and scan_time in seconds (see msg documentation). However, internally scan_time is computed from stamp measures in nanoseconds:

double scan_time = tim_scan_end - tim_scan_start;

tim_scan_start = nodes[0].stamp;
tim_scan_end = nodes[0].stamp;

(*node).stamp = m_ns + package_Sample_Index*m_pointTime;

m_ns = getTime() - (nowPackageNum*3 +10)*trans_delay - (nowPackageNum -1)*m_pointTime;

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

Successfully merging this pull request may close these issues.

LaserScan messages have invalid time_increment and scan_time values!
1 participant