Closed bsubei closed 9 years ago
doing this in this node will make it so much easier to make it work for the other line_detection nodes we make (for the other algorithms). If we make the current line_detection node good enough and complete, we'll just clone it and modify the algorithm.
this obviously means I first need to implement a ROS parameter server (which I didn't do yet)
Helpful links:
This tutorial goes over setting up dynamic reconfig for a python node (groovy distro, hope this works on indigo) http://wiki.ros.org/dynamic_reconfigure/Tutorials/SettingUpDynamicReconfigureForANode(python)
so, to be precise, what needs to be done is to create a cfg file for the parameters to be changed, and then rewrite the line_detection nodes to be dynamic_reconfigure servers (so they can listen to rqt_reconfigure that sends params).
also, it's important to note that we want to implement dynamic_reconfigure as opposed to rosparam, because rosparam is not meant for parameters that change.
this feature introduced a bug, where the parameters that are dynamically changed are not validated before being plugged in to opencv. Check issue #25
also, abandoning rosparam branch (no need for rosparam if we use dynamic_reconfigure)
we need to be able to change parameters like Hough or Histogram stuff on the fly using dynamic_reconfigure (instead of having a separate GUI program with sliders for the parameters). That GUI program won't work when we have multiple algorithms.