Skip to content

BB transporter load_parameters_from_yaml fails #51

Closed

Description

@ediget

The tests of the load_parameters_from_yaml in the following file

https://github.com/SDU-Robotics/sdu_controllers/blob/main/tests/tests.cpp

does not consider that some of the joints can be fixed.
For the breeder blanket robot, the assertions are as follows:

const RobotParameters &p = *params_opt; REQUIRE(p.dof == 7u); REQUIRE(p.mass.size() == p.dof); // will fail REQUIRE(p.com.rows() == static_cast<int>(p.dof)); // will fail REQUIRE(p.com.cols() == 3); // joint_1 is prismatic REQUIRE(p.joint_types.size() == p.dof); REQUIRE(p.joint_types[0] == ForwardKinematics::PRISMATIC);

The marked lines will fail since we introduced an eigth joint that is fixed.
This means that p.dof is 7, while p.mass.size() and p.com.rows() are 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

taskSomething that needs to be done.

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions