Drake
Drake C++ Documentation
Modeling Dynamical Systems

## Detailed Description

Drake uses a Simulink-inspired description of dynamical systems.

Includes basic building blocks (adders, integrators, delays, etc), physics models of mechanical systems, and a growing list of sensors, actuators, controllers, planners, estimators.

All dynamical systems derive from the drake::systems::System base class, and must explicitly declare all drake::systems::State, drake::systems::Parameters, and noise/disturbances inputs. The drake::systems::Diagram class permits modeling complex systems from libraries of parts.

For an introduction to using systems in python, see the dynamical_systems tutorial. For a "Hello, World!" example of writing a dynamical system in C++, see simple_continuous_time_system.cc and/or simple_discrete_time_system.cc.

## Modules

System Events
This page describes how Drake Systems can respond (through an Event) to changes ("triggers") in time, state, and inputs.

Primitives
General-purpose Systems such as Gain, Multiplexer, Integrator, and LinearSystem.

Controllers
Implementations of controllers that operate as Systems in a block diagram.

Estimators
Implementations of estimators that operate as Systems in a block diagram.

Sensors
Drake provides a variety of capabilities for sensor modeling.

Manipulation
Systems implementations and related functions that specifically support dexterous manipulation capabilities in robotics.

Message Passing
Systems for publishing/subscribing to popular message passing ecosystems.

Multibody Systems
Systems that relate to, or add functionality to, MultibodyPlant.

Perception
Systems for dealing with perception data and/or wrapping basic perception algorithms.

Discrete Systems
This page describes discrete systems modeled by difference equations (contrast to continuous systems modeled by ordinary differential equations) as well as considerations for implementing these systems in Drake.

Stochastic Systems
This page describes the implementation details of modeling a stochastic system in Drake and writing algorithms that explicitly leverage the stochastic modeling framework.

Visualization
Systems for connecting to external visualization tools/GUIs.

Examples
The examples contain a number of useful System implementations.

## Classes

class  SceneGraph< T >
SceneGraph serves as the nexus for all geometry (and geometry-based operations) in a Diagram. More...

class  MultibodyPlant< T >
MultibodyPlant is a Drake system framework representation (see systems::System) for the model of a physical system consisting of a collection of interconnected bodies. More...

## Functions

std::string GenerateHtml (const System< double > &system, int initial_depth=1)
Generates an html string to "render" the system, with collapsible diagrams. More...

## ◆ GenerateHtml()

 std::string drake::systems::GenerateHtml ( const System< double > & system, int initial_depth = 1 )

Generates an html string to "render" the system, with collapsible diagrams.

Use initial_depth to set the depth to which the subdiagrams are expanded by default (0 for all collapsed, +∞ for all expanded).

Warning
The implementation of GenerateHtml has been temporarily removed from Drake due to licensing restrictions. This function will return valid HTML, but will not produce any useful rendering.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.31035518646240234, "perplexity": 9280.110470361948}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2023-14/segments/1679296948871.42/warc/CC-MAIN-20230328201715-20230328231715-00077.warc.gz"}