Skip to content

Commit

Permalink
python: apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Oct 31, 2023
1 parent fd1f2a4 commit 1201d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/utils/conversions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ namespace pinocchio
SE3 XYZQUATToSE3_bp(const TupleOrList& v)
{
ssize_t size = bp::len(v);
if(size < 7)
if(size != 7)
{
throw std::invalid_argument(
"Wrong size: v(" + std::to_string(size) + ") should at least have 7 elements");
"Wrong size: v(" + std::to_string(size) + ") should have 7 elements");
}
SE3::Quaternion q (
static_cast<Scalar>(bp::extract<Scalar>(v[6])),
Expand Down

0 comments on commit 1201d37

Please sign in to comment.