Saving data from mulitple timesteps in user-scripts #1043
Unanswered
dylanjaybaxter
asked this question in
Q&A
Replies: 1 comment
-
Yes, I believe you should be able to save a variable and read the old value from the previous invocation of the script. Could you share more what you have tried/seen when you said this:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am looking to perform an operation on data in a prerecorded mcap file where I compute a result based on both the current and previous timestep. Is there a way to do this in user scripts? From my experimentation so far it looks like variables in the global scope are being reinitialized each time a topic is read.
Please let me know if this is possible.
Thanks,
Dylan
Beta Was this translation helpful? Give feedback.
All reactions