NTRT Simulator
Version: Master
|
Public Member Functions | |
tgSCASineControl (const double controlStep, tgImpedanceController *p_ipc, tgPIDController::Config pidConfig, const double amplitude, const double frequency, const double phase, const double offset, const double length) | |
virtual void | onAttach (tgSpringCableActuator &subject) |
virtual void | onStep (tgSpringCableActuator &subject, double dt) |
void | updateTensionSetpoint (double newTension) |
void | updateControlLength (double newControlLength) |
const double | getCommandedTension () const |
virtual void | onSetup (tgSpringCableActuator &subject) |
virtual void | onTeardown (tgSpringCableActuator &subject) |
Definition at line 29 of file tgSCASineControl.h.
tgSCASineControl::tgSCASineControl | ( | const double | controlStep, |
tgImpedanceController * | p_ipc, | ||
tgPIDController::Config | pidConfig, | ||
const double | amplitude, | ||
const double | frequency, | ||
const double | phase, | ||
const double | offset, | ||
const double | length | ||
) |
Definition at line 27 of file tgSCASineControl.cpp.
|
virtual |
Notify the observers when an attach action has occurred. Will only occur once, typically before setup
[in,out] | subject | the subject being observed |
Reimplemented from tgObserver< tgSpringCableActuator >.
Definition at line 65 of file tgSCASineControl.cpp.
|
inlinevirtualinherited |
Notify the observers when a setup action has occurred.
[in,out] | subject | the subject being observed |
Reimplemented in tgCPGMGCableControl, and tgCPGCableControl.
Definition at line 61 of file tgObserver.h.
|
virtual |
Notify the observers when a step action has occurred.
[in,out] | subject | the subject being observed |
[in] | the | number of seconds since the previous call; must be positive |
Implements tgObserver< tgSpringCableActuator >.
Definition at line 70 of file tgSCASineControl.cpp.
|
inlinevirtualinherited |
Notify the observers when a teardown action has occurred.
[in,out] | subject | the subject being observed |
Definition at line 67 of file tgObserver.h.