-
Notifications
You must be signed in to change notification settings - Fork 83
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
NameError: name 'L1' is not defined #29
Comments
This is the same problem as #23 The dynamics part is not supposed to work with symbols, you have to replace those 'L1', 'L2' by the actual numeric values! |
Thank you for your prompt reply
…------------------ 原始邮件 ------------------
发件人: "Cristóvão Duarte Sousa"<notifications@github.com>;
发送时间: 2020年4月26日(星期天) 晚上6:29
收件人: "cdsousa/SymPyBotics"<SymPyBotics@noreply.github.com>;
抄送: "🐳"<562047964@qq.com>;"Author"<author@noreply.github.com>;
主题: Re: [cdsousa/SymPyBotics] NameError: name 'L1' is not defined (#29)
Closed #29.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
ok, thanks very much! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am trying to run the my code step by step in the Python Shell.
When I put
rbt.calc_base_parms()
, I got the following errors.Please give me any advice to fix this issue.
generating geometric model
generating kinematic model
generating inverse dynamics code
generating gravity term code
generating coriolis term code
generating coriolis matrix code
generating inertia matrix code
generating regressor matrix code
generating friction term code
done
Traceback (most recent call last):
File ".\symbotics_test.py", line 22, in
rbt.calc_base_parms()
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\robotmodel.py", line 122, in calc_base_parms
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\dynamics\dynamics.py", line 55, in calc_base_parms
File "D:\Program Files\python3.7\lib\site-packages\sympybotics-1.0.dev0-py3.7.egg\sympybotics\dynamics\dyn_parm_dep.py", line 22, in find_dyn_parm_deps
File "", line 6, in regressor_func
NameError: name 'L1' is not defined
This is my code:
The text was updated successfully, but these errors were encountered: