|
Simox
2.3.74.0
|
Public Member Functions | |
| EIGEN_MAKE_ALIGNED_OPERATOR_NEW | Trajectory (RobotNodeSetPtr rns, const std::string &name="") |
| virtual | ~Trajectory () |
| const std::vector< Eigen::VectorXf > & | getPoints () const |
| void | addPoint (const Eigen::VectorXf &c) |
| Eigen::VectorXf | getPoint (unsigned int nr) const |
| unsigned int | getNrOfPoints () const |
| return total number of trajectory points More... | |
| bool | getPoints (unsigned int start, unsigned int end, std::vector< Eigen::VectorXf > &storePosList) const |
| to retrieve entries of trajectory More... | |
| TrajectoryPtr | clone () const |
| TrajectoryPtr | createSubPath (unsigned int startIndex, unsigned int endIndex) const |
| virtual void | reset () |
| reset all data More... | |
| virtual void | reverse () |
| reverse position order: end becomes start More... | |
| virtual void | erasePosition (unsigned int pos) |
| virtual unsigned int | removePositions (unsigned int startPos, unsigned int endPos) |
| virtual void | insertPosition (unsigned int pos, const Eigen::VectorXf &c) |
| virtual void | insertPosition (unsigned int pos, std::vector< Eigen::VectorXf > &newConfigurations) |
| virtual void | insertTrajectory (unsigned int pos, TrajectoryPtr trajectoryToInsert) |
| virtual float | getLength () const |
| virtual void | interpolate (float t, Eigen::VectorXf &storePos, int *storeIndex=NULL) const |
| unsigned int | getDimension () const |
| virtual void | print () const |
| prints trajectory contents to console More... | |
| const std::vector< Eigen::VectorXf > & | getData () const |
| For quick access to data. More... | |
| Eigen::VectorXf & | getPointRef (unsigned int pos) |
| VirtualRobot::RobotNodeSetPtr | getRobotNodeSet () |
| std::vector< Eigen::Matrix4f > | createWorkspaceTrajectory (VirtualRobot::RobotNodePtr r=VirtualRobot::RobotNodePtr()) |
| virtual std::string | toXML (int tabs=0) const |
| std::string | getName () const |
| std::string | getRobotName () const |
| VisualizationNodePtr | getVisualization (std::string visualizationFactoryName="") |
Protected Attributes | |
| std::vector< Eigen::VectorXf > | path |
| vector with configurations which represent the path More... | |
| RobotNodeSetPtr | rns |
| std::string | name |
| unsigned int | dimension |
| dimension of rns More... | |
A representation of a trajectory in joint space, associated with a RobotNodeSet.
| VirtualRobot::Trajectory::Trajectory | ( | RobotNodeSetPtr | rns, |
| const std::string & | name = "" |
||
| ) |
Construct a trajectory for the given set of RobotNodes
|
virtual |
| void VirtualRobot::Trajectory::addPoint | ( | const Eigen::VectorXf & | c | ) |
Insert a configuration as one point to the trajectory.
| c | configuration vector |
| TrajectoryPtr VirtualRobot::Trajectory::clone | ( | ) | const |
Creates a copy of the instance.
| TrajectoryPtr VirtualRobot::Trajectory::createSubPath | ( | unsigned int | startIndex, |
| unsigned int | endIndex | ||
| ) | const |
Create a new trajectory from startIndex to endIndex.
| std::vector< Eigen::Matrix4f > VirtualRobot::Trajectory::createWorkspaceTrajectory | ( | VirtualRobot::RobotNodePtr | r = VirtualRobot::RobotNodePtr() | ) |
Creates the corresponding trajectory in workspace.
| r | The RobotNode that should be considered (if not set, the TCP of the RobotNodeSet is used) |
|
virtual |
Erase a point in trajectory.
| pos | position of point in trajectory array |
| const std::vector< Eigen::VectorXf > & VirtualRobot::Trajectory::getData | ( | ) | const |
For quick access to data.
| unsigned int VirtualRobot::Trajectory::getDimension | ( | ) | const |
|
virtual |
Returns the euclidean length of the complete trajectory.
Reimplemented in Saba::CSpacePath.
| std::string VirtualRobot::Trajectory::getName | ( | ) | const |
| unsigned int VirtualRobot::Trajectory::getNrOfPoints | ( | ) | const |
return total number of trajectory points
| Eigen::VectorXf VirtualRobot::Trajectory::getPoint | ( | unsigned int | nr | ) | const |
Get a point in trajectory with a index.
| nr | index to point in trajectory |
| Eigen::VectorXf & VirtualRobot::Trajectory::getPointRef | ( | unsigned int | pos | ) |
| std::vector< Eigen::VectorXf > const & VirtualRobot::Trajectory::getPoints | ( | ) | const |
| bool VirtualRobot::Trajectory::getPoints | ( | unsigned int | start, |
| unsigned int | end, | ||
| std::vector< Eigen::VectorXf > & | storePosList | ||
| ) | const |
to retrieve entries of trajectory
| std::string VirtualRobot::Trajectory::getRobotName | ( | ) | const |
| VirtualRobot::RobotNodeSetPtr VirtualRobot::Trajectory::getRobotNodeSet | ( | ) |
| VisualizationNodePtr VirtualRobot::Trajectory::getVisualization | ( | std::string | visualizationFactoryName = "" | ) |
Get a visualization for this trajectory.
| visualizationFactoryName | The string that identifies the factory. If not given, the first registered factory (which is usually the only one) is used. |
|
virtual |
Insert a point into trajectory.
| pos | position of point being inserted |
| c | configuration / valid joint values to insert as a point in trajectory |
|
virtual |
|
virtual |
|
virtual |
return position on trajectory for time t (0<=t<=1) If storeIndex!=NULL the index of the last trajectory point is stored
Reimplemented in Saba::CSpacePath.
|
virtual |
prints trajectory contents to console
|
virtual |
Erases all points from start to end in trajectory (including start&end).
| startPos | start position of point in trajectory array |
| endPos | end position of point in trajectory array |
|
virtual |
reset all data
|
virtual |
reverse position order: end becomes start
|
virtual |
Create an XML string. All lines are indented with tabs tab stops.
|
protected |
dimension of rns
|
protected |
|
protected |
vector with configurations which represent the path
|
protected |