Skip to content

Can the simscape be connected with python directly? #10

Answered by johbrust
lk1983823 asked this question in Q&A
Discussion options

You must be logged in to vote

I looked into this and found that this was not possible. Most (all?) Simscape block values can only be accessed via the GUI. But you can use a workspace variable for the block parameter values and change those programmatically. Therefore, I updated the definition of the observation space to also allow for the use of workspace variables for the initial values. Check out the Simscape implementation of the cart pole environment for that!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lk1983823
Comment options

@johbrust
Comment options

@lk1983823
Comment options

@johbrust
Comment options

@lk1983823
Comment options

Answer selected by lk1983823
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