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

c16输出LaserScan时话题报错Message Filter dropping message: frame 'laser_link' at time 1.681 for reason 'Unknown' #2

Open
xiaoming-sun6 opened this issue Apr 10, 2023 · 0 comments

Comments

@xiaoming-sun6
Copy link

我是foxy版本,没有用gps授时, tf是odom->base_link->laser_link,如果rviz2的fix frame 是odom时rviz2报错,如果rviz2的fix frame是base_link时没有rviz2错误.但是不管rviz2的fix frame是什么,使用slam_toolbox等框架时都会报上述错误。但是点云数据不管rviz2的fix frame是什么都不会报错。
我的解决方法是把src下的lslidar_driver.cpp文件的void lslidarDriver::publishScan()函数(大概在260行)下的
scan_msg->header.stamp = rclcpp::Time(sweep_end_time) 修改为 scan_msg->header.stamp = this->get_clock()->now();`
最后解决问题。

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

1 participant