076e79ce49973843e62f350c9335448b977d224f,examples/policy_ros.py,,,#,51

Before Change


                                         "..",
                                         "data/examples/single_object/depth_0.npy")
    if segmask_filename is None:
        segmask_filename = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                        "..",
                                        "data/examples/single_object/segmask_0.png")
    if camera_intr_filename is None:
        camera_intr_filename = os.path.join(os.path.dirname(os.path.realpath(__file__)),
                                            "..",
                                            "data/calib/primesense.intr")    

After Change


    depth_im = DepthImage.open(depth_im_filename, frame=camera_intr.frame)

    // read segmask
    if segmask_filename is not None:
        segmask = BinaryImage.open(segmask_filename, frame=camera_intr.frame)
        grasp_resp = plan_grasp_segmask(color_im.rosmsg,
                                        depth_im.rosmsg,
                                        camera_intr.rosmsg,
                                        segmask.rosmsg)
    else:
        grasp_resp = plan_grasp(color_im.rosmsg,
                                depth_im.rosmsg,
                                camera_intr.rosmsg)
    grasp = grasp_resp.grasp
    
    // convert to a grasp action
    grasp_type = grasp.grasp_type
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: BerkeleyAutomation/gqcnn
Commit Name: 076e79ce49973843e62f350c9335448b977d224f
Time: 2018-11-16
Author: jmahler@berkeley.edu
File Name: examples/policy_ros.py
Class Name:
Method Name:


Project Name: david-abel/simple_rl
Commit Name: e094970689385a75d53e2b9926b5e7e447525324
Time: 2018-04-26
Author: david_abel@brown.edu
File Name: simple_rl/tasks/grid_world/GridWorldMDPClass.py
Class Name:
Method Name: make_grid_world_from_file


Project Name: dpressel/mead-baseline
Commit Name: 1b8f024d01511ad332d71b973e0efc432363a160
Time: 2018-08-11
Author: blester125@users.noreply.github.com
File Name: clean.py
Class Name:
Method Name: