bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
coupling.h File Reference
#include "bitsim/bitsim_types.h"
#include <functional>
#include <map>
#include <string>
#include <vector>
Include dependency graph for coupling.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bitsim::cosim::Connection
 Output output of subsystem from feeds input input of subsystem to. More...
class  bitsim::cosim::CouplingLayout
 The subsystems of a co-simulation, their sizes, and which output feeds which input. More...
struct  bitsim::cosim::CouplingConfig
 How a co-simulation couples its subsystems. More...
struct  bitsim::cosim::CouplingState
 The inputs of every subsystem at the present time, and at the time before. More...
struct  bitsim::cosim::MacroStepResult
 What one macro step did. More...

Namespaces

namespace  bitsim
namespace  bitsim::cosim

Typedefs

using bitsim::cosim::try_step_type
 The outputs of every subsystem at the end of try iteration of a macro step, the subsystems having stepped with their inputs moving from begin to end.

Enumerations

enum class  bitsim::cosim::CouplingScheme { bitsim::cosim::JACOBI , bitsim::cosim::GAUSS_SEIDEL }
 The order in which the subsystems of a macro step take their inputs. More...

Functions

MacroStepResult bitsim::cosim::jacobi_step (const CouplingLayout &layout, const CouplingConfig &config, CouplingState &state, const try_step_type &try_step)
 One macro step of the Jacobi scheme, with as many tries as config allows.
std::vector< std::vector< real_t > > bitsim::cosim::resolve_inputs (const CouplingLayout &layout, const std::function< std::vector< std::vector< real_t > >(const std::vector< std::vector< real_t > > &)> &outputs_of)
 The inputs at the start: outputs_of(inputs) gives the outputs of every subsystem for the inputs, and resolve() feeds them back as many times as there are subsystems, which is enough unless the direct feedthroughs form a loop.