-
Notifications
You must be signed in to change notification settings - Fork 38
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
rbdl安装 #5
Comments
AttributeError: module 'rbdl' has no attribute 'CalcZeroMomentPoint' 提示这个错误是什么意思呢 rbdl已经编译安装好了 他就是没这个接口 |
@mariolew 你好,请问你是在windows编译安装的嘛,方便交流一下过程嘛 |
@Jaceyxy linux |
我在linux环境下安装也出现了 module 'rbdl' has no attribute 'CalcZeroMomentPoint' 这个问题。但是在安装包/home/***/tools/rbdl/src/rbdl_utils.cc中有看到对应的文件,不知道为啥检索不到 |
是的,这个函数在rbdl_utils.cc中,如果正常编译通过的话应该会有这个函数的实现 |
看了一下源代码,他的这个函数在#ifndef RBDL_USE_CASADI_MATH中。看看是不是编译选项不对 |
编译v2.6.1版本即可,最新版rbdl确实没CalcZeroMomentPoint这个的python接口 |
有2.6.1版本文件的下载入口么? 我只找到3.2.0版本的 |
Hello everyone! I'm very interested in this issue. Let's discuss it together. |
Hi all, I have helped to pull the request of adding the function CalcZeroMomentPoint in rbdl. The owner has merge the request into master. You can clone this version of rbdl and using CalcZeroMomentPoint directly. |
@NoLoPhe |
Hi @Jaceyxy I am installing Miniconda to reproduce this error. Please wait! |
This is a log.txt file that includes the install commands and pip list. |
Hi @Jaceyxy I don't have the same problem as you, make an environment like mine: same library (pip list), switch GPU->CPU. |
If you just generate in the result\DIP_IMU\PIP. Next time run, please skip simulation.
|
@NoLoPhe Thanks a lot for your help. @Jaceyxy Your problem is that the QP solver finds that there's not enough constraints to solve the accelerations and torques. Did you modify dynamics.py e.g. disable some energy terms? If not, please print the shape of P q A b G h at the time when this error occurs |
我使用了原始的dynamics.py shape打印如下 十分感谢 During handling of the above exception, another exception occurred: Traceback (most recent call last): |
please print |
P_[:75, :75] |
sorry, i can not find where the problem is. i did not encounter this problem |
Hello, I also met the same problem in the evaluation. Have you solved it? I would appreciate any help. |
Hi, I have a naive solution for this problem now. Please use try{} catch{} for the code By doing this, you can remove the constraints that make QP infeasible. |
for example, you can change the codes to: init = self.last_x if False and len(self.last_x) == len(q_) else None
x = solve_qp(P_, q_, G_, h_, A_, b_, solver='quadprog', initvals=init)
# if x is None or np.linalg.norm(x) > 10000:
# x = solve_qp(P_, q_, G_, h_, A_, b_, solver='cvxopt', initvals=init)
if x is None or np.linalg.norm(x) > 10000:
if not self.quiet: print('Warning: QP infeasible. Ignoring Gx <= h constraints')
x = solve_qp(P_, q_, None, None, A_, b_, solver='quadprog', initvals=init)
qddot = x[:self.model.qdot_size]
GRF = x[self.model.qdot_size:-self.model.qdot_size]
tau = x[-self.model.qdot_size:] |
I have encountered the problem 'module 'rbdl' has no attribute 'loadModel'. Have you solved this issue? If you could help me solve this problem, I would be greatly appreciated. |
I have encountered the problem 'module 'rbdl' has no attribute 'loadModel'. Have you solved this issue? If you could help me solve this problem, I would be greatly appreciated. |
|
您好,我在linux环境中conda的site-packages下编译安装好rbdl了,我import rbdl可以执行,但是会报错'module 'rbdl' has no attribute 'loadModel'.您遇到过这个问题吗?如果可以的话您可以让我看看您编译好后的rbdl包的目录嘛 |
rbdl需要版本2.6.0,编译的时候要开python binding,lua addon什么的,之后应该就会有 |
请问如何在windows安装rbdl和urdf,我使用vcpkg在windows下安装了rbdl
但仍然提示无法找到rbdl
十分感谢
The text was updated successfully, but these errors were encountered: