Skip to content
Snippets Groups Projects
test_import.py 426 B
Newer Older
Guilhem Saurel's avatar
Guilhem Saurel committed
#!/usr/bin/env python
Thomas Moulard's avatar
Thomas Moulard committed

from dynamic_graph.ros import RosImport

Guilhem Saurel's avatar
Guilhem Saurel committed
ri = RosImport("rosimport")
Guilhem Saurel's avatar
Guilhem Saurel committed
ri.add("double", "doubleS", "doubleT")
ri.add("vector", "vectorS", "vectorT")
ri.add("matrix", "matrixS", "matrixT")
Guilhem Saurel's avatar
Guilhem Saurel committed
ri.doubleS.value = 42.0
Guilhem Saurel's avatar
Guilhem Saurel committed
ri.vectorS.value = (
Guilhem Saurel's avatar
Guilhem Saurel committed
    42.0,
    42.0,
Guilhem Saurel's avatar
Guilhem Saurel committed
)
ri.matrixS.value = (
    (
Guilhem Saurel's avatar
Guilhem Saurel committed
        42.0,
        42.0,
Guilhem Saurel's avatar
Guilhem Saurel committed
    ),
    (
Guilhem Saurel's avatar
Guilhem Saurel committed
        42.0,
        42.0,
Guilhem Saurel's avatar
Guilhem Saurel committed
    ),
)
Thomas Moulard's avatar
Thomas Moulard committed

ri.trigger.recompute(ri.trigger.time + 1)