This script calls the RequestData action to get the latest point cloud. Primitives are then searched and fitted to the point cloud using the FitPrimitive action and published as an RViz markerArray under the /primitive_markers topic. In this sample node the primitives are planes.

Parameters

~parameter_set (string, default: "fit_primitive")

  • The name of the parameter set that is used for capturing the images and calculating the point cloud.
~timeout (double, default: 60)
  • A timeout in seconds for waiting for the camera node to become available.
~rate (double, default: 1)
  • The rate at which planes and point clouds are published.
~failure_probability (double, default: 1e-6)
  • Specifies the tolerated failure probability for the RANSAC procedure.
~inlier_fraction (double, default: 0.015)
  • Specifies the guessed a priori inlier fraction of the primitives, i.e. the percentage of points expected to be on the primitive.
~inlier_threshold (double, default: 0.001)
  • Specifies the threshold in meters to judge if a point is an inlier.
~ransac_iterations (integer, default: 0)
  • Specifies the number of iterations to be taken by the RANSAC algorithm. If the number of iterations is specified directly the inlier_fraction and failure_probability parameters will be ignored.

Published Topics

primitive_markers (visualization_msgs/MarkerArray)

  • Markers for the found planes in the point cloud.

Wiki: ensenso_driver/Nodes/fit_primitive (last edited 2019-05-02 12:13:39 by YasinGuenduez)