33 const Eigen::Vector3d & start,
34 const Eigen::Vector3d & target,
51 std::vector<Eigen::Vector3d>
splev(
double t,
unsigned int der = 0);
69 std::unique_ptr<bezier_curve_t> spline =
nullptr;
#define MC_TRAJECTORY_DLLAPI
Definition: api.h:50
Definition: StateBuilder.h:28
void addToGUI(mc_rtc::gui::StateBuilder &gui, const std::vector< std::string > &category)
Add GUI elements to control the curve's waypoints and targets.
BSpline(double duration, const Eigen::Vector3d &start, const Eigen::Vector3d &target, const waypoints_t &waypoints={})
Creates a curve with given waypoints (should includes starting and target position)
void update() override
Triggers recreation of the curve. Will only occur if the curve parameters were modified (waypoints,...
std::vector< Eigen::Vector3d > sampleTrajectory()
Sample positions along the trajectory (for visualization purposes)
std::vector< Eigen::Vector3d > waypoints_t
Definition: BSpline.h:20
std::vector< Eigen::Vector3d > splev(double t, unsigned int der=0)
Computes the position along the curve at time t, and its derivatives up to the nth order (typically v...