Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laser Line Calibration #111

Draft
wants to merge 37 commits into
base: master
Choose a base branch
from

Conversation

ArjanAttwal
Copy link

No description provided.

ArjanAttwal and others added 30 commits July 2, 2023 15:57
Changed findLaserInImage to return weighted average mean of all points detected on the laser line (should be relatively constant)
Addition of fit_and_save for a line not a plane
added fit_and_save under Class:Laser
added fi andsave line to class laser calibrator
added notes to Class: Plane to help understand code and adapt to Class: Line
Class:Line, adapted from coeff and distance functions
reverted findLaserInImage
changed findLaserInImage to return the coordinate for the centre pixel
made initial changes to fit_and_save_line to actually fit a line and not a plane
added new function of plot_pointcloud _and_lines
Completed plot_pointcloud_and_Lines
included import of Class Lines and plot_points_and_lines
updated cal to use fit_and_save_line
fixed ray intersection for class line
added in missing end bracket
Readd the import for Plane
Changed remaining parts of fit_and_save_line to create line and not plane.

Also updated findLaserInImage to accept middle column as the only pixel line to check.
Ensured correct variables are being called eg. normal is now direction
Removed plot_pointcloud_and_planes.
REINCLUDE!!!!

Updated some parts to accept line not plane
updated run_ransac to use estimate function instead of fit_plane function
updated to understand code
added notes to help understand function
added notes to augment, fir_plane and is_inlier for understanding
added fit_line
added is_inlier_line (code reused from plane_fitting.py - Class: Line - distance
added line_fitting_ransac function (not complete)
finished line_fitting_ransac, also added and defined plot_line
changed to line fitting ransac for the if clause, for future update when meshing both line and plane lasers, need to add an if clause for if laser == line or if laser == plane
highlighted problem code line for 3d plots, use plotly, has not been changed as it is currently not in use. But it may work from the console and not other python softwares.
readded import for class plane from plane fitting
created line_through_two_points using same notation for other line definitions
readded plot_pointcloud_and_planes after removal

corrected the plotting of plot_pointcloud_and_lines
hashed out cone_fitting as it is unused but still causes error in terminal window
rewrote and corrected sections of ransac for line fitting
corrected parts of functions for lines as well as keeping with consistent notation
corrected function plot pointcloud and lines so that the output html file has a line instead of being left blank
corrected changes as well as labeling others. Main change is use of ransac to return line function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant