DesignerTrajectory Class Reference

#include <RobotComponents/gui-plugins/RobotTrajectoryDesignerGuiPlugin/Model/DesignerTrajectory.h>

Public Member Functions

void addFirstUserWaypoint (UserWaypointPtr &point)
 add a new first userWaypoint More...
 
void addLastUserWaypoint (UserWaypointPtr &point)
 add new last userWaypoint More...
 
void deleteUserWaypoint (unsigned int index)
 delete the userwaypoint and remove all transitions including the userwaypoint. More...
 
 DesignerTrajectory (const DesignerTrajectory &source)
 Deep copy constructor of designerTrajectory. More...
 
 DesignerTrajectory (UserWaypointPtr &firstPoint, VirtualRobot::RobotNodeSetPtr newRns)
 
std::vector< UserWaypointPtrgetAllUserWaypoints ()
 get all userwaypoints More...
 
std::vector< UserWaypointPtrgetAllUserWaypoints () const
 get a copy of all userwaypoints More...
 
TrajectoryPtr getFinalTrajectory ()
 get the final trajectory with the right durations More...
 
std::vector< TrajectoryPtrgetInterBreakpointTrajectories ()
 Returns the interBreakpointTrajectories. More...
 
unsigned int getNrOfUserWaypoints () const
 get the number of the userwaypoints More...
 
VirtualRobot::RobotNodeSetPtr getRns ()
 get the robot node set of the designertrajectory More...
 
TrajectoryPtr getTimeOptimalTrajectory ()
 get the time optimal trajectory. More...
 
TrajectoryPtr getTrajectorySegment (unsigned int index)
 get one interBreakPoint trajectory More...
 
TransitionPtr getTransition (unsigned int index)
 get the transition More...
 
UserWaypointPtr getUserWaypoint (unsigned int index)
 get the userWaypoint More...
 
void insertUserWaypoint (UserWaypointPtr &point, unsigned int index)
 insert userwaypoint before index More...
 
void setInterBreakpointTrajectories (const std::vector< TrajectoryPtr > &value)
 set the interBreakpointTrajectories More...
 
void setRns (const VirtualRobot::RobotNodeSetPtr &value)
 set the robotnodeset More...
 

Detailed Description

Definition at line 37 of file DesignerTrajectory.h.

Constructor & Destructor Documentation

◆ DesignerTrajectory() [1/2]

DesignerTrajectory ( UserWaypointPtr firstPoint,
VirtualRobot::RobotNodeSetPtr  newRns 
)

Definition at line 44 of file DesignerTrajectory.cpp.

+ Here is the call graph for this function:

◆ DesignerTrajectory() [2/2]

Deep copy constructor of designerTrajectory.

Parameters
sourcedesignertrajectory to copy

Definition at line 83 of file DesignerTrajectory.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ addFirstUserWaypoint()

void addFirstUserWaypoint ( UserWaypointPtr point)

add a new first userWaypoint

Parameters
pointuserwaypoint

Definition at line 115 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ addLastUserWaypoint()

void addLastUserWaypoint ( UserWaypointPtr point)

add new last userWaypoint

Parameters
pointuserwaypoint

Definition at line 135 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ deleteUserWaypoint()

void deleteUserWaypoint ( unsigned int  index)

delete the userwaypoint and remove all transitions including the userwaypoint.

Creates new transition if necessary

Parameters
indexindex of userwaypoint

Definition at line 190 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getAllUserWaypoints() [1/2]

std::vector<UserWaypointPtr> getAllUserWaypoints ( )

get all userwaypoints

Returns
all userwaypoints

◆ getAllUserWaypoints() [2/2]

std::vector< UserWaypointPtr > getAllUserWaypoints ( ) const

get a copy of all userwaypoints

Returns
all userwaypoints

Definition at line 277 of file DesignerTrajectory.cpp.

◆ getFinalTrajectory()

TrajectoryPtr getFinalTrajectory ( )

get the final trajectory with the right durations

Returns
trajectory

Definition at line 293 of file DesignerTrajectory.cpp.

◆ getInterBreakpointTrajectories()

std::vector< TrajectoryPtr > getInterBreakpointTrajectories ( )

Returns the interBreakpointTrajectories.

Returns
interBreakpointTrajectories

Definition at line 24 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getNrOfUserWaypoints()

unsigned int getNrOfUserWaypoints ( ) const

get the number of the userwaypoints

Returns
number

Definition at line 222 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getRns()

VirtualRobot::RobotNodeSetPtr getRns ( )

get the robot node set of the designertrajectory

Returns
robotnodeset

Definition at line 7 of file DesignerTrajectory.cpp.

◆ getTimeOptimalTrajectory()

TrajectoryPtr getTimeOptimalTrajectory ( )

get the time optimal trajectory.

Calculated out of all breakpoint trajectories.

Returns
time optimal Trajectory

Definition at line 253 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getTrajectorySegment()

TrajectoryPtr getTrajectorySegment ( unsigned int  index)

get one interBreakPoint trajectory

Parameters
indexthe index
Returns
interBreakpointTrajectorie

Definition at line 264 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getTransition()

TransitionPtr getTransition ( unsigned int  index)

get the transition

Parameters
indexindex of transition
Returns
the transition

Definition at line 240 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ getUserWaypoint()

UserWaypointPtr getUserWaypoint ( unsigned int  index)

get the userWaypoint

Parameters
indexindex of userwaypoint
Returns
the userwaypoint

Definition at line 227 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ insertUserWaypoint()

void insertUserWaypoint ( UserWaypointPtr point,
unsigned int  index 
)

insert userwaypoint before index

Parameters
pointuserwaypoint
indexindex

Definition at line 153 of file DesignerTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setInterBreakpointTrajectories()

void setInterBreakpointTrajectories ( const std::vector< TrajectoryPtr > &  value)

set the interBreakpointTrajectories

Parameters
valueinterBreakpointTrajectories

Definition at line 29 of file DesignerTrajectory.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRns()

void setRns ( const VirtualRobot::RobotNodeSetPtr &  value)

set the robotnodeset

Parameters
valuerobotnodeset

Definition at line 12 of file DesignerTrajectory.cpp.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: