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

Help needed - How to make sure the mcl_3dl finish process the scan within the supposed computation time? #335

Open
HappySamuel opened this issue Sep 3, 2020 · 0 comments
Labels

Comments

@HappySamuel
Copy link

Hi @at-wat

According to my understanding, the mcl_3dl is publishing the amcl_pose or tf (map->odom) at a rate of the incoming cloud from 3d lidar, as long as accum_cloud = 1. For example:
10Hz 3d lidar pointcloud -> 10Hz publishing rate of amcl_pose and tf (0.1 sec)
20Hz 3d lidar pointcloud -> 20Hz publishing rate of amcl_pose and tf (0.05 sec)

I have added lines of code to compute the computing time for each msg processed inside the cbCloud. And found that when i increase the num_particles for any cases of above, it will result the some of computation time of each Callback will exceed the supposed time (0.1sec or 0.05sec), which will eventually causing the localization giving outdated data, as every incoming msgs have to be processed. This cause the navigation using the outdated location or tf info to perform navigation, which makes the robot to move in a zigzagging pattern.

Is there a way or any parameters that can ensure the computation time of each Callback to finish on time, based on the Hz of the sensor data?

Best,
Samuel

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

No branches or pull requests

2 participants