orgey wrote: ↑Wed Nov 06, 2019 12:47 pmHello guys I need to get X Y Z distances between 2 different points. Here is an example of what I want to do: I want to find the distances between the X Y and Z coordinates of two different corners of a room ceiling. I want to do this wirelessly. IR or different sensors or camera with using calibration pattern (I don't know). Distance between points and raspberry (or me) ia maximum 10 meter. How can I get the X Y and Z distances between this 2 points?
Does it have to be fully automated ?orgey wrote: ↑Wed Nov 06, 2019 12:47 pmHello guys I need to get X Y Z distances between 2 different points. Here is an example of what I want to do: I want to find the distances between the X Y and Z coordinates of two different corners of a room ceiling. I want to do this wirelessly. IR or different sensors or camera with using calibration pattern (I don't know). Distance between points and raspberry (or me) ia maximum 10 meter. How can I get the X Y and Z distances between this 2 points?
What do you mean? Sorry I don't get it.gordon77 wrote: ↑Wed Nov 06, 2019 2:51 pmDoes it have to be fully automated ?orgey wrote: ↑Wed Nov 06, 2019 12:47 pmHello guys I need to get X Y Z distances between 2 different points. Here is an example of what I want to do: I want to find the distances between the X Y and Z coordinates of two different corners of a room ceiling. I want to do this wirelessly. IR or different sensors or camera with using calibration pattern (I don't know). Distance between points and raspberry (or me) ia maximum 10 meter. How can I get the X Y and Z distances between this 2 points?
It shouldn't be too hard - Assuming it's the distance between the two corners which is wanted.
I mentioned two types of laser distance sensor.
Code: Select all
#!/usr/bin/env python3
import math
#============================================================
# ENTER DATA HERE...
a = 2.70 # distance to first point
e = 25.00 # elevation angle (in degs) to first point
h = 5.00 # longtitude angle (in degs) to first point
b = 2.65 # distance to second point
f = 28.00 # elevation angle (in degs) to second point
j = -45.00 # longtitude angle (in degs) to second point
#============================================================
e = e * 0.01745329252 # convert to radians
h = h * 0.01745329252 # convert to radians
y1 = math.sin(e) * a
c = y1/math.tan(e)
x1 = c * math.sin(h)
z1 = x1/math.tan(h)
f = f * 0.01745329252 # convert to radians
j = j * 0.01745329252 # convert to radians
y2 = math.sin(f) * b
d = y2/math.tan(f)
x2 = d * math.sin(j)
z2 = x2/math.tan(j)
print ("X1 = ",x1," Y1 = ",y1," Z1 = ",z1)
print ("X2 = ",x2," Y2 = ",y2," Z2 = ",z2)
print ("X1-X2 = ",x1-x2," Y1-Y2 = ",y1-y2," Z1-Z2 = ",z1-z2)
t = math.sqrt((x1-x2)*(x1-x2) + (z1-z2)*(z1-z2))
u = math.sqrt((t*t) + (y1-y2)*(y1-y2))
print ("DISTANCE BETWEEN POINTS = ", u)
With no restrictions, use LIDAR or something similar and scan the entire room. That will allow the creation of a virtual model of the room from which anything can be determined with reference to anything else.
Good point. If two cameras are rigidly mounted and calibrated you can get accurate real world angles of points in the images. You can measure sizes of known targets and calculate distance from size. Place a ball in the corners you ant to measure and find the centre and diameter to get vector and range.
I need to calculate distance between 2 spesific objects (Actually 2 different cables end point distance in 3d coordinate systems). Can I do this with Hottscan or can I just measure the room dimensions?PiGraham wrote: ↑Fri Nov 08, 2019 1:53 pmI don't think ". I have no restrictions on that device." means "money no object".
Still, this is cool if can afford it. Measure whatever you want.
https://www.youtube.com/watch?v=KUdbrFOJlO0
Or
https://www.youtube.com/watch?v=aq4NLmiJHwk
I have no direct knowledge of hotscan or similar products, but given it captures a detailed 3D map of rooms and allows arbitrary measurements between 3D points from that scan you should be able to measure to the ends of cables.orgey wrote: ↑Tue Nov 12, 2019 5:51 amI need to calculate distance between 2 spesific objects (Actually 2 different cables end point distance in 3d coordinate systems). Can I do this with Hottscan or can I just measure the room dimensions?PiGraham wrote: ↑Fri Nov 08, 2019 1:53 pmI don't think ". I have no restrictions on that device." means "money no object".
Still, this is cool if can afford it. Measure whatever you want.
https://www.youtube.com/watch?v=KUdbrFOJlO0
Or
https://www.youtube.com/watch?v=aq4NLmiJHwk