DesignerTrajectory Class Reference

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

Public Member Functions

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

Detailed Description

Definition at line 36 of file DesignerTrajectory.h.

Constructor & Destructor Documentation

◆ DesignerTrajectory() [1/2]

DesignerTrajectory ( UserWaypointPtr & firstPoint,
VirtualRobot::RobotNodeSetPtr newRns )

Definition at line 47 of file DesignerTrajectory.cpp.

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

◆ DesignerTrajectory() [2/2]

Deep copy constructor of designerTrajectory.

Parameters
sourcedesignertrajectory to copy

Definition at line 88 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 120 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 139 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 192 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

Definition at line 292 of file DesignerTrajectory.cpp.

◆ getAllUserWaypoints() [2/2]

std::vector< UserWaypointPtr > getAllUserWaypoints ( ) const

get a copy of all userwaypoints

Returns
all userwaypoints

Definition at line 280 of file DesignerTrajectory.cpp.

◆ getFinalTrajectory()

TrajectoryPtr getFinalTrajectory ( )

get the final trajectory with the right durations

Returns
trajectory

Definition at line 298 of file DesignerTrajectory.cpp.

◆ getInterBreakpointTrajectories()

std::vector< TrajectoryPtr > getInterBreakpointTrajectories ( )

Returns the interBreakpointTrajectories.

Returns
interBreakpointTrajectories

Definition at line 28 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 223 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 9 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 255 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 267 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 242 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 229 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 157 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 34 of file DesignerTrajectory.cpp.

+ Here is the caller graph for this function:

◆ setRns()

void setRns ( const VirtualRobot::RobotNodeSetPtr & value)

set the robotnodeset

Parameters
valuerobotnodeset

Definition at line 15 of file DesignerTrajectory.cpp.


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