本文整理汇总了Python中openravepy.misc.OpenRAVEGlobalArguments类的典型用法代码示例。如果您正苦于以下问题:Python OpenRAVEGlobalArguments类的具体用法?Python OpenRAVEGlobalArguments怎么用?Python OpenRAVEGlobalArguments使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OpenRAVEGlobalArguments类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: run
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='tutorial_plotting')
OpenRAVEGlobalArguments.addOptions(parser)
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例2: run
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)
示例3: run
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
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例4: run
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)
(options, leftargs) = parser.parse_args(args=args)
env = OpenRAVEGlobalArguments.parseAndCreate(options,defaultviewer=True)
main(env,options)
示例5: run
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 simplemanipulation [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)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例6: run
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 set a workspace trajectory for the hand and have a robot plan it.', usage='openrave.py --example pr2turnlever [options]')
OpenRAVEGlobalArguments.addOptions(parser)
parser.add_option('--scene',action="store",type='string',dest='scene',default='data/pr2test1.env.xml',
help='scene to load')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例7: run
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)')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例8: run
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="Schunk Manipulation planning example\nFor a dual arm robot with Schunk LWA3 arms, plan trajectories for grasping an object and manipulating it on a shelf.")
OpenRAVEGlobalArguments.addOptions(parser)
parser.add_option('--scene',
action="store",type='string',dest='scene',default='data/dualarmmanipulation.env.xml',
help='Scene file to load')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例9: run
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)
示例10: run
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 attach a callback to a viewer to perform functions.')
OpenRAVEGlobalArguments.addOptions(parser)
parser.add_option('--scene',
action="store",type='string',dest='scene',default='data/lab1.env.xml',
help='OpenRAVE scene to load')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例11: run
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)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例12: run
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 the grasping.GraspingModel to compute valid grasps for manipulation.')
OpenRAVEGlobalArguments.addOptions(parser)
parser.add_option('--scene', action="store",type='string',dest='scene',default='data/wamtest1.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 the grasping for')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例13: run
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)
示例14: run
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 the 5DOF IK solution for arms with >= 5 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)')
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)
示例15: run
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 generate a 6D inverse kinematics solver and use it for getting all solutions.')
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)')
parser.add_option('--iktype', action='store',type='string',dest='iktype',default=None,
help='The ik type to build the solver current types are: %s'%(', '.join(iktype.name for iktype in IkParameterization.Type.values.values())))
(options, leftargs) = parser.parse_args(args=args)
OpenRAVEGlobalArguments.parseAndCreateThreadedUser(options,main,defaultviewer=True)