UM-ARM-Lab/pytorch_kinematics

get_matrix() function takes around 0.5 second ?! It is an issue for online control.

LyuJZ opened this issue · 2 comments

LyuJZ commented

Hi, thanks a lot for sharing this useful package with the community. I am using it for robot online control now. However, I found get_matrix() function takes some time to get the result. Is there any chance to solve this issue?

The transform operations are lazily evaluated, so when get_matrix() takes a long time, it is likely due to it being the result of chaining a number of operations. Before retrieving the matrix, can you take a look at what operations are chained? It could be that there are many unnecessary operations.

@LyuJZ we've just merged some changes that improve the performance. Check it out!