ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think the answer of paulbovbel is the correct one. You just forgot to put a space in this line (between the >> ):
distance_sub = nh.subscribe<pcl::pointcloud<pcl::pointxyz>>("/distance_sensors", 1, &SafetyBelt::distanceCallback, this);
Change to this:
distance_sub = nh.subscribe<pcl::pointcloud<pcl::pointxyz> >("/distance_sensors", 1, &SafetyBelt::distanceCallback, this);
2 | No.2 Revision |
I think the answer of paulbovbel is the correct one. You just forgot to put a space in this line (between the >> ):
Change to this: