Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • gsaurel/dynamic_graph_bridge
  • stack-of-tasks/dynamic_graph_bridge
2 results
Show changes
string input
---
string result
string stdout
string stderr
if(BUILD_PYTHON_INTERFACE)
# TODO: this test requires a ros master ADD_PYTHON_UNIT_TEST("py-import"
# "tests/test_import.py")
endif(BUILD_PYTHON_INTERFACE)
#!/usr/bin/python #!/usr/bin/env python
from dynamic_graph.ros import RosImport from dynamic_graph.ros import RosImport
ri = RosImport('rosimport') ri = RosImport("rosimport")
ri.add('double', 'doubleS', 'doubleT') ri.add("double", "doubleS", "doubleT")
ri.add('vector', 'vectorS', 'vectorT') ri.add("vector", "vectorS", "vectorT")
ri.add('matrix', 'matrixS', 'matrixT') ri.add("matrix", "matrixS", "matrixT")
ri.doubleS.value = 42. ri.doubleS.value = 42.0
ri.vectorS.value = (42., 42.,) ri.vectorS.value = (
ri.matrixS.value = ((42., 42.,),(42., 42.,),) 42.0,
42.0,
)
ri.matrixS.value = (
(
42.0,
42.0,
),
(
42.0,
42.0,
),
)
ri.trigger.recompute(ri.trigger.time + 1) ri.trigger.recompute(ri.trigger.time + 1)
#!/usr/bin/python
try:
from dynamic_graph.sot.dynamics.tools import *
except:
print("This test requires sot-dynamic.")
exit(42)
from dynamic_graph.ros import RosJointState
rjs = RosJointState('rosjointstate')
plug(robot.device.state, rjs.state)
rjs.trigger.recompute(rjs.trigger.time + 1)