Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify the method name from get_state to get_joint_state #12

Open
akhilsathuluri opened this issue Feb 13, 2024 · 0 comments
Open

Modify the method name from get_state to get_joint_state #12

akhilsathuluri opened this issue Feb 13, 2024 · 0 comments

Comments

@akhilsathuluri
Copy link
Contributor

The method get_state currently returns only the joint state and should be named so, to prevent confusion.

def get_state(self):
indexes_joint = self.model.jnt_qposadr[1:]
indexes_joint_velocities = self.model.jnt_dofadr[1:]
s = self.data.qpos[indexes_joint[0] :]
s_dot = self.data.qvel[indexes_joint_velocities[0] :]
tau = self.data.ctrl
return s, s_dot, tau

@akhilsathuluri akhilsathuluri changed the title Modify the method from get_state to get_joint_state Modify the method name from get_state to get_joint_state Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant