当前位置: 首页>>代码示例>>Python>>正文


Python OpenRAVEGlobalArguments.parseAndCreate方法代码示例

本文整理汇总了Python中openravepy.misc.OpenRAVEGlobalArguments.parseAndCreate方法的典型用法代码示例。如果您正苦于以下问题:Python OpenRAVEGlobalArguments.parseAndCreate方法的具体用法?Python OpenRAVEGlobalArguments.parseAndCreate怎么用?Python OpenRAVEGlobalArguments.parseAndCreate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在openravepy.misc.OpenRAVEGlobalArguments的用法示例。


在下文中一共展示了OpenRAVEGlobalArguments.parseAndCreate方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description="Views a calibration pattern from multiple locations.")
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option(
        "--scene",
        action="store",
        type="string",
        dest="scene",
        default="data/pa10calib.env.xml",
        help="Scene file to load (default=%default)",
    )
    parser.add_option(
        "--sensorname",
        action="store",
        type="string",
        dest="sensorname",
        default=None,
        help="Name of the sensor whose views to generate (default is first sensor on robot)",
    )
    parser.add_option(
        "--sensorrobot",
        action="store",
        type="string",
        dest="sensorrobot",
        default=None,
        help="Name of the robot the sensor is attached to (default=%default)",
    )
    parser.add_option(
        "--norandomize",
        action="store_false",
        dest="randomize",
        default=True,
        help="If set, will not randomize the bodies and robot position in the scene.",
    )
    parser.add_option(
        "--novisibility",
        action="store_false",
        dest="usevisibility",
        default=True,
        help="If set, will not perform any visibility searching.",
    )
    parser.add_option(
        "--posedist",
        action="store",
        type="float",
        dest="posedist",
        default=0.05,
        help="An average distance between gathered poses. The smaller the value, the more poses robot will gather close to each other",
    )
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options, defaultviewer=True)
    main(env, options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:58,代码来源:calibrationviews.py

示例2: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Example shows how to query collision detection information using openravepy')
    OpenRAVEGlobalArguments.addOptions(parser)
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:12,代码来源:collision.py

示例3: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    # set up planning environment
    parser = OptionParser(description='Find the transform that moves the hand to target')
    OpenRAVEGlobalArguments.addOptions(parser)
    (options, leftargs) = parser.parse_args(args=args) # use default options 
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True) # the special setup for openrave tutorial
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:13,代码来源:tutorial_grasptransform.py

示例4: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Shows how to use different IK solutions for arms with few joints.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/pr2wam_test1.env.xml',
                      help='Scene file to load (default=%default)')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:14,代码来源:tutorial_iklookat_multiple.py

示例5: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Explicitly specify goals to get a simple navigation and manipulation demo.', usage='openrave.py --example hanoi [options]')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--planner',action="store",type='string',dest='planner',default=None,
                      help='the planner to use')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:14,代码来源:simplemanipulation.py

示例6: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description="test physics diff drive controller")
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/diffdrive_sample.env.xml',
                      help='Scene file to load (default=%default)')
    OpenRAVEGlobalArguments.addOptions(parser)
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:14,代码来源:testphysics_diffdrive.py

示例7: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='RRT motion planning with constraints on the robot end effector.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',
                      action="store",type='string',dest='scene',default='data/lab1.env.xml',
                      help='Scene file to load (default=%default)')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:15,代码来源:constraintplanning.py

示例8: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Builds the convex decomposition of the robot and plots all the points that are tested inside of it.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--target', action="store",type='string',dest='target',default='robots/barrettwam.robot.xml',
                      help='Target body to load (default=%default)')
    parser.add_option('--samplingdelta', action="store",type='float',dest='samplingdelta',default=None,
                      help='The sampling rate for the robot (default=%default)')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:16,代码来源:checkconvexdecomposition.py

示例9: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Visibility Planning Module.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/pa10grasp.env.xml',
                      help='openrave scene to load')
    parser.add_option('--nocameraview',action="store_false",dest='usecameraview',default=True,
                      help='If set, will not open any camera views')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:16,代码来源:visibilityplanning.py

示例10: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Manipulation planning example solving the hanoi problem.', usage='openrave.py --example hanoi [options]')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/hanoi_complex2.env.xml',
                      help='Scene file to load (default=%default)')
    parser.add_option('--planner',action="store",type='string',dest='planner',default=None,
                      help='the planner to use')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:16,代码来源:hanoi.py

示例11: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description="test physics")
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/hanoi.env.xml',
                      help='Scene file to load (default=%default)')
    parser.add_option('--timestep',action="store",type='float',dest='timestep',default=0.001,
                      help='The physics simulation time step size  (default=%default)')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:16,代码来源:testphysics.py

示例12: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Move base where the robot can perform target grasp using inversereachability database.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--robot',action="store",type='string',dest='robot',default='robots/pr2-beta-static.zae',
                      help='Robot filename to use (default=%default)')
    parser.add_option('--manipname',action="store",type='string',dest='manipname',default=None,
                      help='name of manipulator to use (default=%default)')
    parser.add_option('--target',action="store",type='string',dest='target',default='data/mug2.kinbody.xml',
                      help='filename of the target to use (default=%default)')
    (options, leftargs) = parser.parse_args(args=args) # use default options 
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True) # the special setup for openrave tutorial
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:18,代码来源:tutorial_inversereachability.py

示例13: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Shows how choose IK solutions so that move hand straight can move without discontinuities.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',
                      action="store",type='string',dest='scene',default='data/puma_tabletop.env.xml',
                      help='Scene file to load (default=%default)')
    parser.add_option('--manipname',
                      action="store",type='string',dest='manipname',default=None,
                      help='Choose the manipulator to perform movement for')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:18,代码来源:movehandstraight.py

示例14: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Simple cube assembly task using grasp sets.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',
                      action="store",type='string',dest='scene',default='data/hironxtable.env.xml',
                      help='Scene file to load (default=%default)')
    parser.add_option('--manipname',
                      action="store",type='string',dest='manipname',default='leftarm_torso',
                      help='The manipulator to use')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:18,代码来源:cubeassembly.py

示例15: run

# 需要导入模块: from openravepy.misc import OpenRAVEGlobalArguments [as 别名]
# 或者: from openravepy.misc.OpenRAVEGlobalArguments import parseAndCreate [as 别名]
def run(args=None):
    """Command-line execution of the example.

    :param args: arguments for script to parse, if not specified will use sys.argv
    """
    parser = OptionParser(description='Shows how to use different IK solutions for arms with few joints.')
    OpenRAVEGlobalArguments.addOptions(parser)
    parser.add_option('--scene',action="store",type='string',dest='scene',default='data/katanatable.env.xml',
                      help='Scene file to load (default=%default)')
    parser.add_option('--manipname',action="store",type='string',dest='manipname',default='arm',
                      help='name of manipulator to use (default=%default)')
    parser.add_option('--withlocal',action="store_true",dest='withlocal',default=False,
                      help='If set, will use the TranslationLocalGlobal6D type to further specify the target point in the manipulator coordinate system')
    (options, leftargs) = parser.parse_args(args=args)
    env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
    main(env,options)
开发者ID:Praveen-Ramanujam,项目名称:MobRAVE,代码行数:18,代码来源:tutorial_iktranslation.py


注:本文中的openravepy.misc.OpenRAVEGlobalArguments.parseAndCreate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。