ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

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


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)


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

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

Thomas D gravatar image


#include <pcl_ros/transforms.h>

You can find documentation for pcl_ros in ROS Inidigo at 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


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

Question Tools

1 follower


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

Seen: 3,992 times

Last updated: Mar 12 '15