Getting the classifier from a data set
Pre-requisites
Install sklearn 0.17.1:
Install Cython:
Clone the Python-pcl repository from the b-it-bots github page:
Go inside the python-pcl folder and run the following:
Save the classifier
Go to the location of the 'train_classifier.py' file inside your catkin workspace and run that file with the given parameters:
Implement the classifier
Run the following to be able to use the classifier:
To visualize your result on rviz, add the PointCloud2, Marker and MarkerArray feature in the rviz menu.
In the Marker tab, select the "/mcr_perception/scene_segmentation/bounding_boxes" topic.
In the MarkerArray tab, select the "/mcr_perception/scene_segmentation/labels" topic.
In the PointCloud2 tab, select "/mcr_perception/scene_segmentation/tabletop_clusters" topic.
Publish the message 'e_start':
Publish the message 'e_add_cloud_start':
Publish the message 'e_segment':
This last one will should enable the visualization of the classifier on rviz.
Last updated
Was this helpful?