dqrobotics / cpp-interface-vrep

Vrep interface for the dqrobotics in C++
GNU Lesser General Public License v3.0
3 stars 5 forks source link

[BUG] Bad DQ_SerialManipulatorDH(dh_matrix) call #5

Closed juanjqo closed 2 years ago

juanjqo commented 2 years ago

Bug description

Hi @mmmarinho!

To Reproduce

Code

DQ_robotics::DQ_WholeBody YouBotVrepRobot::kinematics()  #line 58 of master/src/dqrobotics/interfaces/vrep/robots/YouBotVrepRobot.cpp
{
    const double pi2 = pi/2.0;

    Matrix<double,4,5> dh(4,5);
    dh <<    0,      pi2,       0,      pi2,    0,
            0.147,    0,       0,        0,    0.218,
            0.033,    0.155,   0.135,    0,    0,
            pi2,      0,       0,      pi2,    0; 
          # ----------------------------------------------------------- missing fifth line of the dh matrix

    auto arm = std::make_shared<DQ_SerialManipulatorDH>(DQ_SerialManipulatorDH(dh));
    auto base = std::make_shared<DQ_HolonomicBase>(DQ_HolonomicBase());

Output

─ ./vrep_interface_move_kuka_and_youbot                                     ─╯
Starting V-REP simulation...
There was an error connecting to V-REP, please check that it is open and that the Kuka Robot is in the scene.
Bad DQ_SerialManipulatorDH(dh_matrix) call: dh_matrix should be 5xn

Environment:

Cheers,

Juancho

mmmarinho commented 2 years ago

Fixed in #6 (By you!)