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

Including pcl_ros for transformPointCloud

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

RosFan19 gravatar image

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

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 -0500

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 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 4,020 times

Last updated: Mar 12 '15