An obstacle course navigating robot
An obstacle course navigating robot
This package targets ROS Kinetic.
Requires iscumd/SharedROSNodes V1.0.0.
L---------------M
| |
| tri-fold | Height is always perpendicular to the robot
| | Width is always parallel to the robot
O---------------N
|
| <-- wooden stick
|
-------
robot
ex. param name="white_line_detection_topLeftXpix" value="247"
Calculate ratio. ratio = Width/Height ( if using the 48x36in tri-fold ratio is 1.3333)
plug the value into the vision_test.launch under “ratio”.
Now run white_line_detection.cpp using ros, and save the image in the window labeled “WARPED” (there is a save icon)
Open the image labeled “WARPED” and get the new pixel coordinates of the diagonal corners that you found their respective XY distances.
To calculate the constants, use either the source “calibration_formula.cpp”, or the executable “calibrate” located in Ohm2017/Camera_Calibration, and plug in values for the new pixel coordinates from step 9 and their respective XY distances from step 3.
To enable video recording or drawing overlays, in vision_test.launch under “Enable recording” and “Enable drawing” respectively, change false to true. Recording records the raw footage.