#include <trigger_controller.h>
Definition at line 58 of file trigger_controller.h.
◆ TriggerController()
TriggerController::TriggerController |
( |
| ) |
|
◆ ~TriggerController()
TriggerController::~TriggerController |
( |
| ) |
|
◆ getTick() [1/3]
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.
◆ getTick() [2/3]
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.
◆ getTick() [3/3]
double TriggerController::getTick |
( |
| ) |
|
|
private |
◆ getTickDuration()
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.
◆ getTickDurationSec()
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.
◆ getTickStartTime()
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.
◆ getTickStartTimeFromPhase()
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.
◆ getTickStartTimeSec()
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.
◆ getTickStartTimeSecFromPhase()
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.
◆ init()
◆ setWaveformSrv()
bool TriggerController::setWaveformSrv |
( |
trigger_configuration & |
req, |
|
|
ethercat_trigger_controllers::SetWaveform::Response & |
resp |
|
) |
| |
|
private |
◆ update()
void TriggerController::update |
( |
void |
| ) |
|
|
virtual |
◆ actuator_name_
std::string controller::TriggerController::actuator_name_ |
|
private |
◆ config_
◆ digital_out_command_
◆ falling_edge_pub_
◆ last_out_
bool controller::TriggerController::last_out_ |
|
private |
◆ node_handle_
◆ prev_tick_
double controller::TriggerController::prev_tick_ |
|
private |
◆ rising_edge_pub_
◆ robot_
◆ set_waveform_handle_
The documentation for this class was generated from the following files: