Drake
Drake C++ Documentation
random_source.h File Reference
#include <optional>
#include <vector>
#include "drake/common/drake_copyable.h"
#include "drake/common/random.h"
#include "drake/systems/framework/diagram_builder.h"
#include "drake/systems/framework/leaf_system.h"
Include dependency graph for random_source.h:

Classes

class  RandomSource< T >
 A source block which generates random numbers at a fixed sampling interval, with a zero-order hold between samples. More...
 
struct  Traits< RandomSource >
 

Namespaces

 drake
 
 drake::systems
 
 drake::systems::scalar_conversion
 

Functions

template<typename T >
int AddRandomInputs (double sampling_interval_sec, DiagramBuilder< T > *builder)
 For each subsystem input port in builder that is (a) not yet connected and (b) labeled as random in the InputPort, this method will add a new RandomSource system of the appropriate type and connect it to the subsystem input port. More...