Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
|
Class for storing a slice of the timeline. This contains a time parameter and a world state parameter. More...
#include <GripTimeslice.h>
Public Member Functions | |
GripTimeslice () | |
Default constructor for GripTimeslice object. | |
GripTimeslice (const dart::simulation::World &world) | |
Convenience constructor for GripTimeslice object. | |
~GripTimeslice () | |
Destructs a GripTimeslice object. | |
void | setTime (double time) |
Sets the protected time variable of the GripTimeslice. | |
void | setState (const Eigen::VectorXd &state) |
Sets the protected world state variable of the GripTimeslice. | |
double | getTime () |
Gets the time stored in the GripTimeslice. | |
const Eigen::VectorXd & | getState () |
Gets the state stored in the GripTimeslice. | |
Protected Attributes | |
double | _time |
Timestamp for the world state. | |
Eigen::VectorXd | _state |
State of the world at this time. |
Class for storing a slice of the timeline. This contains a time parameter and a world state parameter.
GripTimeslice::GripTimeslice | ( | const dart::simulation::World & | world | ) |
Convenience constructor for GripTimeslice object.
world | World object from whic to create a GripTimeslice object |
const Eigen::VectorXd & GripTimeslice::getState | ( | ) |
Gets the state stored in the GripTimeslice.
double GripTimeslice::getTime | ( | ) |
Gets the time stored in the GripTimeslice.
void GripTimeslice::setState | ( | const Eigen::VectorXd & | state | ) |
Sets the protected world state variable of the GripTimeslice.
state | State of the World |
void GripTimeslice::setTime | ( | double | time | ) |
Sets the protected time variable of the GripTimeslice.
time | Time value |