#include <trigger_controller.h>
Definition at line 58 of file trigger_controller.h.
TriggerController::TriggerController |
( |
| ) |
|
TriggerController::~TriggerController |
( |
| ) |
|
Convert time to an unrolled phase (in cycles).
At time 0, the unrolled phase is equal to -config.phase. Thereafter, phase increases at a rate of 1/config.rep_rate.
- Parameters
-
t | Time for which the phase should be evaluated. |
config | Trigger configuration for which the phase should be evaluated. |
- Returns
- Unrolled phase in cycles.
Definition at line 82 of file trigger_controller.h.
Convert time to an unrolled phase (in cycles).
At time 0, the unrolled phase is equal to -config.phase. Thereafter, phase increases at a rate of 1/config.rep_rate. This function returns the unrolled phase.
- Parameters
-
t | Time for which the phase should be evaluated. |
config | Trigger configuration for which the phase should be evaluated. |
- Returns
- Unrolled phase in cycles.
Definition at line 101 of file trigger_controller.h.
double TriggerController::getTick |
( |
| ) |
|
|
private |
Gets the time during which the output will be active during each cycle.
This function determines how much time the output is active for during each cycle.
- Parameters
-
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 194 of file trigger_controller.h.
Gets the time during which the output will be active during each cycle.
This function determines how much time the output is active for during each cycle.
- Parameters
-
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 211 of file trigger_controller.h.
Gets the ros::Time at which a cycle starts.
This function takes a time, and returns the time at which the current cycle started. That is, the most recent time at which the phase was integer.
- Parameters
-
tick | Time for which to perform the computation. |
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 158 of file trigger_controller.h.
Gets the ros::Time at which a cycle starts.
This function takes an unrolled phase, and returns the time at which the current cycle started. That is, the most recent time at which the phase was integer.
- Parameters
-
tick | Unrolled phase. |
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 139 of file trigger_controller.h.
static double controller::TriggerController::getTickStartTimeSec |
( |
double |
time, |
|
|
trigger_configuration const & |
config |
|
) |
| |
|
inlinestatic |
Gets the ros::Time at which a cycle starts.
This function takes a time, and returns the time at which the current cycle started. That is, the most recent time at which the phase was integer.
- Parameters
-
tick | Time for which to perform the computation. |
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 177 of file trigger_controller.h.
static double controller::TriggerController::getTickStartTimeSecFromPhase |
( |
double |
tick, |
|
|
trigger_configuration const & |
config |
|
) |
| |
|
inlinestatic |
Gets the ros::Time at which a cycle starts.
This function takes an unrolled phase, and returns the time at which the current cycle started. That is, the most recent time at which the phase was integer.
- Parameters
-
tick | Unrolled phase. |
config | Trigger configuration for which the cycle start should be evaluated. |
- Returns
- Cycle start time.
Definition at line 120 of file trigger_controller.h.
bool TriggerController::setWaveformSrv |
( |
trigger_configuration & |
req, |
|
|
ethercat_trigger_controllers::SetWaveform::Response & |
resp |
|
) |
| |
|
private |
void TriggerController::update |
( |
void |
| ) |
|
|
virtual |
std::string controller::TriggerController::actuator_name_ |
|
private |
bool controller::TriggerController::last_out_ |
|
private |
double controller::TriggerController::prev_tick_ |
|
private |
The documentation for this class was generated from the following files: