![]() |
Tesseract 0.28.4
|
Enables the ability to play a trajectory provided by the set program. More...
#include <trajectory_player.h>
Public Member Functions | |
| TrajectoryPlayer (const TrajectoryPlayer &)=delete | |
| TrajectoryPlayer & | operator= (const TrajectoryPlayer &)=delete |
| TrajectoryPlayer (TrajectoryPlayer &&)=default | |
| TrajectoryPlayer & | operator= (TrajectoryPlayer &&)=default |
| void | setTrajectory (const tesseract::common::JointTrajectory &trajectory) |
| Set the the trajectory for the trajectory player. | |
| void | setScale (double scale) |
| Set the scale factor for the play back of the trajectory. | |
| tesseract::common::JointState | setCurrentDurationByIndex (long index) |
| Set the current time for the player by index of the input trajectoy. | |
| tesseract::common::JointState | setCurrentDuration (double duration) |
| Set the current time for the player by duration. | |
| tesseract::common::JointState | getNext () |
| Get the next move instruction from the player. | |
| tesseract::common::JointState | getByIndex (long index) const |
| Get move instruction by index. | |
| double | currentDuration () const |
| Get the current duration populated by the last call to getNext(). | |
| double | trajectoryDurationBegin () const |
| Get the trajectory duration at the begin state. | |
| double | trajectoryDurationEnd () const |
| Get the trajectory duration at the end state. | |
| bool | isFinished () const |
| Check if the player has the reached the end of the trajectory. | |
| void | enableLoop (bool loop) |
| Enable looping playback of the trajectory. | |
| bool | isLoopEnabled () const |
| Get if looping playback is enabled. | |
| void | reset () |
| Reset the state of the trajectory player. | |
| long | size () const |
| The size of the tajectory. | |
Enables the ability to play a trajectory provided by the set program.
| void tesseract::visualization::TrajectoryPlayer::setTrajectory | ( | const tesseract::common::JointTrajectory & | trajectory | ) |
Set the the trajectory for the trajectory player.
| program | The trajectory to play |
| void tesseract::visualization::TrajectoryPlayer::setScale | ( | double | scale | ) |
Set the scale factor for the play back of the trajectory.
| scale | The scale playback of the trajectory |
| tesseract::common::JointState tesseract::visualization::TrajectoryPlayer::setCurrentDurationByIndex | ( | long | index | ) |
Set the current time for the player by index of the input trajectoy.
| index | The input trajectory index for which to set the current time from |
| tesseract::common::JointState tesseract::visualization::TrajectoryPlayer::setCurrentDuration | ( | double | duration | ) |
Set the current time for the player by duration.
| duration | The duration for which to set the current time from |
| tesseract::common::JointState tesseract::visualization::TrajectoryPlayer::getNext | ( | ) |
Get the next move instruction from the player.
| tesseract::common::JointState tesseract::visualization::TrajectoryPlayer::getByIndex | ( | long | index | ) | const |
Get move instruction by index.
| index | The index of the input program to extract the move instruction from |
| double tesseract::visualization::TrajectoryPlayer::currentDuration | ( | ) | const |
Get the current duration populated by the last call to getNext().
| double tesseract::visualization::TrajectoryPlayer::trajectoryDurationBegin | ( | ) | const |
Get the trajectory duration at the begin state.
| double tesseract::visualization::TrajectoryPlayer::trajectoryDurationEnd | ( | ) | const |
Get the trajectory duration at the end state.
| bool tesseract::visualization::TrajectoryPlayer::isFinished | ( | ) | const |
Check if the player has the reached the end of the trajectory.
| void tesseract::visualization::TrajectoryPlayer::enableLoop | ( | bool | loop | ) |
Enable looping playback of the trajectory.
| loop | True to enable looping play, otherwise single playback. |
| bool tesseract::visualization::TrajectoryPlayer::isLoopEnabled | ( | ) | const |
Get if looping playback is enabled.