This package contains the ROS wrapper for the Geometrical Stem Detection library.
cd catkin_ws
catkin build piros_stemdet
Launch the node for stem detection and echoing the stem:
roslaunch piros_stemdet standalone.launch
or launch with bagfile:
roslaunch piros_stemdet example.launch
To modify parameters, use the config file in ./config/stemdetection_default.yaml, which contains the following parameters:
in_mask: /piros_vegsec/mask
mask topic to subscribe toin_rgb: /stereo_rgb/right/image_raw_sync
image rgb topicin_nir: /stereo_nir/right/image_raw_sync
image nir topicout_mask: /piros_stemdet/mask
annotated mask topic which is published ifverbose = 2
out_stem: /piros_stemdet/stem
published stem topicclosing_size: 6
Kernel size for the closing operationverbose: 2
0 = just stem topic, 1 = a few words, 2 = a whole novel
To modify the parameters of the visualization node, use the config file in ./config/stemecho_default.yaml:
text_subscriber_topic: /piros_stemdet/stem
subscribed stem topic to echo