Programmatically generate point clouds
| Function | bulb |
Generate a bulb flat (aka Holland profile) stiffener |
| Function | circle |
Undocumented |
| Function | curved |
Create a curved wall given by a second degree polynomial |
| Function | cylinder |
Undocumented |
| Function | disc |
Undocumented |
| Function | draw |
Draw and color-code the origin X axis is red Y axis is green Z axis is blue |
| Function | ibeam |
Undocumented |
| Function | noise |
Adds Gaussian noise to a point cloud to realistically simulate noise |
| Function | plane |
Generate points lying on a plane of the given size Origin specifies the location of the southwest corner Roll pitch yaw correspond to phi theta psi by convention and rotate on the x, y, and z axes respectively... |
| Function | prism |
Undocumented |
| Function | rot |
Returns rotation matrix Return rotation matrix described by a given roll, pitch, and yaw to rotate a point cloud about the x, y, and z axes by matrix multiplying it by the array coordinates |
| Function | ship |
Generates a pre configured point cloud representing a ship |
| Function | tbeam |
No summary |
Generate a bulb flat (aka Holland profile) stiffener
| Parameters | |
| origin:numpy array | location of the component |
a:float | first coefficient of second degree polynomial |
b:float | second coefficient of second degree polynomial |
c:float | third coefficient of second degree polynomial |
| num | Undocumented |
length:float | number of units long the flat is in point cloud space |
width:float | number of units wide the component is in point cloud space |
| scale | Undocumented |
| roll | Undocumented |
| pitch | Undocumented |
| yaw | Undocumented |
| density | Undocumented |
| Returns | |
numpy.ndarray |
|
Create a curved wall given by a second degree polynomial
| Parameters | |
| a | as in a*x^2 + b*x + c |
| b | as in a*x^2 + b*x + c |
| c | as in a*x^2 + b*x + c |
| origin | position of the object |
| roll | Undocumented |
| pitch | Undocumented |
| yaw | Undocumented |
| length | Undocumented |
| height | Undocumented |
| density | Undocumented |
| Returns | |
numpy.ndarray |
|
Draw and color-code the origin X axis is red Y axis is green Z axis is blue
- Args:
- size: int representing length of axis lines
| Returns | |
o3d.geometry.LineSet | Can be plotted to show axes in an open3d cloud |
Undocumented
Adds Gaussian noise to a point cloud to realistically simulate noise
| Parameters | |
cloud:numpy.ndarray | Input point cloud of shape (n, 3) |
std:float, optional | Standard deviation of the Gaussian noise distribution. Defaults to 0.01. |
| Returns | |
numpy.ndarray | Noisy point cloud with the same shape as input |
Generate points lying on a plane of the given size Origin specifies the location of the southwest corner Roll pitch yaw correspond to phi theta psi by convention and rotate on the x, y, and z axes respectively
| Parameters | |
origin:list | Location of the southwest corner of the plane. Defaults to [0, 0, 0]. |
roll:float | Rotation angle in radians around x-axis Defaults to 0. |
pitch:float | Rotation angle in radians around y-axis Defaults to 0. |
yaw:float | Rotation angle in radians around z-axis Defaults to 0. |
length:float | Length of the plane in the x-direction. Defaults to 5. |
width:float | Width of the plane in the y-direction. Defaults to 20. |
density:int | Points per unit length/width for sampling density. Defaults to 20. |
| Returns | |
numpy.ndarray |
|
Returns rotation matrix Return rotation matrix described by a given roll, pitch, and yaw to rotate a point cloud about the x, y, and z axes by matrix multiplying it by the array coordinates
Roll, pitch, and yaw are rotations about the x, y, and z axes respectively
| Parameters | |
| roll | rotation about x axis in radians |
| pitch | rotation about y axis in radians |
| yaw | rotation about z axis in radians |
| Returns | |
| A numpy array of shape (3,3) representing a rotation matrix | |
Generates a pre configured point cloud representing a ship
| Parameters | |
| Returns | |
| Numpy array representing X,Y,Z coordinates of point cloud points | |
| Parameters | |
origin:list | Location of beam. Defaults to [0, 0, 0]. |
length:float | Length of the beam Defaults to 10. |
width:float | Width of the beam Defaults to 5. |
height:float | Width of the beam Defaults to 10. |
thickness:float | Thickness of the beam. Defaults to 2. |
roll:float | Rotation angle in radians around x-axis Defaults to 0. |
pitch:float | Rotation angle in radians around y-axis Defaults to 0. |
yaw:float | Rotation angle in radians around z-axis Defaults to 0. |
| skip | Undocumented |
density:int | Points per unit length in cloud space Defaults to 20. |
| Returns | |
numpy.ndarray |
|