Closed joansola closed 2 years ago
Agree this is quite confusing - we should definitely make these compatible. Probably what should happen is that the sym.Pose3
constructor should do the same thing the generated functions do and accept either T.Union[T.Sequence[float], np.ndarray]
and allow the ndarray to either be flat or a column vector. No matter what though you should be able to take one pose.t
and pass it to the constructor of sym.Pose3
, we should add a unit test that checks this specifically (probably same for the rotation component).
Yes, the workaround for now would be something like that ugly transpose and indexing
Hi Aaron. I see! Well, what I did, I got rid of all instances of sym.Pose3
and use instead sf.Pose3
. Things are a little easier this way and I have less conflicts. The reason why I used sym
comes back to another old issue you probably remember about copying Pose3
objects, but this is now solved.
Thanks again! Keep up the good work!
Describe the bug Since v0.6.0, the type of
sym.Pose3.t
has changed from a 1d arrayndarray(1,3)
to a vertical array,ndarray(3,1)
Now in v0.6.0, reading Pose3.t produces such a vertical array, but writing into Pose3.t requires a single horizontal array.To Reproduce
and any operation on
pose2
now fails.How am I supposed to deal with such positions without going into ugly code such as the one below?
Expected behavior
Screenshots
Environment (please complete the following information):