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

Revision history [back]

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);

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);