6 from gepetto.corbaserver
import Client
9 with open(
"/home/florent/devel/hpp/src/hpp-fcl/build-rel/test/rob.octree",
"r") as f: 10 r = csv.reader(f, delimiter=",")
12 pos.append(map(float, line))
15 devel_hpp_dir = os.getenv(
"DEVEL_HPP_DIR")
17 path = devel_hpp_dir +
"/src/hpp-fcl/test/fcl_resources" 19 path = os.getenv(
"PWD") +
"/fcl_resources" 22 Green = [0, 1, 0, 0.5]
29 wid = c.gui.createWindow(
"test-fcl")
31 c.gui.createScene(sceneName)
32 c.gui.addSceneToWindow(sceneName, wid)
34 c.gui.addMesh(
"env", path +
"/env.obj")
35 c.gui.addMesh(
"rob", path +
"/rob.obj")
36 c.gui.addToGroup(
"env", sceneName)
37 c.gui.addToGroup(
"rob", sceneName)
40 c.gui.addSphere(
"p1", 10, Red)
41 c.gui.addToGroup(
"p1", sceneName)
44 q1 = (-1373.283643275499, -396.2224237620831, 259.5808934420347) + (
50 q2 = (0, 0, 0, 0, 0, 0, 1)
52 c.gui.applyConfiguration(
"rob", q1)
53 c.gui.applyConfiguration(
"env", q2)
55 p1 = (-1990.2983245164919, -105.42114741459312, 359.74684390031132, 0, 0, 0, 1)
57 c.gui.applyConfiguration(
"p1", p1)