Enables the ability to play a trajectory provided by the set program.
More...
#include <trajectory_player.h>
Enables the ability to play a trajectory provided by the set program.
Definition at line 42 of file trajectory_player.h.
◆ TrajectoryPlayer() [1/3]
tesseract_visualization::TrajectoryPlayer::TrajectoryPlayer |
( |
| ) |
|
|
default |
◆ ~TrajectoryPlayer()
tesseract_visualization::TrajectoryPlayer::~TrajectoryPlayer |
( |
| ) |
|
|
default |
◆ TrajectoryPlayer() [2/3]
tesseract_visualization::TrajectoryPlayer::TrajectoryPlayer |
( |
const TrajectoryPlayer & |
| ) |
|
|
delete |
◆ TrajectoryPlayer() [3/3]
tesseract_visualization::TrajectoryPlayer::TrajectoryPlayer |
( |
TrajectoryPlayer && |
| ) |
|
|
default |
◆ currentDuration()
double tesseract_visualization::TrajectoryPlayer::currentDuration |
( |
| ) |
const |
◆ enableLoop()
void tesseract_visualization::TrajectoryPlayer::enableLoop |
( |
bool |
loop | ) |
|
Enable looping playback of the trajectory.
- Parameters
-
loop | True to enable looping play, otherwise single playback. |
Definition at line 140 of file trajectory_player.cpp.
◆ getByIndex()
Get move instruction by index.
- Parameters
-
index | The index of the input program to extract the move instruction from |
- Returns
- The move instruction at the input index
Definition at line 127 of file trajectory_player.cpp.
◆ getNext()
Get the next move instruction from the player.
- Returns
- The move instruction at the next time interval
Definition at line 100 of file trajectory_player.cpp.
◆ isFinished()
bool tesseract_visualization::TrajectoryPlayer::isFinished |
( |
| ) |
const |
Check if the player has the reached the end of the trajectory.
- Returns
- True if end has been reached, otherwise false.
Definition at line 138 of file trajectory_player.cpp.
◆ isLoopEnabled()
bool tesseract_visualization::TrajectoryPlayer::isLoopEnabled |
( |
| ) |
const |
Get if looping playback is enabled.
- Returns
- True if looping playback is enabled otherwise false.
Definition at line 142 of file trajectory_player.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
void tesseract_visualization::TrajectoryPlayer::reset |
( |
| ) |
|
◆ setCurrentDuration()
Set the current time for the player by duration.
- Parameters
-
duration | The duration for which to set the current time from |
- Returns
- The trajectory state at the provided duration
Definition at line 76 of file trajectory_player.cpp.
◆ setCurrentDurationByIndex()
Set the current time for the player by index of the input trajectoy.
- Parameters
-
index | The input trajectory index for which to set the current time from |
- Returns
- The trajectory state at the input trajectory index
Definition at line 55 of file trajectory_player.cpp.
◆ setScale()
void tesseract_visualization::TrajectoryPlayer::setScale |
( |
double |
scale | ) |
|
Set the scale factor for the play back of the trajectory.
- Parameters
-
scale | The scale playback of the trajectory |
Definition at line 53 of file trajectory_player.cpp.
◆ setTrajectory()
Set the the trajectory for the trajectory player.
- Parameters
-
program | The trajectory to play |
Definition at line 40 of file trajectory_player.cpp.
◆ size()
long tesseract_visualization::TrajectoryPlayer::size |
( |
| ) |
const |
◆ trajectoryDurationBegin()
double tesseract_visualization::TrajectoryPlayer::trajectoryDurationBegin |
( |
| ) |
const |
Get the trajectory duration at the begin state.
- Returns
- The trajectory duration
Definition at line 134 of file trajectory_player.cpp.
◆ trajectoryDurationEnd()
double tesseract_visualization::TrajectoryPlayer::trajectoryDurationEnd |
( |
| ) |
const |
Get the trajectory duration at the end state.
- Returns
- The trajectory duration
Definition at line 136 of file trajectory_player.cpp.
◆ current_duration_
double tesseract_visualization::TrajectoryPlayer::current_duration_ { 0 } |
|
private |
◆ finished_
bool tesseract_visualization::TrajectoryPlayer::finished_ { false } |
|
private |
◆ loop_
bool tesseract_visualization::TrajectoryPlayer::loop_ { false } |
|
private |
◆ scale_
double tesseract_visualization::TrajectoryPlayer::scale_ { 1 } |
|
private |
◆ start_time_
std::chrono::time_point<std::chrono::high_resolution_clock> tesseract_visualization::TrajectoryPlayer::start_time_ |
|
private |
◆ trajectory_
◆ trajectory_duration_end_
double tesseract_visualization::TrajectoryPlayer::trajectory_duration_end_ { 0 } |
|
private |
◆ trajectory_duration_start_
double tesseract_visualization::TrajectoryPlayer::trajectory_duration_start_ { 0 } |
|
private |
The documentation for this class was generated from the following files: