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

Revision history [back]

click to hide/show revision 1
initial version

Hello there,

I think your code is having a minor typo mistake.

PCFilter() : Node("pointcloud_filters") {
    pub_ = this->create_publisher<pcl::PointCloud<pcl::PointXYZI>>("filters_output", 1);
    ...}

On this line you have added extra ">" Can you please have a look at this. <pcl::PointCloud<pcl::PointXYZI>>

Hello there,

I think your code is having a minor typo mistake.

PCFilter() : Node("pointcloud_filters") {
    pub_ = this->create_publisher<pcl::PointCloud<pcl::PointXYZI>>("filters_output", 1);
1);  # Typo Extra <
    ...}

On this line you have added extra ">" Can you please have a look at this. <pcl::PointCloud<pcl::PointXYZI>>

Hello there,

I think your code is having a minor typo mistake.

PCFilter() : Node("pointcloud_filters") {
    pub_ = this->create_publisher<pcl::PointCloud<pcl::PointXYZI>>("filters_output", 1);   # Typo Extra <
>

    ...}

On this line you have added extra ">" Can you please have a look at this. <pcl::PointCloud<pcl::PointXYZI>>

Hello there,

I think your code is having a minor typo mistake.

PCFilter() : Node("pointcloud_filters") {
    pub_ = this->create_publisher<pcl::PointCloud<pcl::PointXYZI>>("filters_output", 1); 
    # Typo Extra >

    ...}

On this line you have added extra ">" Can you please have a look at this. <pcl::PointCloud<pcl::PointXYZI>>


Instead of that you can use:

 typedef pcl::PointCloud<pcl::PointXYZ> PCLCloud;
 graspub.publish(*grasp_points);

Hello there,

I think your code is having a minor typo mistake.

PCFilter() : Node("pointcloud_filters") {
    pub_ = this->create_publisher<pcl::PointCloud<pcl::PointXYZI>>("filters_output", 1); 
    # Typo Extra >

    ...}

On this line you have added extra ">" Can you please have a look at this. <pcl::PointCloud<pcl::PointXYZI>>


Instead of that you can use:use: #q187588

 typedef pcl::PointCloud<pcl::PointXYZ> PCLCloud;
 graspub.publish(*grasp_points);