Ask Your Question
0

Including pcl_ros for transformPointCloud

asked 2015-03-11 17:40:31 -0600

RosFan19 gravatar image

updated 2015-03-12 02:45:01 -0600

gvdhoorn gravatar image

Hi,

So I'm trying to use pcl_ros method:

transformPointCloud (const std::string &target_frame, const sensor_msgs::PointCloud2 &in, sensor_msgs::PointCloud2 &out, const tf::TransformListener &tf_listener)

from http://docs.ros.org/api/pcl_ros/html/...

But I'm not sure what pcl_ros/... to include. Like msot things, it doesn't seem to be under #include <pcl_ros/point_cloud.h>

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-03-11 18:03:03 -0600

Thomas D gravatar image

Use

#include <pcl_ros/transforms.h>

You can find documentation for pcl_ros in ROS Inidigo at docs.ros.org. I found that page by googling for pcl_ros transformpointcloud. The linked file says that the function pcl_ros::transformPointCloud() is defined in transforms.hpp.

edit flag offensive delete link more

Comments

Keep in mind that you WILL need to have PCL installed, as this header is dependent on pcl/common/transforms.h

M@t gravatar image M@t  ( 2020-07-15 22:04:29 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-11 17:40:31 -0600

Seen: 2,832 times

Last updated: Mar 12 '15