bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
coupling.cpp File Reference
#include "bitsim/cosim/coupling.h"
#include <algorithm>
#include <cmath>
#include <stdexcept>
Include dependency graph for coupling.cpp:

Namespaces

namespace  bitsim
namespace  bitsim::cosim

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.