tools.py
Go to the documentation of this file.
1 # -*- coding: utf-8 -*-
2 # Copyright 2011, Florent Lamiraux, Thomas Moulard, JRL, CNRS/AIST
3 
4 from __future__ import print_function
5 
6 
7 def addTrace(robot, trace, entityName, signalName, autoRecompute=True):
8  """
9  Add a signal to a tracer and recompute it automatically if necessary.
10  """
11  signal = "{0}.{1}".format(entityName, signalName)
12  filename = "{0}-{1}".format(entityName, signalName).replace("/", "_")
13  trace.add(signal, filename)
14  if autoRecompute:
15  robot.device.after.addSignal(signal)
def addTrace(robot, trace, entityName, signalName, autoRecompute=True)
Definition: tools.py:7


dynamic-graph-python
Author(s): Nicolas Mansard, Olivier Stasse
autogenerated on Sun Jun 25 2023 02:55:50