14 if (value.size() != 0)
20 throw InvalidArgumentException(
"Can not setJointAngles with empty vector");
39 return isTimeOptimalBreakpoint;
45 isTimeOptimalBreakpoint = value;
51 return timeOptimalTimestamp;
59 timeOptimalTimestamp = value;
60 if (timeOptimalTimestamp > userTimestamp)
62 userTimestamp = timeOptimalTimestamp;
67 throw InvalidArgumentException(
"TimeOptimal timestamp must be greater than or equal 0");
80 if (value >= timeOptimalTimestamp)
82 userTimestamp = value;
86 throw InvalidArgumentException(
87 "User timestamp must be greater than or equal timeOptimal timestamp");
104 iKSelection(
VirtualRobot::IKSolver::CartesianSelection::All),
105 isTimeOptimalBreakpoint(false),
106 timeOptimalTimestamp(0),
114 jointAngles(source.jointAngles),
115 iKSelection(source.iKSelection),
116 isTimeOptimalBreakpoint(source.isTimeOptimalBreakpoint),
117 timeOptimalTimestamp(source.timeOptimalTimestamp),
118 userTimestamp(source.userTimestamp)
PoseBasePtr getPose()
Returns the PoseBasePtr of the UserWaypoint.
void setIKSelection(const IKSelection &value)
Set the new IKSelection of the UserWaypoint.
double getTimeOptimalTimestamp() const
Returns the timeOptimalTimestamp of the UserWaypoint which is calculate by the TrajectoryCalculation.
std::vector< double > getJointAngles() const
Returns the jointAngles of the UserWaypoint.
void setUserTimestamp(double value)
Set the new UserDuration and tests if its greater than timeOptimalTimestamp.
UserWaypoint(PoseBasePtr newPose)
UserWaypoint.
double getUserTimestamp() const
Returns the UserTimestamp.
void setJointAngles(const std::vector< double > &value)
Set the new JointAngles of the UserWaypoint.
void setTimeOptimalTimestamp(double value)
Set the time optimal timestamp of the UserWaypoint calculate by TrajectoryCalculation.
void setPose(const PoseBasePtr &value)
Set the new PoseBase of the UserWaypoint.
bool getIsTimeOptimalBreakpoint() const
Returns if the UserWaypoint is breakpoint.
IKSelection getIKSelection() const
Returns the VirtualRobot::IKSolver::CartesianSelection of the UserWaypoint.
void setIsTimeOptimalBreakpoint(bool value)
Set isTimeOptimalBreakpoint.
This file is part of ArmarX.
This file offers overloads of toIce() and fromIce() functions for STL container types.
VirtualRobot::IKSolver::CartesianSelection IKSelection
IceInternal::Handle< Pose > PosePtr