some problems in python #233
Unanswered
DeokjinLee
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, Prof.Hwangbo.
Thanks for providing an amazing simulator.
There are 2 problems using python.
Getting end-effector position
I want to use getFramePosition(~, ee_pos) function but got an error due to 'ee_pos' (I guess).
In c++, ee_pos should be defined as raisim::Vec<3> ee_pos. Then, in python, how should it be defined?
I tried ee_pos = np.zeros(3) / ee_pos = raisim.vec<3> etc ... but all didn't work.
Importing xacro file
I tried importing xacro file as below but it didn't work.
Robot_xacro_file = '~/rsc/iiwa/iiwa14.urdf.xacro'
robot = world.addArticulatedSystem(robot_xacro_file)
Can you provide code for this?
Raisim python example
I've referring to Brian Delhaisse' github (co-developer of raisim).
If there are more resources, please let me know.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions