Grip-Reloaded
Grip version visualizaiton interface for DART (DynamicAnimationandRoboticsToolkits)
Public Member Functions | Protected Attributes
GripTimeslice Class Reference

Class for storing a slice of the timeline. This contains a time parameter and a world state parameter. More...

#include <GripTimeslice.h>

List of all members.

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.

Detailed Description

Class for storing a slice of the timeline. This contains a time parameter and a world state parameter.


Constructor & Destructor Documentation

GripTimeslice::GripTimeslice ( const dart::simulation::World &  world)

Convenience constructor for GripTimeslice object.

Parameters:
worldWorld object from whic to create a GripTimeslice object

Member Function Documentation

const Eigen::VectorXd & GripTimeslice::getState ( )

Gets the state stored in the GripTimeslice.

Returns:
Eigen::VectorXd representing the world state

Gets the time stored in the GripTimeslice.

Returns:
Double value of the time
void GripTimeslice::setState ( const Eigen::VectorXd &  state)

Sets the protected world state variable of the GripTimeslice.

Parameters:
stateState of the World
void GripTimeslice::setTime ( double  time)

Sets the protected time variable of the GripTimeslice.

Parameters:
timeTime value

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator