Go to the documentation of this file.
12 if (
value.size() != 0)
18 throw InvalidArgumentException(
"Can not setJointAngles with empty vector");
34 return isTimeOptimalBreakpoint;
39 isTimeOptimalBreakpoint =
value;
44 return timeOptimalTimestamp;
51 timeOptimalTimestamp =
value;
52 if (timeOptimalTimestamp > userTimestamp)
54 userTimestamp = timeOptimalTimestamp;
59 throw InvalidArgumentException(
"TimeOptimal timestamp must be greater than or equal 0");
70 if (
value >= timeOptimalTimestamp)
72 userTimestamp =
value;
76 throw InvalidArgumentException(
"User timestamp must be greater than or equal timeOptimal timestamp");
92 isTimeOptimalBreakpoint(false),
93 timeOptimalTimestamp(0), userTimestamp(0)
101 iKSelection(
source.iKSelection), isTimeOptimalBreakpoint(
source.isTimeOptimalBreakpoint),
102 timeOptimalTimestamp(
source.timeOptimalTimestamp), userTimestamp(
source.userTimestamp)
double getUserTimestamp() const
Returns the UserTimestamp.
void setUserTimestamp(double value)
Set the new UserDuration and tests if its greater than timeOptimalTimestamp.
The UserWaypoint class represents a waypoint of the trajectory.
double getTimeOptimalTimestamp() const
Returns the timeOptimalTimestamp of the UserWaypoint which is calculate by the TrajectoryCalculation.
VirtualRobot::IKSolver::CartesianSelection IKSelection
void setIKSelection(const IKSelection &value)
Set the new IKSelection of the UserWaypoint.
void setTimeOptimalTimestamp(double value)
Set the time optimal timestamp of the UserWaypoint calculate by TrajectoryCalculation.
bool getIsTimeOptimalBreakpoint() const
Returns if the UserWaypoint is breakpoint.
void setIsTimeOptimalBreakpoint(bool value)
Set isTimeOptimalBreakpoint.
std::shared_ptr< Value > value()
std::vector< double > getJointAngles() const
Returns the jointAngles of the UserWaypoint.
void setJointAngles(const std::vector< double > &value)
Set the new JointAngles of the UserWaypoint.
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
UserWaypoint(PoseBasePtr newPose)
UserWaypoint.
IKSelection getIKSelection() const
Returns the VirtualRobot::IKSolver::CartesianSelection of the UserWaypoint.
const KinematicUnitDatafieldCreator jointAngles("jointAngles")
PoseBasePtr getPose()
Returns the PoseBasePtr of the UserWaypoint.
This file offers overloads of toIce() and fromIce() functions for STL container types.
void setPose(const PoseBasePtr &value)
Set the new PoseBase of the UserWaypoint.