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

closed-loop mechanisms #2527

Open
shuangxxxx opened this issue Dec 23, 2024 · 4 comments
Open

closed-loop mechanisms #2527

shuangxxxx opened this issue Dec 23, 2024 · 4 comments

Comments

@shuangxxxx
Copy link

Hello, I am actually working on closed-loop mechanisms. I noticed that the example provided in the Pinocchio package includes a simulation for closed-kinematic-chains (simulation-closed-kinematic-chains.py), but when I run it, I encounter the following issue:

placement_center_link_A.translation = pin.XAxis * length_link_A / 2.0
AttributeError: module 'pinocchio' has no attribute 'XAxis'

Additionally, I saw that Pinocchio 3.0 has updates for supporting closed-loop mechanisms. Could you point me to any documentation or resources related to this?

System

  • OS:ubuntu 22.04
  • Pinocchio version: 3.3.1
@jcarpent
Copy link
Contributor

I'm not able to reproduce your issue.
Could you tell us how did you install Pinocchio?
Could you show the result of in your terminal:

python -c "import pinocchio as pin; print('version:', pin.__version__); print('install:',pin.__file__)"

@shuangxxxx
Copy link
Author

I have installed Pinocchio on Conda.
2024-12-23_20-44

@jcarpent
Copy link
Contributor

It seems you have local troubles (core dumped). Please install Pinocchio in a fresh conda env and check whether you have multiple installation of Pinocchio before running again the bash line above.

@shuangxxxx
Copy link
Author

Thank you for your reply. After uninstalling Pinocchio from ROS, it works normally.

In the simulation-closed-kinematic-chains.py example, the motion of a four-bar linkage under gravity is simulated. All joint positions are initialized, and then updated based on constraints.

Is it possible to compute all joint positions/velocities using only the position/velocity of one joint (e.g., link_B1) while satisfying the constraints?

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

2 participants