ruckig icon indicating copy to clipboard operation
ruckig copied to clipboard

Enable vector of times as input to at_time

Open scharalambous-sony opened this issue 1 year ago • 2 comments

Hi,

How can one modify at_time to accept a vector of times to obtain a whole trajectory at once? I am using the Python wrapper

Thanks in advance

scharalambous-sony avatar Dec 05 '24 15:12 scharalambous-sony

What is wrong about iterating over the vector in Python? Seems to be a one-liner:

trajectory_states = [traj.at_time(t) for t in times]

pantor avatar Dec 06 '24 12:12 pantor

The only issue is computational time. That adds at least len(times) x Python function call overhead seconds of computational time

scharalambous-sony avatar Dec 06 '24 12:12 scharalambous-sony