Functions | Variables
hrl_lib::geometry Namespace Reference

Functions

def convex_hull
def distance_along_curve
def distance_from_curve
def fit_line_high_slope
def fit_line_low_slope
def get_point_along_curve
 return point dist away from the start of the curve, measured along the curve.
def inverse_2x2
def project_point_on_curve
 return a point on the curve that is closest to the given point.
def project_point_on_line
 compute point that is the projection of q onto the line passing through p1 and p2.
def test_convex_hull
def test_distance_from_curve

Variables

tuple p = project_point_on_line(q, p1, p2)
tuple p1 = np.matrix([2,3.])
tuple p2 = np.matrix([-1.5,6.3])
tuple q = np.matrix([1.5,7.3])
 test_convex_hull_flag = False
 test_distance_from_curve_flag = False
 test_project_point_on_line = True
list x = [p1[0,0], p2[0,0]]
list y = [p1[1,0], p2[1,0]]

Function Documentation

Definition at line 51 of file geometry.py.

def hrl_lib.geometry.distance_along_curve (   pt,
  pts_list 
)

Definition at line 71 of file geometry.py.

def hrl_lib.geometry.distance_from_curve (   pt,
  pts_list 
)

Definition at line 63 of file geometry.py.

Definition at line 128 of file geometry.py.

Definition at line 138 of file geometry.py.

def hrl_lib.geometry.get_point_along_curve (   pts_list,
  dist,
  normalized = False 
)

return point dist away from the start of the curve, measured along the curve.

pts_list - list of array-like of len 2 or 3 dist - float. normalized - see Shapely.interpolate documentation.

Definition at line 91 of file geometry.py.

Definition at line 37 of file geometry.py.

def hrl_lib.geometry.project_point_on_curve (   pt,
  pts_list 
)

return a point on the curve that is closest to the given point.

pt - 2x1 or 3x1 np matrix pts_list - list of array-like of len 2 or 3

Definition at line 79 of file geometry.py.

def hrl_lib.geometry.project_point_on_line (   q,
  p1,
  p2 
)

compute point that is the projection of q onto the line passing through p1 and p2.

2x1 or 3x1 np matrices.

Definition at line 42 of file geometry.py.

Definition at line 96 of file geometry.py.

Definition at line 111 of file geometry.py.


Variable Documentation

Definition at line 158 of file geometry.py.

tuple hrl_lib::geometry::p1 = np.matrix([2,3.])

Definition at line 154 of file geometry.py.

tuple hrl_lib::geometry::p2 = np.matrix([-1.5,6.3])

Definition at line 155 of file geometry.py.

tuple hrl_lib::geometry::q = np.matrix([1.5,7.3])

Definition at line 156 of file geometry.py.

Definition at line 150 of file geometry.py.

Definition at line 151 of file geometry.py.

Definition at line 149 of file geometry.py.

list hrl_lib::geometry::x = [p1[0,0], p2[0,0]]

Definition at line 160 of file geometry.py.

list hrl_lib::geometry::y = [p1[1,0], p2[1,0]]

Definition at line 161 of file geometry.py.



hrl_lib
Author(s): Cressel Anderson, Travis Deyle, Advait Jain, Hai Nguyen, Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:34:06