pydrake math: .multiply
shouldn't lose shape information
#13885
Labels
component: pydrake
Python API and its supporting Starlark macros
priority: medium
unused team: manipulation
@kunimatsu-tri ran into the following issue:
Output:
Note how the case with
b
loses shape information, from(3, 1)
to(3,)
.From docs:
https://drake.mit.edu/pydrake/pydrake.math.html#pydrake.math.RigidTransform_.RigidTransform_[float].multiply
Specifically, we're looking at the interplay btw these two overloads:
In
pybind11
,float64[3, 1]
gets intercepted as a vector (overload 2), and when it says it returnsfloat64[3, 1]
, it really means it returnsfloat64[3]
.The text was updated successfully, but these errors were encountered: