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

high cpu usage #9

Closed
zhengzh opened this issue May 3, 2017 · 4 comments
Closed

high cpu usage #9

zhengzh opened this issue May 3, 2017 · 4 comments

Comments

@zhengzh
Copy link

zhengzh commented May 3, 2017

tf2_->transform(*cloud_msg, *cloud, target_frame_, ros::Duration(tolerance_));
high cpu usage -_-

@zhengzh zhengzh closed this as completed May 3, 2017
@zhengzh zhengzh reopened this May 3, 2017
@jonbinney
Copy link

How many points are in the point cloud you are transforming? How often are you transforming it? What CPU are you on? What ROS distro are you on?

@zhengzh
Copy link
Author

zhengzh commented May 3, 2017

@jonbinney 640*480 points, ubuntu 16.04, kinect v1 (30fps), thinkpad t440p (i7 cpu)
the fps drop down to about 0.6 fps When executing this line of code
30(fps) when i comment it out.
I don't know why tf2_->transform is so slow

@paulbovbel
Copy link
Member

paulbovbel commented May 3, 2017

Tf2 will transform every single point in the cloud. I've found it helpful to run the point cloud through a PCL voxel filter first.

Transforming the point cloud is an expensive operation. If you don't need the transform, don't provide a target frame, or better yet, use depthimage_to_laserscan.

@zhengzh
Copy link
Author

zhengzh commented May 3, 2017

@paulbovbel thanks! I need to transform the point cloud from kinect_link to base_link, i will try pcl library,

fmessmer pushed a commit to fmessmer/pointcloud_to_laserscan that referenced this issue Dec 19, 2017
prevent console output flooding with errors
knb added a commit to knb/pointcloud_to_laserscan that referenced this issue Jun 30, 2022
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

3 participants