watchers

Submodules

Classes

class brom_drake.watchers.diagram_target.DiagramTarget(name: str, ports: None | List[int | str] = None)[source]

Description

The target on a Diagram to record data from. The object should define both:

  1. The LeafSystem’s name, and

  2. The ports to monitor (if None, all ports are monitored).

Parameters

name: str

Name of the LeafSystem to monitor

ports: Union[None, List[int]]

List of port indices to monitor. If None, all ports are monitored

Usage

from brom_drake.DiagramTarget import DiagramTarget

# Creating a DiagramTarget to monitor all ports of a system named "my_system"
target_all_ports = DiagramTarget(name="my_system")

# Creating a DiagramTarget to monitor specific ports of a system named "another_system"
target_specific_ports = DiagramTarget(name="another_system", ports=[0, 2, 4])
name: str

Name of the LeafSystem to monitor

ports: None | List[int | str]

List of port indices to monitor. If None, all ports are monitored

Functions

(None found)

Variables

brom_drake.watchers.all.INELIGIBLE_SYSTEM_TYPES = [<class 'pydrake.geometry.SceneGraph'>, <class 'pydrake.systems.primitives.VectorLogSink'>, <class 'pydrake.systems.primitives.ConstantVectorSource'>]

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.