36 int main(
int argc,
char **argv)
39 ros::init(argc, argv,
"region_growing_nodelet");
43 string pointcloud_input;
45 string cluster_markers;
46 string cluster_markers_text;
51 ros::NodeHandle private_node_handle_(
"~");
52 private_node_handle_.param(
"pointcloud_input", pointcloud_input,
string(
"pointcloud_input"));
53 private_node_handle_.param(
"laser_input", laser_input,
string(
"laser_input"));
54 private_node_handle_.param(
"cluster_markers", cluster_markers,
string(
"cluster_markers"));
55 private_node_handle_.param(
"cluster_markers_text", cluster_markers_text,
string(
"cluster_markers_text"));
59 private_node_handle_.param(
"radius", rg_class->
radius,
double(rg_class->
radius));
68 ros::Publisher pub_markers=n.advertise<visualization_msgs::Marker>(cluster_markers.c_str(),1000);
69 ros::Publisher pub_markers_text=n.advertise<visualization_msgs::Marker>(cluster_markers_text.c_str(),1000);
region_growing_node class main declaration
double min_cluster_size
Minimum points to consider the cluster.
ros::Publisher * pub_markers_text_ptr
A publisher pointer to add some text in clusters.
ros::Publisher * pub_markers_ptr
A publisher pointer to a marker.
double max_cluster_size
Maximum points to consider the cluster.
double clustering_tolerance
Tolerance between points on the same cluster.
double radius
The radius limit for region growing algorithm.
int main(int argc, char **argv)