|
#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< UserWaypointPtr > | getAllUserWaypoints () |
get all userwaypoints More... | |
std::vector< UserWaypointPtr > | getAllUserWaypoints () const |
get a copy of all userwaypoints More... | |
TrajectoryPtr | getFinalTrajectory () |
get the final trajectory with the right durations More... | |
std::vector< TrajectoryPtr > | getInterBreakpointTrajectories () |
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... | |
Definition at line 37 of file DesignerTrajectory.h.
DesignerTrajectory | ( | UserWaypointPtr & | firstPoint, |
VirtualRobot::RobotNodeSetPtr | newRns | ||
) |
DesignerTrajectory | ( | const DesignerTrajectory & | source | ) |
Deep copy constructor of designerTrajectory.
source | designertrajectory to copy |
Definition at line 83 of file DesignerTrajectory.cpp.
void addFirstUserWaypoint | ( | UserWaypointPtr & | point | ) |
add a new first userWaypoint
point | userwaypoint |
Definition at line 115 of file DesignerTrajectory.cpp.
void addLastUserWaypoint | ( | UserWaypointPtr & | point | ) |
add new last userWaypoint
point | userwaypoint |
Definition at line 135 of file DesignerTrajectory.cpp.
void deleteUserWaypoint | ( | unsigned int | index | ) |
delete the userwaypoint and remove all transitions including the userwaypoint.
Creates new transition if necessary
index | index of userwaypoint |
Definition at line 190 of file DesignerTrajectory.cpp.
std::vector<UserWaypointPtr> getAllUserWaypoints | ( | ) |
get all userwaypoints
std::vector< UserWaypointPtr > getAllUserWaypoints | ( | ) | const |
get a copy of all userwaypoints
Definition at line 277 of file DesignerTrajectory.cpp.
TrajectoryPtr getFinalTrajectory | ( | ) |
get the final trajectory with the right durations
Definition at line 293 of file DesignerTrajectory.cpp.
std::vector< TrajectoryPtr > getInterBreakpointTrajectories | ( | ) |
Returns the interBreakpointTrajectories.
Definition at line 24 of file DesignerTrajectory.cpp.
unsigned int getNrOfUserWaypoints | ( | ) | const |
get the number of the userwaypoints
Definition at line 222 of file DesignerTrajectory.cpp.
VirtualRobot::RobotNodeSetPtr getRns | ( | ) |
get the robot node set of the designertrajectory
Definition at line 7 of file DesignerTrajectory.cpp.
TrajectoryPtr getTimeOptimalTrajectory | ( | ) |
get the time optimal trajectory.
Calculated out of all breakpoint trajectories.
Definition at line 253 of file DesignerTrajectory.cpp.
TrajectoryPtr getTrajectorySegment | ( | unsigned int | index | ) |
get one interBreakPoint trajectory
index | the index |
Definition at line 264 of file DesignerTrajectory.cpp.
TransitionPtr getTransition | ( | unsigned int | index | ) |
get the transition
index | index of transition |
Definition at line 240 of file DesignerTrajectory.cpp.
UserWaypointPtr getUserWaypoint | ( | unsigned int | index | ) |
get the userWaypoint
index | index of userwaypoint |
Definition at line 227 of file DesignerTrajectory.cpp.
void insertUserWaypoint | ( | UserWaypointPtr & | point, |
unsigned int | index | ||
) |
insert userwaypoint before index
point | userwaypoint |
index | index |
Definition at line 153 of file DesignerTrajectory.cpp.
void setInterBreakpointTrajectories | ( | const std::vector< TrajectoryPtr > & | value | ) |
set the interBreakpointTrajectories
value | interBreakpointTrajectories |
Definition at line 29 of file DesignerTrajectory.cpp.
void setRns | ( | const VirtualRobot::RobotNodeSetPtr & | value | ) |
set the robotnodeset
value | robotnodeset |
Definition at line 12 of file DesignerTrajectory.cpp.