distance_lower_bound.py
Go to the documentation of this file.
1 # Load "env.obj" and "rob.obj" in gepetto-gui
2 
3 import os
4 from gepetto.corbaserver import Client
5 
6 path = None
7 devel_hpp_dir = os.getenv("DEVEL_HPP_DIR")
8 if devel_hpp_dir:
9  path = devel_hpp_dir + "/src/hpp-fcl/test/fcl_resources"
10 else:
11  path = os.getenv("PWD") + "/fcl_resources"
12 
13 Red = [1, 0, 0, 0.5]
14 Green = [0, 1, 0, 0.5]
15 Blue = [0, 0, 1, 0.5]
16 
17 c = Client()
18 wid = 0
19 
20 sceneName = "scene"
21 wid = c.gui.createWindow("test-fcl")
22 
23 c.gui.createScene(sceneName)
24 c.gui.addSceneToWindow(sceneName, wid)
25 
26 c.gui.addMesh("env", path + "/env.obj")
27 c.gui.addToGroup("env", sceneName)
28 c.gui.addBox("box", 500, 200, 150, Blue)
29 c.gui.addToGroup("box", sceneName)
30 
31 q2 = (0, 0, 0, 0, 0, 0, 1)
32 q1 = (
33  608.56046341359615,
34  1624.1152798756957,
35  2661.5910432301462,
36  0.8083991299501978,
37  0.25803832576728564,
38  0.47026407332553366,
39  0.24240208429437343,
40 )
41 
42 c.gui.applyConfiguration("env", q1)
43 c.gui.applyConfiguration("rob", q2)
44 
45 c.gui.refresh()


hpp-fcl
Author(s):
autogenerated on Fri Jan 26 2024 03:46:13