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

No mention on get_link_position() and get_link_velocity() in the package #1

Open
virajawate opened this issue Nov 22, 2024 · 1 comment

Comments

@virajawate
Copy link

    def get_ee_position(self) -> np.ndarray:
        """Returns the position of the end-effector as (x, y, z)"""
        return self.get_link_position(self.ee_link)

    def get_ee_velocity(self) -> np.ndarray:
        """Returns the velocity of the end-effector as (vx, vy, vz)"""
        return self.get_link_velocity(self.ee_link)

line 138 (xarm6.py)
The code is not correct as it does not return any value because get_link_position and get_link_velocity function are neither derived nor defined anywhere in the code. The same is with line 92 (xarm6.py)

target_arm_angles = self.inverse_kinematics(link=self.ee_link, position=target_ee_position, orientation=np.array([1.0, 0.0, 0.0, 0.0]))
@virajawate
Copy link
Author

An update, I found these functions in panda-gym lib, but its not imported in the code.

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