 |
Endorob
1.4
A C++ Robotics library by P. Berthet-Rayne
|
Go to the documentation of this file.
25 #include <QCoreApplication>
29 int main(
int argc,
char *argv[])
31 QCoreApplication app(argc, argv);
39 double a = 0.1, alpha = 0, d = 0.01, theta = 0, a_bis = 0;
74 mask << 1, 1, 1, 0, 0, 0;
98 q_set << 0.1, 0.4, -0.3, 0.1;
void set_DH_convention(const DH_type &convention)
Set DH convention: modified or standard.
void add_DH_entry(const double &a, const double &alpha, const double &d, const double &theta, const Joint_type &type, const double &a_bis=0, const double &theta_bis=0, const uint &flex=0)
Setup robot DH table one entry at a time (Attention, modified DH convention by default)
Rolling-joint (two circular surfaces rolling against each other, changing the contact point)
Vec get_IK_solution()
Request for solver's converged solution, whether target is reached or not.
Mat get_Jacobian()
Get the Jacobian matrix of the robot in the current configuration.
This is the main Class: EndoRob that you can use to control your own weird looking robot....
Standard prismatic joint.
void set_solver_type(Solver_type solver, const double &lambda=1)
Set iterative solver type.
void set_q_vec(const Vec &q)
Set robot's joint vector.
Modified DH approach (better than standard!)
void initialize()
Once all parameters set, initialize robot and start solver.
unsigned dof()
Get robot number of DOF (different to the number of joints if coupling is used)
void set_joint_limits(const double &min, const double &max)
Set joint limits for current joint, radians for revolute or rolling joints, meters for prismatic.
void set_solver_target(const Mat4d &T)
Set solver's target 4x4 homegenous matrix.
void set_base_frame(const Mat4d &T)
Set base frame.
Vec get_instant_IK_solution()
Request for solver's current solution,if solver is still running, the solution may not be valid.
int main(int argc, char *argv[])
Damped least square approach.
Mat4d get_tip_pose()
Get the tip pose / homogeneous matrix (forward kinematics)
void set_tool_frame(const Mat4d &T)
Set tool frame.