33 #include <visp3/ustk_needle_modeling/usNeedleInsertionModelKinematic.h>
35 #include <visp3/core/vpColVector.h>
36 #include <visp3/core/vpExponentialMap.h>
37 #include <visp3/core/vpHomogeneousMatrix.h>
42 : m_needle(needle.m_needle), m_naturalCurvature(needle.m_naturalCurvature)
76 vpColVector command(6, 0);
88 bool moved = this->
moveBase(vz, wz, time);
97 vpHomogeneousMatrix H(pose);
102 vpColVector tipVelocity(6, 0);
103 tipVelocity[2] = baseVelocity[2];
105 tipVelocity[5] = baseVelocity[5];
bool moveBase(const vpColVector &v, double time)
vpPoseVector getBasePose() const
usNeedleInsertionModelKinematic()
Constructors, destructors.
bool moveBase(const vpColVector &v, double time)
Control of the needle.
virtual bool setBasePose(const vpPoseVector &pose)=0
The following methods should be redefined in the derived classes.
const usNeedleModelBaseTip & accessNeedle() const
Needle.
virtual usNeedleInsertionModelKinematic * clone() const
~usNeedleInsertionModelKinematic()
usNeedleModelBaseTip m_needle
double getNaturalCurvature() const
void setNaturalCurvature(double naturalCurvature)
Parameters setters and getters.
usNeedleInsertionModelKinematic & operator=(const usNeedleInsertionModelKinematic &needle)
double m_naturalCurvature
needle curvature parameter
vpPoseVector getBasePose() const
Parameters setters and getters.
void setBasePose(double tx, double ty, double tz, double thetax, double thetay, double thetaz)
Command of the needle.
void moveTip(const vpColVector &control, double time)
vpHomogeneousMatrix getWorldMbase() const