def get_chomp_module(env):
    from orcdchomp import orcdchomp
    CHOMP_MODULE_PATH = '/home/jonathan/build/chomp/liborcdchomp.so'
    openravepy.RaveLoadPlugin(CHOMP_MODULE_PATH)
    m_chomp = openravepy.RaveCreateModule(env, 'orcdchomp')
    env.Add(m_chomp, True, 'blah_load_string')
    orcdchomp.bind(m_chomp)
    return m_chomp
def get_chomp_module(env):
    if args.planner == "chomp":
      from orcdchomp import orcdchomp
      chomp_module_path = "/home/jonathan/build/chomp/liborcdchomp.so"
    elif args.planner == "chomp2":
      from orcdchomp2 import orcdchomp
      chomp_module_path = "/home/jonathan/code/orcdchomp2/lib/liborcdchomp2.so"
    else:
      assert False
    openravepy.RaveLoadPlugin(chomp_module_path)
    m_chomp = openravepy.RaveCreateModule(env, 'orcdchomp')
    env.Add(m_chomp, True, 'blah_load_string')
    orcdchomp.bind(m_chomp)
    return m_chomp
Exemple #3
0
def get_chomp_module(env):
    if args.planner == "chomp":
        from orcdchomp import orcdchomp
        chomp_module_path = "/home/jonathan/build/chomp/liborcdchomp.so"
    elif args.planner == "chomp2":
        from orcdchomp2 import orcdchomp
        chomp_module_path = "/home/jonathan/code/orcdchomp2/lib/liborcdchomp2.so"
    else:
        assert False
    openravepy.RaveLoadPlugin(chomp_module_path)
    m_chomp = openravepy.RaveCreateModule(env, 'orcdchomp')
    env.Add(m_chomp, True, 'blah_load_string')
    orcdchomp.bind(m_chomp)
    return m_chomp