Skip to content
Snippets Groups Projects
Commit 050b90c6 authored by Jeremie Deray's avatar Jeremie Deray
Browse files

fix error: comparison of unsigned expression >= 0 is always true [-Werror=type-limits]

parent 7b97ac52
No related branches found
No related tags found
1 merge request!91catkin build
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -22,7 +22,7 @@ class ConstraintContainer: public ConstraintSparse<3,2,1,2,1>
lmk_ptr_(_lmk_ptr),
corner_(_corner)
{
assert(_corner >= 0 && _corner <= 3 && "Wrong corner id in constraint container constructor");
assert(/*_corner >= 0 &&*/ _corner <= 3 && "Wrong corner id in constraint container constructor");
setType("CONTAINER");
std::cout << "new constraint container: corner idx = " << corner_ << std::endl;
......
......@@ -181,7 +181,7 @@ Eigen::MatrixXs LandmarkContainer::getCorners() const
Eigen::VectorXs LandmarkContainer::getCorner(const unsigned int _id) const
{
assert(_id >= 0 && _id <= 4 && "wrong corner id parameter in getCorner(id)");
assert(/*_id >= 0 &&*/ _id <= 4 && "wrong corner id parameter in getCorner(id)");
return corners_.col(_id);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment