Skip to content

Add more variables to jiminy log #829

Closed Answered by duburcqa
lucas-levy asked this question in Q&A
Discussion options

You must be logged in to vote

It is not how it works. You have to delegate this task to the controller. I don't know what you are doing. If you are doing robotics simulation without reinforcement learning, then here is the easiest way to do it:

# Keep track of the variables being manually registered.
# The user is responsible for managing their lifetime and update them.
registered_variables = []

# Define a new variable.
# It stores the "current" value that will be written in the log regularly, 
# which has to be a `np.ndarray` so that it can be updated in-place using 
# `[:] =` assignment operator (or `[()] =` for 0-d scalar arrays).
# The user is responsible for updating it manually whenever its value is 
# supposed…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@duburcqa
Comment options

Answer selected by lucas-levy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants