Functions | Variables
hrl_common_code_darpa_m3::software_simulation_setup::obstacles Namespace Reference

Functions

def dict_from_param_server
def dist_segment_point
def generate_far_locations
def generate_random_obstacles
def in_collision
def in_collision_set
def intersect_segments
def upload_to_param_server

Variables

 collision = True
list compliant_dimen = [dim for i in range(opt.compliant)]
 ctype = opt.ctype
tuple d = ut.load_pickle(opt.pkl)
 pre_fixed_dimen = d['fixed_dimen'] pre_fixed_pos = d['fixed_position'] pre_fixed = d['num_fixed_used']
int default = 0
string dest = 'gps'
list dim = [length, width, 0.2, slope]
list fixed_dimen = [dim for i in range(opt.fixed)]
tuple fixed_pos = np.array(d['fixed_position'])
tuple goal = np.matrix([x_goal, y_goal, 0])
string help = 'regenerate if openrave does not find a solution'
 length = opt.length
tuple movable_position = np.row_stack((np.array(x_new), np.array(y_new), z_new))
tuple move_pos = np.array(d['moveable_position'])
list moveable_dimen = [dim for i in range(opt.sliding)]
 multi_obstacle = True
tuple p = optparse.OptionParser()
 radius = opt.radius
tuple res
 slope = opt.slope
list stiff_ls = [opt.sv]
 total_num = opt.fixed+opt.compliant+opt.sliding
string type = 'float'
 width = opt.width
tuple x = np.random.uniform(xmin, xmax, 1)
tuple x_goal = float(np.random.uniform(opt.xmin, opt.xmax, 1)[0])
list x_lim = [opt.xmin, opt.xmax]
list x_new = []
tuple y = np.random.uniform(ymin, ymax, 1)
tuple y_goal = float(np.random.uniform(opt.ymin, opt.ymax, 1)[0])
list y_lim = [opt.ymin, opt.ymax]
list y_new = []
tuple z_new = np.ones(opt.add_stuff)

Function Documentation

Definition at line 314 of file obstacles.py.

def hrl_common_code_darpa_m3.software_simulation_setup.obstacles.dist_segment_point (   x1,
  y1,
  x2,
  y2,
  x3,
  y3 
)

Definition at line 119 of file obstacles.py.

Definition at line 10 of file obstacles.py.

def hrl_common_code_darpa_m3.software_simulation_setup.obstacles.generate_random_obstacles (   x_lim,
  y_lim,
  num_move_used,
  num_compliant_used,
  num_fixed_used,
  total_num,
  ctype,
  dim,
  goal,
  multi_obstacle = False 
)

Definition at line 158 of file obstacles.py.

def hrl_common_code_darpa_m3.software_simulation_setup.obstacles.in_collision (   x,
  y,
  s,
  x_arr,
  y_arr,
  s_arr,
  ctype,
  dim,
  goal 
)

Definition at line 16 of file obstacles.py.

def hrl_common_code_darpa_m3.software_simulation_setup.obstacles.in_collision_set (   dim,
  pos,
  ctype,
  dim_arr,
  pos_arr,
  ctype_list 
)

Definition at line 42 of file obstacles.py.

def hrl_common_code_darpa_m3.software_simulation_setup.obstacles.intersect_segments (   x11,
  y11,
  x12,
  y12,
  x21,
  y21,
  x22,
  y22 
)

Definition at line 145 of file obstacles.py.

Definition at line 291 of file obstacles.py.


Variable Documentation

Definition at line 437 of file obstacles.py.

Definition at line 405 of file obstacles.py.

Definition at line 393 of file obstacles.py.

pre_fixed_dimen = d['fixed_dimen'] pre_fixed_pos = d['fixed_position'] pre_fixed = d['num_fixed_used']

pre_compliant = d['num_compliant_used'] pre_compliant_dimen = d['compliant_dimen'] pre_compliant_pos = d['compliant_position'] stiff_ls = d['stiffness_value'] pre_moveable = d['num_move_used'] pre_moveable_dimen = d['moveable_dimen'] pre_moveable_pos = d['moveable_position'] d['moveable_max_force'] = [opt.sliding_max_force]*opt.sliding d['class_type'] = ctype pre_total_num = d['num_total'] d['goal'] = goal.A1.tolist() pre_fixed_dimen += fixed_dimen pre_fixed_pos += fixed_pos pre_compliant_dimen += compliant_dimen pre_compliant_pos += compliant_pos pre_moveable_dimen += moveable_dimen pre_moveable_pos += sliding_pos dd = {}

Definition at line 461 of file obstacles.py.

Definition at line 339 of file obstacles.py.

Definition at line 371 of file obstacles.py.

Definition at line 398 of file obstacles.py.

Definition at line 404 of file obstacles.py.

Definition at line 432 of file obstacles.py.

Definition at line 410 of file obstacles.py.

string hrl_common_code_darpa_m3::software_simulation_setup::obstacles::help = 'regenerate if openrave does not find a solution'

Definition at line 364 of file obstacles.py.

Definition at line 395 of file obstacles.py.

Definition at line 450 of file obstacles.py.

Definition at line 431 of file obstacles.py.

Definition at line 403 of file obstacles.py.

Definition at line 417 of file obstacles.py.

Definition at line 336 of file obstacles.py.

Definition at line 400 of file obstacles.py.

Initial value:
00001 gspo.setup_openrave_and_plan(d, True, True,
00002                         'openrave_result_ignore_moveable.pkl')

Definition at line 548 of file obstacles.py.

Definition at line 397 of file obstacles.py.

Definition at line 425 of file obstacles.py.

Definition at line 390 of file obstacles.py.

Definition at line 346 of file obstacles.py.

Definition at line 396 of file obstacles.py.

Definition at line 441 of file obstacles.py.

tuple hrl_common_code_darpa_m3::software_simulation_setup::obstacles::x_goal = float(np.random.uniform(opt.xmin, opt.xmax, 1)[0])

Definition at line 408 of file obstacles.py.

Definition at line 412 of file obstacles.py.

Definition at line 429 of file obstacles.py.

Definition at line 442 of file obstacles.py.

tuple hrl_common_code_darpa_m3::software_simulation_setup::obstacles::y_goal = float(np.random.uniform(opt.ymin, opt.ymax, 1)[0])

Definition at line 409 of file obstacles.py.

Definition at line 413 of file obstacles.py.

Definition at line 430 of file obstacles.py.

Definition at line 435 of file obstacles.py.



hrl_common_code_darpa_m3
Author(s): Advait Jain, Marc Killpack. Advisor: Prof. Charlie Kemp. Healthcare Robotics Lab, Georgia Tech
autogenerated on Wed Nov 27 2013 11:34:42