3 from os.path
import abspath, dirname, join
5 from dynamic_graph.sot.core.parameter_server
import ParameterServer
6 from example_robot_data
import load_full
8 import parameter_server_conf
as param_server_conf
10 param_server = ParameterServer(
"param_server")
11 param_server.init(0.001,
"talos.urdf",
"talos")
17 urdfPath = param_server_conf.urdfFileName
18 urdfDir = param_server_conf.model_path
24 path = join(dirname(dirname(abspath(__file__))),
"models",
"others",
"python")
27 _, _, urdf_file_name, _ = load_full(
"talos")
28 with open(urdf_file_name)
as fs:
29 urdf_rrbot_model_string = fs.read()
31 param_server.setParameter(
"/robot_description", urdf_rrbot_model_string)
32 model2_string = param_server.getParameter(
"/robot_description")
34 self.assertEqual(urdf_rrbot_model_string, model2_string)
37 param_server.setParameterDbl(
"/specificities/feet/right/size/height", aValue)
38 a2Value = param_server.getParameterDbl(
"/specificities/feet/right/size/height")
39 self.assertEqual(aValue, a2Value)
42 if __name__ ==
"__main__":