5 from gepetto.corbaserver
import Client
8 with open(
"/home/florent/devel/hpp/src/hpp-fcl/build-rel/test/rob.octree",
"r")
as f:
9 r = csv.reader(f, delimiter=
",")
11 pos.append(map(float, line))
14 devel_hpp_dir = os.getenv(
"DEVEL_HPP_DIR")
16 path = devel_hpp_dir +
"/src/hpp-fcl/test/fcl_resources"
18 path = os.getenv(
"PWD") +
"/fcl_resources"
21 Green = [0, 1, 0, 0.5]
28 wid = c.gui.createWindow(
"test-fcl")
30 c.gui.createScene(sceneName)
31 c.gui.addSceneToWindow(sceneName, wid)
33 c.gui.addMesh(
"env", path +
"/env.obj")
34 c.gui.addMesh(
"rob", path +
"/rob.obj")
35 c.gui.addToGroup(
"env", sceneName)
36 c.gui.addToGroup(
"rob", sceneName)
39 c.gui.addSphere(
"p1", 10, Red)
40 c.gui.addToGroup(
"p1", sceneName)
43 q1 = (-1373.283643275499, -396.2224237620831, 259.5808934420347) + (
49 q2 = (0, 0, 0, 0, 0, 0, 1)
51 c.gui.applyConfiguration(
"rob", q1)
52 c.gui.applyConfiguration(
"env", q2)
54 p1 = (-1990.2983245164919, -105.42114741459312, 359.74684390031132, 0, 0, 0, 1)
56 c.gui.applyConfiguration(
"p1", p1)