Closed undisputed-seraphim closed 1 year ago
@undisputed-seraphim what exact version of pybind11 did you use? (v2.9.2 / v2.9_ty / mujin_v2.9.2 / other)
if you use STOCK v2.9.2, what you need is INSTEAD:
-vOrientedBox[iOrientedBox] = ExtractOrientedBox(pyOrientedBoxList[iOrientedBox]);
+vOrientedBox[iOrientedBox] = ExtractOrientedBox(pyOrientedBoxList[py::to_object(iOrientedBox)]);
This is described in https://github.com/rdiankov/openrave/pull/1125 .
@undisputed-seraphim what exact version of pybind11 did you use? (v2.9.2 / v2.9_ty / mujin_v2.9.2 / other)
The version I am using is 2.9.2 stock.
Please try py::to_object(iOrientedBox) then
Pipeline #561845
@undisputed-seraphim Thank you! Are there any other places?
I didn't encounter any more compile error so I think that's all
thank you for checking!
got it, thanks
When compiling natively with certain combinations of flags:
I ran into a compilation error:
The reason is because
py::object::operator[]
takes a string (const char*
) instead of an integral value likesize_t
.I imagine that what we really want is to cast the
py::object
into apy::list
before trying to index it, so I applied a fix that does so accordingly.I'm not sure why this error is not encountered in other builds. Perhaps it's due to very old versions of pybind11?
Edit by ciel: This is a new instances of https://github.com/rdiankov/openrave/pull/1125 .