25 #include <pilz_msgs/MotionSequenceRequest.h> 51 T&
getCmd(
const size_t index_cmd);
54 const T&
getCmd(
const size_t index_cmd)
const;
71 void setBlendRadius(
const size_t index_cmd,
const double blend_radius);
77 void erase(
const size_t start,
const size_t end);
79 pilz_msgs::MotionSequenceRequest
toRequest()
const;
83 std::vector<TCmdRadiiPair >
cmds_;
88 cmds_.emplace_back( cmd, blend_radius );
99 return boost::get<T>(
cmds_.at(index_cmd).first);
105 return boost::get<T>(
cmds_.at(index_cmd).first);
110 return cmds_.at(index_cmd).second;
115 cmds_.at(index_cmd).second = blend_radius;
126 return cmds_.at(index_cmd).first.type() ==
typeid(T);
size_t size() const
Returns the number of commands.
Base class for commands storing all general information of a command.
boost::variant< PtpJoint, PtpJointCart, PtpCart, LinJoint, LinCart, CircCenterCart, CircInterimCart, CircJointCenterCart, CircJointInterimCart, Gripper > CmdVariant
void setBlendRadius(const size_t index_cmd, const double blend_radius)
void erase(const size_t start, const size_t end)
Deletes all commands from index 'start' to index 'end'.
T & getCmd(const size_t index_cmd)
std::pair< CmdVariant, double > TCmdRadiiPair
Data class storing all information regarding a Sequence command.
std::vector< TCmdRadiiPair > cmds_
void add(const CmdVariant &cmd, const double blend_radius=0.)
Adds a command to the end of the sequence.
bool cmdIsOfType(const size_t index_cmd) const
double getBlendRadius(const size_t index_cmd) const
pilz_msgs::MotionSequenceRequest toRequest() const
void setAllBlendRadiiToZero()